]> Creatis software - creaToolsTools.git/blob - Install_ThirdParty/scripts/move_thirdparty_dlls.bat
ffaafb22be54eb6f3068dd810f168f23ee5276b4
[creaToolsTools.git] / Install_ThirdParty / scripts / move_thirdparty_dlls.bat
1 REM ---------------------------------------------------------------------
2 REM
3 REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
4 REM                        pour la Santé)
5 REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 REM
7 REM  This software is governed by the CeCILL-B license under French law and 
8 REM  abiding by the rules of distribution of free software. You can  use, 
9 REM  modify and/ or redistribute the software under the terms of the CeCILL-B 
10 REM  license as circulated by CEA, CNRS and INRIA at the following URL 
11 REM  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
12 REM  or in the file LICENSE.txt.
13 REM
14 REM  As a counterpart to the access to the source code and  rights to copy,
15 REM  modify and redistribute granted by the license, users are provided only
16 REM  with a limited warranty  and the software's author,  the holder of the
17 REM  economic rights,  and the successive licensors  have only  limited
18 REM  liability. 
19 REM
20 REM  The fact that you are presently reading this means that you have had
21 REM  knowledge of the CeCILL-B license and that you accept its terms.
22 REM ------------------------------------------------------------------------  
23
24 @echo off
25 echo -----------------------------------
26 echo ----------Moving Dlls--------------
27 echo -----------------------------------
28 echo -----------------------------------
29 echo ---Setting Enviroment Variables----
30 echo -----------------------------------
31
32 set thirdpartyGeneration=%1
33 set buildType=%2
34 ::The following line is to force x86 or x64 compilation
35 set x86Comp=%3
36
37 set installpath=%thirdpartyGeneration%\thirdparty_install\%buildType%
38 set binpath=%thirdpartyGeneration%\thirdparty_bin\%buildType%
39 set sourcepath=%thirdpartyGeneration%\thirdparty_source\%buildType%
40
41 set creaThirdPartydlls=%thirdpartyGeneration%\thirdparty_temp\creaThirdParty_dlls
42
43 set qt=qt
44 set jom=jom
45 set wxWidgets=wxWidgets
46 set boost=boost
47 set xercesc=xerces
48 set itk=itk
49 set gdcm=gdcm13
50 set vtk=vtk
51 set tth=tth
52
53 set QTDIR=%sourcepath%\%qt%
54 set WXDIR=%sourcepath%\%wxWidgets%
55 set BOOSTDIR=%sourcepath%\%boost%
56 set XERCESDIR=%sourcepath%\%xercesc%
57 set ITKSRCDIR=%sourcepath%\%itk%
58 set VTKSRCDIR=%sourcepath%\%VTK%
59 set GDCMSRCDIR=%sourcepath%\%gdcm%
60 set BOOSTINSTALLDIR=%installpath%\%boost%
61 set ITKINSTALLDIR=%installpath%\%itk%
62 set VTKINSTALLDIR=%installpath%\%vtk%
63 set GDCMINSTALLDIR=%installpath%\%gdcm%
64
65 rmdir /S /Q %creaThirdPartydlls%
66
67 mkdir %creaThirdPartydlls%
68
69 echo setting buildtype libraries
70 echo if(%buildType%=="release")(
71         set qtBtype=4
72         set wxPrefixBase=wxbase28
73         set wxPrefixmsw=wxmsw28
74         set xercesFile=xerces-c_3_1.dll
75 ) else (
76         set qtBtype=d4
77         set wxPrefixBase=wxbase28d
78         set wxPrefixmsw=wxmsw28d
79         set xercesFile=xerces-c_3_1D.dll
80 )
81
82
83 if %x86Comp%==ON (
84         set vcFolder=vc_dll
85         set winType=Win32
86 ) else (
87         if %PROCESSOR_ARCHITECTURE%==x86  (
88                 set vcFolder=vc_dll
89                 set winType=Win32
90         ) else (
91                 set vcFolder=vc_amd64_dll
92                 set winType=Win64
93         )
94 )
95
96 echo -----------------------------------
97 echo Environment variables Configuration
98 echo -----------------------------------
99 echo ThirdpartyGeneration=%thirdpartyGeneration%
100 echo InstallPath=%installpath%
101 echo BinPath=%binpath%
102 echo SourcePath=%sourcepath%
103 echo creaThirdPartyLibraries=%thirdpartyInstallPath%\creaThirdParty_libraries
104 echo QT=%qt%
105 echo WX=%wxWidgets%
106 echo BOOST=%boost%
107 echo Xercesc=%xercesc%
108 echo ITK=%itk%
109 echo GDCM=%gdcm%
110 echo VTK=%vtk%
111 echo QTDIR=%QTDIR%
112 echo WKDIR=%WXDIR%
113 echo BOOSTDIR=%BOOSTDIR%
114 echo XERCESDIR=%XERCESDIR%
115 echo ITKSRCDIR=%ITKSRCDIR%
116 echo VTKSRCDIR=%VTKSRCDIR%
117
118
119 echo -----------------------------------
120 echo -------------QT--------------------
121 echo -----------------------------------
122
123 copy /V /Y %QTDIR%\bin\phonon%qtBtype%.dll %creaThirdPartydlls%
124 copy /V /Y %QTDIR%\bin\QtCore%qtBtype%.dll %creaThirdPartydlls%
125 copy /V /Y %QTDIR%\bin\QtGui%qtBtype%.dll %creaThirdPartydlls%
126 copy /V /Y %QTDIR%\bin\QtNetwork%qtBtype%.dll %creaThirdPartydlls%
127 copy /V /Y %QTDIR%\bin\QtOpenGL%qtBtype%.dll %creaThirdPartydlls%
128 copy /V /Y %QTDIR%\bin\QtScript%qtBtype%.dll %creaThirdPartydlls%
129 copy /V /Y %QTDIR%\bin\QtScriptTools%qtBtype%.dll %creaThirdPartydlls%
130 copy /V /Y %QTDIR%\bin\QtSql%qtBtype%.dll %creaThirdPartydlls%
131 copy /V /Y %QTDIR%\bin\QtSvg%qtBtype%.dll %creaThirdPartydlls%
132 copy /V /Y %QTDIR%\bin\QtTest%qtBtype%.dll %creaThirdPartydlls%
133 copy /V /Y %QTDIR%\bin\QtXml%qtBtype%.dll %creaThirdPartydlls%
134 copy /V /Y %QTDIR%\bin\QtXmlPatterns%qtBtype%.dll %creaThirdPartydlls%
135
136 echo -----------------------------------
137 echo -------------wxWidgets-------------
138 echo -----------------------------------
139
140
141 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_net_vc_custom.dll %creaThirdPartydlls%
142 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_vc_custom.dll %creaThirdPartydlls%
143 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_xml_vc_custom.dll %creaThirdPartydlls%
144 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_adv_vc_custom.dll %creaThirdPartydlls%
145 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_aui_vc_custom.dll %creaThirdPartydlls%
146 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_core_vc_custom.dll %creaThirdPartydlls%
147 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_gl_vc_custom.dll %creaThirdPartydlls%
148 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_html_vc_custom.dll %creaThirdPartydlls%
149 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_media_vc_custom.dll %creaThirdPartydlls%
150 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_qa_vc_custom.dll %creaThirdPartydlls%
151 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_richtext_vc_custom.dll %creaThirdPartydlls%
152 copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_xrc_vc_custom.dll %creaThirdPartydlls%
153
154
155 echo -----------------------------------
156 echo -------------Boost-----------------
157 echo -----------------------------------
158
159 set boostMT=-vc100-mt-1_49.dll
160 set boostMTGD=-vc100-mt-gd-1_49.dll
161
162 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_date_time%boostMT% %creaThirdPartydlls%
163 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_date_time%boostMTGD% %creaThirdPartydlls%
164 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_filesystem%boostMT% %creaThirdPartydlls%
165 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_filesystem%boostMTGD% %creaThirdPartydlls%
166 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_graph%boostMT% %creaThirdPartydlls%
167 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_graph%boostMTGD% %creaThirdPartydlls%
168 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_iostreams%boostMT% %creaThirdPartydlls%
169 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_iostreams%boostMTGD% %creaThirdPartydlls%
170 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_prg_exec_monitor%boostMT% %creaThirdPartydlls%
171 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_prg_exec_monitor%boostMTGD% %creaThirdPartydlls%
172 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_program_options%boostMT% %creaThirdPartydlls%
173 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_program_options%boostMTGD% %creaThirdPartydlls%
174 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_regex%boostMT% %creaThirdPartydlls%
175 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_regex%boostMTGD% %creaThirdPartydlls%
176 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_serialization%boostMT% %creaThirdPartydlls%
177 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_serialization%boostMTGD% %creaThirdPartydlls%
178 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_signals%boostMT% %creaThirdPartydlls%
179 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_signals%boostMTGD% %creaThirdPartydlls%
180 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_system%boostMT% %creaThirdPartydlls%
181 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_system%boostMTGD% %creaThirdPartydlls%
182 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_thread%boostMT% %creaThirdPartydlls%
183 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_thread%boostMTGD% %creaThirdPartydlls%
184 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_unit_test_framework%boostMT% %creaThirdPartydlls%
185 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_unit_test_framework%boostMTGD% %creaThirdPartydlls%
186 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_wave%boostMT% %creaThirdPartydlls%
187 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_wave%boostMTGD% %creaThirdPartydlls%
188 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_wserialization%boostMT% %creaThirdPartydlls%
189 copy /V /Y %BOOSTINSTALLDIR%\lib\boost_wserialization%boostMTGD% %creaThirdPartydlls%
190
191
192 echo -----------------------------------
193 echo -------------Xcerces---------------
194 echo -----------------------------------
195
196 copy /V /Y %XERCESDIR%\Build\%winType%\VC10\%buildType%\%xercesFile% %creaThirdPartydlls%
197
198 echo -----------------------------------
199 echo -------------ITK-------------------
200 echo -----------------------------------
201
202 copy /V /Y %ITKINSTALLDIR%\bin\*.exe %creaThirdPartydlls%
203 copy /V /Y %ITKINSTALLDIR%\bin\*.dll %creaThirdPartydlls%
204
205
206 echo -----------------------------------
207 echo -------------VTK-------------------
208 echo -----------------------------------
209
210 copy /V /Y %VTKINSTALLDIR%\bin\*.exe %creaThirdPartydlls%
211 copy /V /Y %VTKINSTALLDIR%\bin\*.dll %creaThirdPartydlls%
212
213 echo -----------------------------------
214 echo -------------GDCM------------------
215 echo -----------------------------------
216
217 copy /V /Y %GDCMINSTALLDIR%\bin\*.exe %creaThirdPartydlls%
218 copy /V /Y %GDCMINSTALLDIR%\bin\*.dll %creaThirdPartydlls%
219 echo -----------------------------------
220 echo ------End of Moving Dlls-----------
221 echo -----------------------------------
222
223 exit /B