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