]> Creatis software - creaToolsTools.git/blob - Install_ThirdParty/scripts/move_thirdparty_dlls.bat
d538fcede2b2e0e6235d302e9e3171d3bfbc58df
[creaToolsTools.git] / Install_ThirdParty / scripts / move_thirdparty_dlls.bat
1 @echo off
2 echo -----------------------------------
3 echo ----------Moving Dlls--------------
4 echo -----------------------------------
5 echo -----------------------------------
6 echo ---Setting Enviroment Variables----
7 echo -----------------------------------
8
9 set thirdpartyGeneration=%1
10 set buildType=%2
11 ::The following line is to force x86 or x64 compilation
12 set x86Comp=%3
13
14 set installpath=%thirdpartyGeneration%\thirdparty_install\%buildType%
15 set binpath=%thirdpartyGeneration%\thirdparty_bin\%buildType%
16 set sourcepath=%thirdpartyGeneration%\thirdparty_source\%buildType%
17
18 set creaThirdPartydlls=%thirdpartyGeneration%\thirdparty_temp\creaThirdParty_dlls
19
20 set qt=qt
21 set jom=jom
22 set wxWidgets=wxWidgets
23 set boost=boost
24 set xercesc=xerces
25 set itk=itk
26 set gdcm=gdcm13
27 set vtk=vtk
28 set tth=tth
29
30 set QTDIR=%sourcepath%\%qt%
31 set WXDIR=%sourcepath%\%wxWidgets%
32 set BOOSTDIR=%sourcepath%\%boost%
33 set XERCESDIR=%sourcepath%\%xercesc%
34 set ITKSRCDIR=%sourcepath%\%itk%
35 set VTKSRCDIR=%sourcepath%\%VTK%
36 set GDCMSRCDIR=%sourcepath%\%gdcm%
37 set BOOSTINSTALLDIR=%installpath%\%boost%
38 set ITKINSTALLDIR=%installpath%\%itk%
39 set VTKINSTALLDIR=%installpath%\%vtk%
40 set GDCMINSTALLDIR=%installpath%\%gdcm%
41
42 rmdir /S /Q %creaThirdPartydlls%
43
44 mkdir %creaThirdPartydlls%
45
46 echo setting buildtype libraries
47 echo if(%buildType%=="release")(
48         set qtBtype=4
49         set wxPrefixBase=wxbase28
50         set wxPrefixmsw=wxmsw28
51         set boostMT=-vc100-mt-1_49.dll
52         set boostMTGD=-vc100-mt-gd-1_49.dll
53         ) 
54 ::else (
55 ::echo  set qtBtype=d4
56 ::echo  set wxPrefixBase=wxbase293d
57 ::echo  set wxPrefixmsw=wxmsw293d
58 ::echo )
59
60
61 if %x86Comp%==ON (
62         set vcFolder=vc_dll
63         set winType=Win32
64 ) else (
65         if %PROCESSOR_ARCHITECTURE%==x86  (
66                 set vcFolder=vc_dll
67                 set winType=Win32
68         ) else (
69                 set vcFolder=vc_amd64_dll
70                 set winType=Win64
71         )
72 )
73
74 echo -----------------------------------
75 echo Environment variables Configuration
76 echo -----------------------------------
77 echo ThirdpartyGeneration=%thirdpartyGeneration%
78 echo InstallPath=%installpath%
79 echo BinPath=%binpath%
80 echo SourcePath=%sourcepath%
81 echo creaThirdPartyLibraries=%thirdpartyInstallPath%\creaThirdParty_libraries
82 echo QT=%qt%
83 echo WX=%wxWidgets%
84 echo BOOST=%boost%
85 echo Xercesc=%xercesc%
86 echo ITK=%itk%
87 echo GDCM=%gdcm%
88 echo VTK=%vtk%
89 echo QTDIR=%QTDIR%
90 echo WKDIR=%WXDIR%
91 echo BOOSTDIR=%BOOSTDIR%
92 echo XERCESDIR=%XERCESDIR%
93 echo ITKSRCDIR=%ITKSRCDIR%
94 echo VTKSRCDIR=%VTKSRCDIR%
95
96
97 echo -----------------------------------
98 echo -------------QT--------------------
99 echo -----------------------------------
100
101 copy /V /Y %QTDIR%\bin\phonon%qtBtype%.dll %creaThirdPartydlls%
102 copy /V /Y %QTDIR%\bin\QtCore%qtBtype%.dll %creaThirdPartydlls%
103 copy /V /Y %QTDIR%\bin\QtGui%qtBtype%.dll %creaThirdPartydlls%
104 copy /V /Y %QTDIR%\bin\QtNetwork%qtBtype%.dll %creaThirdPartydlls%
105 copy /V /Y %QTDIR%\bin\QtOpenGL%qtBtype%.dll %creaThirdPartydlls%
106 copy /V /Y %QTDIR%\bin\QtScript%qtBtype%.dll %creaThirdPartydlls%
107 copy /V /Y %QTDIR%\bin\QtScriptTools%qtBtype%.dll %creaThirdPartydlls%
108 copy /V /Y %QTDIR%\bin\QtSql%qtBtype%.dll %creaThirdPartydlls%
109 copy /V /Y %QTDIR%\bin\QtSvg%qtBtype%.dll %creaThirdPartydlls%
110 copy /V /Y %QTDIR%\bin\QtTest%qtBtype%.dll %creaThirdPartydlls%
111 copy /V /Y %QTDIR%\bin\QtXml%qtBtype%.dll %creaThirdPartydlls%
112 copy /V /Y %QTDIR%\bin\QtXmlPatterns%qtBtype%.dll %creaThirdPartydlls%
113
114 echo -----------------------------------
115 echo -------------wxWidgets-------------
116 echo -----------------------------------
117
118
119 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_net_vc_custom.dll %creaThirdPartydlls%
120 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_vc_custom.dll %creaThirdPartydlls%
121 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_xml_vc_custom.dll %creaThirdPartydlls%
122 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_adv_vc_custom.dll %creaThirdPartydlls%
123 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_aui_vc_custom.dll %creaThirdPartydlls%
124 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_core_vc_custom.dll %creaThirdPartydlls%
125 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_gl_vc_custom.dll %creaThirdPartydlls%
126 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_html_vc_custom.dll %creaThirdPartydlls%
127 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_media_vc_custom.dll %creaThirdPartydlls%
128 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_qa_vc_custom.dll %creaThirdPartydlls%
129 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_richtext_vc_custom.dll %creaThirdPartydlls%
130 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_xrc_vc_custom.dll %creaThirdPartydlls%
131
132
133 echo -----------------------------------
134 echo -------------Boost-----------------
135 echo -----------------------------------
136
137 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_date_time%boostMT% %creaThirdPartydlls%
138 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_date_time%boostMTGD% %creaThirdPartydlls%
139 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_filesystem%boostMT% %creaThirdPartydlls%
140 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_filesystem%boostMTGD% %creaThirdPartydlls%
141 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_graph%boostMT% %creaThirdPartydlls%
142 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_graph%boostMTGD% %creaThirdPartydlls%
143 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_iostreams%boostMT% %creaThirdPartydlls%
144 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_iostreams%boostMTGD% %creaThirdPartydlls%
145 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_prg_exec_monitor%boostMT% %creaThirdPartydlls%
146 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_prg_exec_monitor%boostMTGD% %creaThirdPartydlls%
147 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_program_options%boostMT% %creaThirdPartydlls%
148 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_program_options%boostMTGD% %creaThirdPartydlls%
149 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_regex%boostMT% %creaThirdPartydlls%
150 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_regex%boostMTGD% %creaThirdPartydlls%
151 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_serialization%boostMT% %creaThirdPartydlls%
152 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_serialization%boostMTGD% %creaThirdPartydlls%
153 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_signals%boostMT% %creaThirdPartydlls%
154 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_signals%boostMTGD% %creaThirdPartydlls%
155 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_system%boostMT% %creaThirdPartydlls%
156 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_system%boostMTGD% %creaThirdPartydlls%
157 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_thread%boostMT% %creaThirdPartydlls%
158 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_thread%boostMTGD% %creaThirdPartydlls%
159 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_unit_test_framework%boostMT% %creaThirdPartydlls%
160 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_unit_test_framework%boostMTGD% %creaThirdPartydlls%
161 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_wave%boostMT% %creaThirdPartydlls%
162 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_wave%boostMTGD% %creaThirdPartydlls%
163 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_wserialization%boostMT% %creaThirdPartydlls%
164 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_wserialization%boostMTGD% %creaThirdPartydlls%
165
166
167 echo -----------------------------------
168 echo -------------Xcerces---------------
169 echo -----------------------------------
170
171 copy /V /Y %XERCESDIR%\Build\%winType%\VC10\Release\xerces-c_3_1.dll %creaThirdPartydlls%
172
173 echo -----------------------------------
174 echo -------------ITK-------------------
175 echo -----------------------------------
176
177 copy /V /Y %ITKINSTALLDIR%\bin\*.exe %creaThirdPartydlls%
178 copy /V /Y %ITKINSTALLDIR%\bin\*.dll %creaThirdPartydlls%
179
180
181 echo -----------------------------------
182 echo -------------VTK-------------------
183 echo -----------------------------------
184
185 copy /V /Y %VTKINSTALLDIR%\bin\*.exe %creaThirdPartydlls%
186 copy /V /Y %VTKINSTALLDIR%\bin\*.dll %creaThirdPartydlls%
187
188 echo -----------------------------------
189 echo -------------GDCM------------------
190 echo -----------------------------------
191
192 copy /V /Y %GDCMINSTALLDIR%\bin\*.exe %creaThirdPartydlls%
193 copy /V /Y %GDCMINSTALLDIR%\bin\*.dll %creaThirdPartydlls%
194 echo -----------------------------------
195 echo ------End of Moving Dlls-----------
196 echo -----------------------------------
197
198 exit /B