[rkward-cvs] SF.net SVN: rkward:[3913] branches/release_branch_0.5.7

tfry at users.sourceforge.net tfry at users.sourceforge.net
Sun Oct 9 09:20:40 UTC 2011


Revision: 3913
          http://rkward.svn.sourceforge.net/rkward/?rev=3913&view=rev
Author:   tfry
Date:     2011-10-09 09:20:40 +0000 (Sun, 09 Oct 2011)
Log Message:
-----------
Install the backend exe to a subdirectory on windows, so it can be fed 'priority' .dlls

Modified Paths:
--------------
    branches/release_branch_0.5.7/rkward/rbackend/CMakeLists.txt
    branches/release_branch_0.5.7/rkward/rbackend/FindR.cmake
    branches/release_branch_0.5.7/rkward/rkward.bat.template
    branches/release_branch_0.5.7/windows_nsis/make_release.bat

Modified: branches/release_branch_0.5.7/rkward/rbackend/CMakeLists.txt
===================================================================
--- branches/release_branch_0.5.7/rkward/rbackend/CMakeLists.txt	2011-10-08 19:20:39 UTC (rev 3912)
+++ branches/release_branch_0.5.7/rkward/rbackend/CMakeLists.txt	2011-10-09 09:20:40 UTC (rev 3913)
@@ -60,7 +60,13 @@
 	LINK_DIRECTORIES(${R_SHAREDLIBDIR})
 	KDE4_ADD_EXECUTABLE(rkward.rbackend ${rbackend_BACKEND_SRCS})
 	TARGET_LINK_LIBRARIES(rkward.rbackend ${R_USED_LIBS} ${CMAKE_THREAD_LIBS_INIT} ${KDE4_KDECORE_LIBS} ${QT_QTNETWORK_LIBRARY})
-	INSTALL(TARGETS rkward.rbackend DESTINATION ${LIBEXEC_INSTALL_DIR})
+	IF(WIN32)
+		# on Widows, we install to the rbackend subdirectory, because 1) LIBEXEC_INSTALL_DIR == BIN_INSTALL_DIR and 2) we don't want the backend to pick up
+		# all the KDE library versions, first, when loading DLLs
+		INSTALL(TARGETS rkward.rbackend DESTINATION ${BIN_INSTALL_DIR}/rbackend)
+	ELSE(WIN32)
+		INSTALL(TARGETS rkward.rbackend DESTINATION ${LIBEXEC_INSTALL_DIR})
+	ENDIF(WIN32)
 ELSE(RBACKEND_SPLIT)
 	SET (
 		rbackend_ALL_SRCS

Modified: branches/release_branch_0.5.7/rkward/rbackend/FindR.cmake
===================================================================
--- branches/release_branch_0.5.7/rkward/rbackend/FindR.cmake	2011-10-08 19:20:39 UTC (rev 3912)
+++ branches/release_branch_0.5.7/rkward/rbackend/FindR.cmake	2011-10-09 09:20:40 UTC (rev 3913)
@@ -68,7 +68,7 @@
 MESSAGE(STATUS "Checking for existence of R shared library")
 FIND_LIBRARY(LIBR_SO
 	R
-	PATHS ${R_HOME}/lib ${R_SHAREDLIBDIR} ${R_HOME}/bin
+	PATHS ${R_HOME}/lib ${R_SHAREDLIBDIR} ${R_HOME}/bin ${R_HOME}/bin/i386
 	NO_DEFAULT_PATH)
 IF(NOT LIBR_SO)
 	MESSAGE(FATAL_ERROR "Not found. Make sure the location of R was detected correctly, above, and R was compiled with the --enable-R-shlib option")

Modified: branches/release_branch_0.5.7/rkward/rkward.bat.template
===================================================================
--- branches/release_branch_0.5.7/rkward/rkward.bat.template	2011-10-08 19:20:39 UTC (rev 3912)
+++ branches/release_branch_0.5.7/rkward/rkward.bat.template	2011-10-09 09:20:40 UTC (rev 3913)
@@ -17,6 +17,7 @@
 ECHO Starting RKWard
 SET RKWARD.BIN=%~dsp0\rkward.frontend.exe
 SET RKWARD_ENSURE_PREFIX=%~dsp0\..
+SET PATH=%~dsp0;%PATH%
 SET DEBUGGER=
 
 IF NOT "%1" == "--debugger" GOTO run

Modified: branches/release_branch_0.5.7/windows_nsis/make_release.bat
===================================================================
--- branches/release_branch_0.5.7/windows_nsis/make_release.bat	2011-10-08 19:20:39 UTC (rev 3912)
+++ branches/release_branch_0.5.7/windows_nsis/make_release.bat	2011-10-09 09:20:40 UTC (rev 3913)
@@ -1,9 +1,10 @@
 SET KDEPREFIXDRIVE=c:
 SET KDEPREFIX=KDE
-SET RHOMEDRIVE=F:
-SET RHOME=KDE/lib/R
+SET RHOMEDRIVE=C:
+SET RHOME=Programme/R/R-2.12.0
 
 SET SH_PATH=C:\Rtools\bin
+SET MINGW_PATH=C:\Mingw\bin
 SET MAKENSIS=c:/programme/nsis/makensis.exe
 
 REM --------------------------------------------
@@ -26,9 +27,14 @@
 REM sh.exe must not be in path during cmake call, but must be in path for R package install...
 SET PATH=%PATH%;%SH_PATH%
 mingw32-make install DESTDIR=%INSTALL_DIR%
+IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 
 move %INSTALL_DIR%/%RHOME% %INSTALL_DIR%/_RHOME_
+IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 move %INSTALL_DIR%/%KDEPREFIX% %INSTALL_DIR%/_KDEPREFIX_
+IF %ERRORLEVEL% NEQ 0 GOTO ERROR
+copy /Y %MINGW_PATH%\libgcc_s_dw2-1.dll %RELEASE_DIR%\install\_KDEPREFIX_\bin\
+IF %ERRORLEVEL% NEQ 0 GOTO ERROR
 
 REM Prepare Version info for use in NSIS
 echo !define RKWARD_VERSION \ > %RELEASE_DIR%/rkward_version.nsh
@@ -40,3 +46,10 @@
 
 cd %RELEASE_DIR%
 "%MAKENSIS%" installer.nsi
+
+GOTO END
+
+:ERROR
+echo "There has been an error. Aborting."
+
+:END

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the rkward-tracker mailing list