]> Creatis software - creaToolsTools.git/blob - Install_ThirdParty/scripts/install_thirdparty_all.bat
*** empty log message ***
[creaToolsTools.git] / Install_ThirdParty / scripts / install_thirdparty_all.bat
1 set thirdpartyGeneration=%1
2 set buildType=%2
3
4
5 set QTDIR=C:\Qt\2010.05\qt
6 set wgetPath=%~p0
7 set wgetPath=%wgetPath%\..\..\windows\creaTools_win_installers\CreaTools_v2_0_0_win32_installer\bin
8 set zipPath="%ProgramFiles(x86)%\7-Zip"
9 set urlCreatisSource=http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source
10 set vcvarsall="%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC"\vcvarsall.bat
11
12 set installpath=%thirdpartyGeneration%\thirdparty_install
13 set binpath=%thirdpartyGeneration%\thirdparty_bin
14 set sourcepath=%thirdpartyGeneration%\thirdparty_source
15
16 set xercesc=xerces-c-3.1.1
17 set itk=InsightToolkit-3.20.0
18 set gdcm=gdcm
19 set vtk=VTK
20
21
22 goto next
23
24 rmdir %binpath% /s /q
25
26
27 rmdir %thirdpartyGeneration% /s /q
28 mkdir %thirdpartyGeneration%
29 cd  %thirdpartyGeneration%
30 mkdir thirdparty_source
31 mkdir thirdparty_bin
32 mkdir thirdparty_install
33
34 cd thirdparty_source
35
36 rem ---------DOWNLOAD------------------
37 %wgetPath%\wget.exe %urlCreatisSource%/xerces-c-3.1.1.zip
38 %wgetPath%\wget.exe %urlCreatisSource%/InsightToolkit-3.20.0.tar.gz
39 %wgetPath%\wget.exe %urlCreatisSource%/gdcm_08_Dic_2009.tar.gz
40 %wgetPath%\wget.exe %urlCreatisSource%/vtk-5.6.1.tar.gz
41 %wgetPath%\wget.exe %urlCreatisSource%/wxWidgets-2.9.1.7z
42
43 rem ---------Extracting------------------
44
45 %zipPath%\7z.exe x xerces-c-3.1.1.zip
46 %zipPath%\7z.exe x InsightToolkit-3.20.0.tar.gz
47 %zipPath%\7z.exe x InsightToolkit-3.20.0.tar
48 %zipPath%\7z.exe x gdcm_08_Dic_2009.tar.gz
49 %zipPath%\7z.exe x gdcm_08_Dic_2009.tar
50 %zipPath%\7z.exe x vtk-5.6.1.tar.gz
51 %zipPath%\7z.exe x vtk-5.6.1.tar
52 mkdir wxWidgets
53 cd wxWidgets
54 %zipPath%\7z.exe x ..\wxWidgets-2.9.1.7z
55
56
57
58
59
60 rem -------------  vtk  --------------------
61 cd  %binpath%
62 mkdir %vtk%Bin
63 cd %vtk%Bin
64 cmake -G"Visual Studio 10 Win64"  -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin 
65 cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%vtk%\ CMakeCache.txt
66 cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D VTK_USE_QT:BOOL=ON CMakeCache.txt
67 cmake CMakeCache.txt
68 call %vcvarsall%
69 FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType%
70 msbuild /p:Configuration=%buildType% INSTALL.vcxproj 
71
72
73
74 rem -------------  itk  --------------------
75 cd  %binpath%
76 mkdir %itk%Bin
77 cd %itk%Bin
78 cmake -G"Visual Studio 9 2008 Win64" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin 
79 cmake -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%itk%\ -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D ITK_USE_REVIEW:BOOL=ON CMakeCache.txt
80 cmake -D USE_DEBUG_LIB:BOOL=%buildType% CMakeCache.txt
81 cmake CMakeCache.txt
82 call %vcvarsall%
83 FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType%
84 msbuild /p:Configuration=%buildType% INSTALL.vcxproj
85
86
87
88
89 :next
90
91
92 rem -------------  xercesc  --------------------
93 cd  %sourcepath%\%xercesc%
94 call %vcvarsall%
95 FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType%
96 REM msbuild /p:Configuration=%buildType% INSTALL.vcxproj
97
98
99
100
101 pause