]> Creatis software - creaToolsTools.git/blob - Install_ThirdParty/scripts/move_thirdparty_dlls.bat
DFCH: Install_ThirdParty script is now working in windows x64 =)
[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=gdcm
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 echo ) else (
54 echo    set qtBtype=d4
55 echo    set wxPrefixBase=wxbase293d
56 echo    set wxPrefixmsw=wxmsw293d
57 echo )
58
59
60 if %x86Comp%==ON (
61         set vcFolder=vc_dll
62         set winType=Win32
63 ) else (
64         if %PROCESSOR_ARCHITECTURE%==x86  (
65                 set vcFolder=vc_dll
66                 set winType=Win32
67         ) else (
68                 set vcFolder=vc_amd64_dll
69                 set winType=Win64
70         )
71 )
72
73 echo -----------------------------------
74 echo Environment variables Configuration
75 echo -----------------------------------
76 echo ThirdpartyGeneration=%thirdpartyGeneration%
77 echo MikTex=%miktex%
78 echo miktexAux=%miktexAux%
79 echo InstallPath=%installpath%
80 echo BinPath=%binpath%
81 echo SourcePath=%sourcepath%
82 echo creaThirdPartyLibraries=%thirdpartyInstallPath%\creaThirdParty_libraries
83 echo QT=%qt%
84 echo WX=%wxWidgets%
85 echo BOOST=%boost%
86 echo Xercesc=%xercesc%
87 echo ITK=%itk%
88 echo GDCM=%gdcm%
89 echo VTK=%vtk%
90 echo QTDIR=%QTDIR%
91 echo WKDIR=%WXDIR%
92 echo BOOSTDIR=%BOOSTDIR%
93 echo XERCESDIR=%XERCESDIR%
94 echo ITKSRCDIR=%ITKSRCDIR%
95 echo VTKSRCDIR=%VTKSRCDIR%
96
97
98 echo -----------------------------------
99 echo -------------QT--------------------
100 echo -----------------------------------
101
102 copy /V /Y %QTDIR%\bin\phonon%qtBtype%.dll %creaThirdPartydlls%
103 copy /V /Y %QTDIR%\bin\QtCore%qtBtype%.dll %creaThirdPartydlls%
104 copy /V /Y %QTDIR%\bin\QtGui%qtBtype%.dll %creaThirdPartydlls%
105 copy /V /Y %QTDIR%\bin\QtNetwork%qtBtype%.dll %creaThirdPartydlls%
106 copy /V /Y %QTDIR%\bin\QtOpenGL%qtBtype%.dll %creaThirdPartydlls%
107 copy /V /Y %QTDIR%\bin\QtScript%qtBtype%.dll %creaThirdPartydlls%
108 copy /V /Y %QTDIR%\bin\QtScriptTools%qtBtype%.dll %creaThirdPartydlls%
109 copy /V /Y %QTDIR%\bin\QtSql%qtBtype%.dll %creaThirdPartydlls%
110 copy /V /Y %QTDIR%\bin\QtSvg%qtBtype%.dll %creaThirdPartydlls%
111 copy /V /Y %QTDIR%\bin\QtTest%qtBtype%.dll %creaThirdPartydlls%
112 copy /V /Y %QTDIR%\bin\QtXml%qtBtype%.dll %creaThirdPartydlls%
113 copy /V /Y %QTDIR%\bin\QtXmlPatterns%qtBtype%.dll %creaThirdPartydlls%
114
115 :: In order to compile I have to copy the following dlls -- change it because those libraries should be in dll folder of thirdparty libs
116 copy /V /Y %QTDIR%\bin\assistant.exe %creaThirdPartydlls%
117 copy /V /Y %QTDIR%\bin\designer.exe %creaThirdPartydlls%
118 copy /V /Y %QTDIR%\bin\dumpcpp.exe %creaThirdPartydlls%
119 copy /V /Y %QTDIR%\bin\idc.exe %creaThirdPartydlls%
120 copy /V /Y %QTDIR%\bin\lconvert.exe %creaThirdPartydlls%
121 copy /V /Y %QTDIR%\bin\linguist.exe %creaThirdPartydlls%
122 copy /V /Y %QTDIR%\bin\lrelease.exe %creaThirdPartydlls%
123 copy /V /Y %QTDIR%\bin\lupdate.exe %creaThirdPartydlls%
124 copy /V /Y %QTDIR%\bin\moc.exe %creaThirdPartydlls%
125 copy /V /Y %QTDIR%\bin\pixeltool.exe %creaThirdPartydlls%
126 copy /V /Y %QTDIR%\bin\qcollectiongenerator.exe %creaThirdPartydlls%
127 copy /V /Y %QTDIR%\bin\qhelpconverter.exe %creaThirdPartydlls%
128 copy /V /Y %QTDIR%\bin\qhelpgenerator.exe %creaThirdPartydlls%
129 copy /V /Y %QTDIR%\bin\qmake.exe %creaThirdPartydlls%
130 copy /V /Y %QTDIR%\bin\qt3to4.exe %creaThirdPartydlls%
131 copy /V /Y %QTDIR%\bin\qtdemo.exe %creaThirdPartydlls%
132 copy /V /Y %QTDIR%\bin\rcc.exe %creaThirdPartydlls%
133 copy /V /Y %QTDIR%\bin\uic.exe %creaThirdPartydlls%
134 copy /V /Y %QTDIR%\bin\uic3.exe %creaThirdPartydlls%
135 copy /V /Y %QTDIR%\bin\xmlpatterns.exe %creaThirdPartydlls%
136 copy /V /Y %QTDIR%\bin\Qt3Support%qtBtype%.dll %creaThirdPartydlls%
137 copy /V /Y %QTDIR%\bin\QtCore%qtBtype%.dll %creaThirdPartydlls%
138 copy /V /Y %QTDIR%\bin\QtDesigner%qtBtype%.dll %creaThirdPartydlls%
139 copy /V /Y %QTDIR%\bin\QtDesignerComponents%qtBtype%.dll %creaThirdPartydlls%
140 ::End of temporal copy
141
142 echo -----------------------------------
143 echo -------------wxWidgets-------------
144 echo -----------------------------------
145
146
147 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_net_vc_custom.dll %creaThirdPartydlls%
148 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_vc_custom.dll %creaThirdPartydlls%
149 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_xml_vc_custom.dll %creaThirdPartydlls%
150 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_adv_vc_custom.dll %creaThirdPartydlls%
151 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_aui_vc_custom.dll %creaThirdPartydlls%
152 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_core_vc_custom.dll %creaThirdPartydlls%
153 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_gl_vc_custom.dll %creaThirdPartydlls%
154 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_html_vc_custom.dll %creaThirdPartydlls%
155 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_media_vc_custom.dll %creaThirdPartydlls%
156 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_qa_vc_custom.dll %creaThirdPartydlls%
157 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_richtext_vc_custom.dll %creaThirdPartydlls%
158 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_xrc_vc_custom.dll %creaThirdPartydlls%
159
160
161 echo -----------------------------------
162 echo -------------Boost-----------------
163 echo -----------------------------------
164
165 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_date_time%boostMT% %creaThirdPartydlls%
166 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_date_time%boostMTGD% %creaThirdPartydlls%
167 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_filesystem%boostMT% %creaThirdPartydlls%
168 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_filesystem%boostMTGD% %creaThirdPartydlls%
169 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_graph%boostMT% %creaThirdPartydlls%
170 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_graph%boostMTGD% %creaThirdPartydlls%
171 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_iostreams%boostMT% %creaThirdPartydlls%
172 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_iostreams%boostMTGD% %creaThirdPartydlls%
173 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_prg_exec_monitor%boostMT% %creaThirdPartydlls%
174 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_prg_exec_monitor%boostMTGD% %creaThirdPartydlls%
175 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_program_options%boostMT% %creaThirdPartydlls%
176 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_program_options%boostMTGD% %creaThirdPartydlls%
177 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_regex%boostMT% %creaThirdPartydlls%
178 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_regex%boostMTGD% %creaThirdPartydlls%
179 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_serialization%boostMT% %creaThirdPartydlls%
180 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_serialization%boostMTGD% %creaThirdPartydlls%
181 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_signals%boostMT% %creaThirdPartydlls%
182 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_signals%boostMTGD% %creaThirdPartydlls%
183 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_system%boostMT% %creaThirdPartydlls%
184 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_system%boostMTGD% %creaThirdPartydlls%
185 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_thread%boostMT% %creaThirdPartydlls%
186 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_thread%boostMTGD% %creaThirdPartydlls%
187 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_unit_test_framework%boostMT% %creaThirdPartydlls%
188 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_unit_test_framework%boostMTGD% %creaThirdPartydlls%
189 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_wave%boostMT% %creaThirdPartydlls%
190 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_wave%boostMTGD% %creaThirdPartydlls%
191 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_wserialization%boostMT% %creaThirdPartydlls%
192 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_wserialization%boostMTGD% %creaThirdPartydlls%
193
194
195 echo -----------------------------------
196 echo -------------Xcerces---------------
197 echo -----------------------------------
198
199 copy /V /Y %XERCESDIR%\Build\%winType%\VC10\Release\xerces-c_3_1.dll %creaThirdPartydlls%
200
201 echo -----------------------------------
202 echo -------------ITK-------------------
203 echo -----------------------------------
204
205 copy /V /Y %ITKINSTALLDIR%\bin\*.exe %creaThirdPartydlls%
206 copy /V /Y %ITKINSTALLDIR%\bin\*.dll %creaThirdPartydlls%
207
208
209 echo -----------------------------------
210 echo -------------VTK-------------------
211 echo -----------------------------------
212
213 copy /V /Y %VTKINSTALLDIR%\bin\*.exe %creaThirdPartydlls%
214 copy /V /Y %VTKINSTALLDIR%\bin\*.dll %creaThirdPartydlls%
215
216 echo -----------------------------------
217 echo -------------GDCM------------------
218 echo -----------------------------------
219
220 copy /V /Y %GDCMINSTALLDIR%\bin\*.exe %creaThirdPartydlls%
221 copy /V /Y %GDCMINSTALLDIR%\bin\*.dll %creaThirdPartydlls%
222 echo -----------------------------------
223 echo ------End of Moving Dlls-----------
224 echo -----------------------------------
225
226 exit /B