]> Creatis software - creaToolsTools.git/blobdiff - Install_ThirdParty/scripts/install_thirdparty_all.bat
Change in script
[creaToolsTools.git] / Install_ThirdParty / scripts / install_thirdparty_all.bat
index e1dc428d464b43e8e8dfe8c4d7060bd876cf998d..5a6a2bb6a22080d5a4b747b364965a62cc4b7212 100644 (file)
@@ -56,12 +56,14 @@ if not exist %wgetPath% (
 )
 
 
-set installpath=%thirdpartyGeneration%\thirdparty_install
-set binpath=%thirdpartyGeneration%\thirdparty_bin
-set sourcepath=%thirdpartyGeneration%\thirdparty_source
+set installpath=%thirdpartyGeneration%\thirdparty_install\%buildType%
+set binpath=%thirdpartyGeneration%\thirdparty_bin\%buildType%
+set sourcepath=%thirdpartyGeneration%\thirdparty_source\%buildType%
 
 set qt=Qt-4.7.3
-set wxWidgets=wxWidgets-2.9.2
+set buildWxWidgets28=1
+if %buildWxWidgets28%==1 set wxWidgets=wxWidgets-2.8.12
+if %buildWxWidgets28%==0 set wxWidgets=wxWidgets-2.9.2
 set boost=Boost-1.46.1
 set xercesc=xerces-c-3.1.1
 set itk=InsightToolkit-3.20.0
@@ -104,25 +106,23 @@ echo ITKSRCDIR=%ITKSRCDIR%
 echo VTKSRCDIR=%VTKSRCDIR%
 echo GDCMDIR=%GDCMSRCDIR%
 
-
 echo -----------------------------------
 echo ---End Setting Global Variables----
 echo -----------------------------------
 
 
 call %vcvarsall%
+
 echo -----------------------------------
 echo -------Creating Folders------------
 echo -----------------------------------
 
-rmdir %binpath% /s /q
-
-rmdir %thirdpartyGeneration% /s /q
+rmdir /S /Q %thirdpartyGeneration%
 mkdir %thirdpartyGeneration%
 cd  %thirdpartyGeneration%
-mkdir thirdparty_source
-mkdir thirdparty_bin
-mkdir thirdparty_install
+mkdir %sourcepath%
+mkdir %binpath%
+mkdir %installpath%
 
 
 echo ------End Creating Folders---------
@@ -131,17 +131,20 @@ echo -----------------------------------
 echo ------Downloading Sources----------
 echo -----------------------------------
 
-cd %thirdpartyGeneration%\thirdparty_source\
+cd %sourcepath%\
 %wgetPath% %urlCreatisSource%/qt-4.7.3.zip
-%wgetPath% %urlCreatisSource%/wxWidgets-2.9.2.7z
-%wgetPath% %urlCreatisSource%/boost_1_47_0.7z
+IF %buildWxWidgets28%==0 (
+  %wgetPath% %urlCreatisSource%/wxWidgets-2.9.2.7z
+) ELSE (
+  %wgetPath% %urlCreatisSource%/wxWidgets-2.8.12.tar.gz
+)
+%wgetPath% %urlCreatisSource%/boost_1_46_1.7z
 %wgetPath% %urlCreatisSource%/vtk-5.8.0.tar.gz
 %wgetPath% %urlCreatisSource%/InsightToolkit-3.20.0.zip
 %wgetPath% %urlCreatisSource%/gdcm_11_Oct_2011.tar.gz
 %wgetPath% %urlCreatisSource%/xerces-c-3.1.1.zip
 %wgetPath% %urlCreatisSource%/tth_exe.zip
 echo ------End Downloading Sources------
-
 echo -----------------------------------
 echo --------Qt Installation------------
 echo -----------------------------------
@@ -173,15 +176,25 @@ echo -----------------------------------
 echo ----------Extracting---------------
 
 cd %sourcepath%
-md %wxWidgets%
-cd %wxWidgets%
-%zipPath% x %sourcepath%\wxWidgets-2.9.2.7z
-del %sourcepath%\wxWidgets-2.9.2.7z
-
+IF %buildWxWidgets28%==0 (
+  md %wxWidgets%
+  cd %wxWidgets%
+  %zipPath% x %sourcepath%\wxWidgets-2.9.2.7z
+  del %sourcepath%\wxWidgets-2.9.2.7z
+) ELSE (
+ %zipPath% x %sourcepath%\wxWidgets-2.8.12.tar.gz
+ %zipPath% x %sourcepath%\wxWidgets-2.8.12.tar
+ del %sourcepath%\wxWidgets-2.8.12.tar.gz
+ del %sourcepath%\wxWidgets-2.8.12.tar
+)
 echo ----------Installing---------------
 
 cd %sourcepath%\%wxWidgets%\build\msw
-nmake -f makefile.vc BUILD=%buildType% UNICODE=0 SHARED=1
+IF %buildWxWidgets28%==0 (
+  nmake -f makefile.vc BUILD=%buildType% USE_OPENGL=1 USE_GUI=1 UNICODE=0 SHARED=1
+) ELSE (
+  nmake -f makefile.vc BUILD=%buildType% UNICODE=0 SHARED=1
+)
 cd C:\
 
 echo ----End wxWidgets Installation-----
@@ -192,8 +205,8 @@ echo -----------------------------------
 echo ----------Extracting---------------
 
 cd %sourcepath%
-%zipPath% x %thirdpartyGeneration%\thirdparty_source\boost_1_46_1.7z
-del %thirdpartyGeneration%\thirdparty_source\boost_1_46_1.7z
+%zipPath% x %sourcepath%\boost_1_46_1.7z
+del %sourcepath%\boost_1_46_1.7z
 
 echo --------Renaming Folder------------
 
@@ -218,11 +231,11 @@ echo -----------------------------------
 echo ----------Extracting---------------
 
 cd %sourcepath%
-%zipPath% x %thirdpartyGeneration%\thirdparty_source\VTK-5.8.0.tar.gz
-%zipPath% x %thirdpartyGeneration%\thirdparty_source\VTK-5.8.0.tar
-cd %thirdpartyGeneration%\thirdparty_source\VTK
-del %thirdpartyGeneration%\thirdparty_source\VTK-5.8.0.tar.gz
-del %thirdpartyGeneration%\thirdparty_source\VTK-5.8.0.tar
+%zipPath% x %sourcepath%\VTK-5.8.0.tar.gz
+%zipPath% x %sourcepath%\VTK-5.8.0.tar
+cd %sourcepath%\VTK
+del %sourcepath%\VTK-5.8.0.tar.gz
+del %sourcepath%\VTK-5.8.0.tar
 
 echo ----------Installing---------------