]> Creatis software - creaToolsTools.git/blobdiff - Install_ThirdParty/install_generate_thirdparty.bat_TEMPLATE
DFCH: Install_ThirdParty script is now working in windows x64 =)
[creaToolsTools.git] / Install_ThirdParty / install_generate_thirdparty.bat_TEMPLATE
index 01faf825bec050f36074c6d3137317b5cac12671..37756bb61019b4e7e9a4fc6f4cc24b7db04691b8 100644 (file)
@@ -7,8 +7,16 @@ echo -----------------------------------
 set thirdpartyGeneration=<directory where you want to generate>
 set buildType=<debug|release|RelWithDebInfo>
 
+::The following line sets wxWidgets version. Set it ON if you want to compile wxWidgets 2.8.12
+::The following line set swxWidgets version. Set it OFF if you want to compile wxWidgets 2.9.3
+set wxStable=<ON|OFF>
+::Set the following line ON if you want to force x86 compilation
+set forcex86=<ON|OFF>
+
+
 echo thirdpartyGeneration=%thirdpartyGeneration%
 echo buildType=%buildType%
+echo wxStable=%wxStable%
 
 echo -----------------------------------
 echo ---End Setting Global Variables----
@@ -18,33 +26,54 @@ echo -----------------------------------
 echo -------Calling Scripts-------------
 echo -----------------------------------
 
-cd scripts
+echo starting time
+time /t
+date /T
+
+set scripts=%cd%\scripts
+set LogFolder=%thirdpartyGeneration%\installLog
+cd %scripts%
+
+echo cleaning All
+
+call cleanAll.bat %thirdpartyGeneration%
 
-echo Calling install_thirdparty_all.bat
+cd %scripts%
 
-call install_thirdparty_all.bat  %thirdpartyGeneration% %buildType% >> install_generate_thirdparty.log 2>&1
+echo Calling download_ThirdPartySW.bat
 
-echo Calling move_thirdparty_dlls.bat
+call download_ThirdPartySW.bat %thirdpartyGeneration% %buildType% %wxStable% >> %LogFolder%\downloadSources.log 2>&1
 
-call move_thirdparty_dlls.bat %thirdpartyGeneration% >> install_generate_thirdparty.log 2>&1
+cd %scripts%
 
-echo Calling move_thirdparty_libraries.bat
+echo Calling install_thirdparty.bat
 
-call move_thirdparty_libraries.bat %thirdpartyGeneration% >> install_generate_thirdparty.log 2>&1
+start /B /wait install_thirdparty_all.bat %thirdpartyGeneration% %buildType% %forcex86%
 
-echo Calling install_thirdparty_dlls_cmake.bat
+echo Calling generateThirdPartydllsExe.bat
 
-call install_thirdparty_dlls_cmake.bat  %thirdpartyGeneration% >> install_generate_thirdparty.log 2>&1
+cd %scripts%
 
-echo Calling install_thirdparty_libraries_cmake.bat
+start /B /wait generateThirdPartydllsExe.bat %thirdpartyGeneration% %buildType% %forcex86%
 
-call install_thirdparty_libraries_cmake.bat  %thirdpartyGeneration% >> install_generate_thirdparty.log 2>&1
+echo Calling generateThirdPartyLibExe.bat
 
-cd ..
+cd %scripts%
+
+start /B /wait generateThirdPartyLibExe.bat %thirdpartyGeneration% %buildType% %forcex86%
+
+cd..
 
 echo -----------------------------------
 echo -------End of the Script-----------
 echo -----------------------------------
 
-pause
+echo ending time
+time /t
+date /T
+
+echo To see the log of this install please go to %LogFolder%
+
+::pause
+
 exit
\ No newline at end of file