1 REM ---------------------------------------------------------------------
3 REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
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.
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
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 ------------------------------------------------------------------------
25 echo -----------------------------------
26 echo ----------Moving Dlls--------------
27 echo -----------------------------------
28 echo -----------------------------------
29 echo ---Setting Enviroment Variables----
30 echo -----------------------------------
32 set thirdpartyGeneration=%1
34 ::The following line is to force x86 or x64 compilation
37 set installpath=%thirdpartyGeneration%\thirdparty_install\%buildType%
38 set binpath=%thirdpartyGeneration%\thirdparty_bin\%buildType%
39 set sourcepath=%thirdpartyGeneration%\thirdparty_source\%buildType%
41 set creaThirdPartydlls=%thirdpartyGeneration%\thirdparty_temp\creaThirdParty_dlls
45 set wxWidgets=wxWidgets
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%
65 rmdir /S /Q %creaThirdPartydlls%
67 mkdir %creaThirdPartydlls%
69 echo setting buildtype libraries
70 echo if(%buildType%=="release")(
72 set wxPrefixBase=wxbase28
73 set wxPrefixmsw=wxmsw28
74 set xercesFile=xerces-c_3_1.dll
77 set wxPrefixBase=wxbase28d
78 set wxPrefixmsw=wxmsw28d
79 set xercesFile=xerces-c_3_1D.dll
87 if %PROCESSOR_ARCHITECTURE%==x86 (
91 set vcFolder=vc_amd64_dll
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
107 echo Xercesc=%xercesc%
113 echo BOOSTDIR=%BOOSTDIR%
114 echo XERCESDIR=%XERCESDIR%
115 echo ITKSRCDIR=%ITKSRCDIR%
116 echo VTKSRCDIR=%VTKSRCDIR%
119 echo -----------------------------------
120 echo -------------QT--------------------
121 echo -----------------------------------
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%
136 echo -----------------------------------
137 echo -------------wxWidgets-------------
138 echo -----------------------------------
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%
155 echo -----------------------------------
156 echo -------------Boost-----------------
157 echo -----------------------------------
159 set boostMT=-vc100-mt-1_49.dll
160 set boostMTGD=-vc100-mt-gd-1_49.dll
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%
192 echo -----------------------------------
193 echo -------------Xcerces---------------
194 echo -----------------------------------
196 copy /V /Y %XERCESDIR%\Build\%winType%\VC10\%buildType%\%xercesFile% %creaThirdPartydlls%
198 echo -----------------------------------
199 echo -------------ITK-------------------
200 echo -----------------------------------
202 copy /V /Y %ITKINSTALLDIR%\bin\*.exe %creaThirdPartydlls%
203 copy /V /Y %ITKINSTALLDIR%\bin\*.dll %creaThirdPartydlls%
206 echo -----------------------------------
207 echo -------------VTK-------------------
208 echo -----------------------------------
210 copy /V /Y %VTKINSTALLDIR%\bin\*.exe %creaThirdPartydlls%
211 copy /V /Y %VTKINSTALLDIR%\bin\*.dll %creaThirdPartydlls%
213 echo -----------------------------------
214 echo -------------GDCM------------------
215 echo -----------------------------------
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 -----------------------------------