]> Creatis software - creaToolsTools.git/blob - Install_ThirdParty/scripts/creaThirdParty_dlls.bat
DFCH: dlls script works :)
[creaToolsTools.git] / Install_ThirdParty / scripts / creaThirdParty_dlls.bat
1 @echo off
2 echo -----------------------------------
3 echo ---Setting Enviroment Variables----
4 echo -----------------------------------
5
6 @echo on
7 set thirdpartyGeneration=%1
8
9 set installpath=%thirdpartyGeneration%\thirdparty_install
10 set binpath=%thirdpartyGeneration%\thirdparty_bin
11 set sourcepath=%thirdpartyGeneration%\thirdparty_source
12 set creaThirdPartydlls=%thirdpartyGeneration%\creaThirdParty
13
14 set qt=Qt-4.7.3
15 set wxWidgets=wxWidgets-2.9.2
16 set boost=Boost-1.47.0
17 set xercesc=xerces-c-3.1.1
18 set itk=InsightToolkit-3.20.0
19 set gdcm=gdcm
20 set vtk=VTK
21
22 set QTDIR=%sourcepath%\%qt%
23 set WXDIR=%sourcepath%\%wxWidgets%
24 set BOOSTDIR=%sourcepath%\%boost%
25 set XERCESDIR=%sourcepath%\%xercesc%
26 set ITKSRCDIR=%sourcepath%\%itk%
27 set VTKSRCDIR=%sourcepath%\%VTK%
28 set GDCMSRCDIR=%sourcepath%\%gdcm%
29 set ITKINSTALLDIR=%installpath%\%itk%
30 set VTKINSTALLDIR=%installpath%\%vtk%
31 set GDCMINSTALLDIR=%installpath%\%gdcm%
32
33 mkdir %creaThirdPartydlls%
34
35 @echo off
36 echo -----------------------------------
37 echo -------------QT--------------------
38 echo -----------------------------------
39 @echo on
40
41 cd %creaThirdPartydlls%
42 mkdir %qt%\lib
43 copy /V /Y %QTDIR%\bin\phonon4.dll %qt%\lib
44 copy /V /Y %QTDIR%\bin\QtCore4.dll %qt%\lib
45 copy /V /Y %QTDIR%\bin\QtGui4.dll %qt%\lib
46 copy /V /Y %QTDIR%\bin\QtNetwork4.dll %qt%\lib
47 copy /V /Y %QTDIR%\bin\QtOpenGL4.dll %qt%\lib
48 copy /V /Y %QTDIR%\bin\QtScript4.dll %qt%\lib
49 copy /V /Y %QTDIR%\bin\QtScriptTools4.dll %qt%\lib
50 copy /V /Y %QTDIR%\bin\QtSql4.dll %qt%\lib
51 copy /V /Y %QTDIR%\bin\QtSvg4.dll %qt%\lib
52 copy /V /Y %QTDIR%\bin\QtTest4.dll %qt%\lib
53 copy /V /Y %QTDIR%\bin\QtXml4.dll %qt%\lib
54 copy /V /Y %QTDIR%\bin\QtXmlPatterns4.dll %qt%\lib
55
56
57
58 @echo off
59 echo -----------------------------------
60 echo -------------wxWidgets--------------------
61 echo -----------------------------------
62 @echo on
63 cd %creaThirdPartydlls%
64 mkdir %wxWidgets%\lib
65 copy /V /Y %WXDIR%\lib\vc_dll\wxbase292u_net_vc_custom.dll %wxWidgets%\lib
66 copy /V /Y %WXDIR%\lib\vc_dll\wxbase292u_vc_custom.dll %wxWidgets%\lib
67 copy /V /Y %WXDIR%\lib\vc_dll\wxbase292u_xml_vc_custom.dll %wxWidgets%\lib
68 copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_adv_vc_custom.dll %wxWidgets%\lib
69 copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_aui_vc_custom.dll %wxWidgets%\lib
70 copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_core_vc_custom.dll %wxWidgets%\lib
71 copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_gl_vc_custom.dll %wxWidgets%\lib
72 copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_html_vc_custom.dll %wxWidgets%\lib
73 copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_media_vc_custom.dll %wxWidgets%\lib
74 copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_qa_vc_custom.dll %wxWidgets%\lib
75 copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_richtext_vc_custom.dll %wxWidgets%\lib
76 copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_xrc_vc_custom.dll %wxWidgets%\lib
77
78 @echo off
79 echo -----------------------------------
80 echo -------------Boost--------------------
81 echo -----------------------------------
82 @echo on
83
84 cd %creaThirdPartydlls%
85 mkdir %boost%\lib
86
87 copy /V /Y %BOOSTDIR%\stage\lib\boost_date_time-vc100-mt-1_47.dll %boost%\lib
88 copy /V /Y %BOOSTDIR%\stage\lib\boost_date_time-vc100-mt-gd-1_47.dll %boost%\lib
89 copy /V /Y %BOOSTDIR%\stage\lib\boost_filesystem-vc100-mt-1_47.dll %boost%\lib
90 copy /V /Y %BOOSTDIR%\stage\lib\boost_filesystem-vc100-mt-gd-1_47.dll %boost%\lib
91 copy /V /Y %BOOSTDIR%\stage\lib\boost_graph-vc100-mt-1_47.dll %boost%\lib
92 copy /V /Y %BOOSTDIR%\stage\lib\boost_graph-vc100-mt-gd-1_47.dll %boost%\lib
93 copy /V /Y %BOOSTDIR%\stage\lib\boost_iostreams-vc100-mt-1_47.dll %boost%\lib
94 copy /V /Y %BOOSTDIR%\stage\lib\boost_iostreams-vc100-mt-gd-1_47.dll %boost%\lib
95 copy /V /Y %BOOSTDIR%\stage\lib\boost_prg_exec_monitor-vc100-mt-1_47.dll %boost%\lib
96 copy /V /Y %BOOSTDIR%\stage\lib\boost_prg_exec_monitor-vc100-mt-gd-1_47.dll %boost%\lib
97 copy /V /Y %BOOSTDIR%\stage\lib\boost_program_options-vc100-mt-1_47.dll %boost%\lib
98 copy /V /Y %BOOSTDIR%\stage\lib\boost_program_options-vc100-mt-gd-1_47.dll %boost%\lib
99 copy /V /Y %BOOSTDIR%\stage\lib\boost_regex-vc100-mt-1_47.dll %boost%\lib
100 copy /V /Y %BOOSTDIR%\stage\lib\boost_regex-vc100-mt-gd-1_47.dll %boost%\lib
101 copy /V /Y %BOOSTDIR%\stage\lib\boost_serialization-vc100-mt-1_47.dll %boost%\lib
102 copy /V /Y %BOOSTDIR%\stage\lib\boost_serialization-vc100-mt-gd-1_47.dll %boost%\lib
103 copy /V /Y %BOOSTDIR%\stage\lib\boost_signals-vc100-mt-1_47.dll %boost%\lib
104 copy /V /Y %BOOSTDIR%\stage\lib\boost_signals-vc100-mt-gd-1_47.dll %boost%\lib
105 copy /V /Y %BOOSTDIR%\stage\lib\boost_system-vc100-mt-1_47.dll %boost%\lib
106 copy /V /Y %BOOSTDIR%\stage\lib\boost_system-vc100-mt-gd-1_47.dll %boost%\lib
107 copy /V /Y %BOOSTDIR%\stage\lib\boost_thread-vc100-mt-1_47.dll %boost%\lib
108 copy /V /Y %BOOSTDIR%\stage\lib\boost_thread-vc100-mt-gd-1_47.dll %boost%\lib
109 copy /V /Y %BOOSTDIR%\stage\lib\boost_unit_test_framework-vc100-mt-1_47.dll %boost%\lib
110 copy /V /Y %BOOSTDIR%\stage\lib\boost_unit_test_framework-vc100-mt-gd-1_47.dll %boost%\lib
111 copy /V /Y %BOOSTDIR%\stage\lib\boost_wave-vc100-mt-1_47.dll %boost%\lib
112 copy /V /Y %BOOSTDIR%\stage\lib\boost_wave-vc100-mt-gd-1_47.dll %boost%\lib
113 copy /V /Y %BOOSTDIR%\stage\lib\boost_wserialization-vc100-mt-1_47.dll %boost%\lib
114 copy /V /Y %BOOSTDIR%\stage\lib\boost_wserialization-vc100-mt-gd-1_47.dll %boost%\lib
115
116 @echo off
117 echo -----------------------------------
118 echo -------------Xcerces--------------------
119 echo -----------------------------------
120 @echo on
121
122 cd %creaThirdPartydlls%
123 mkdir %xercesc%\lib
124
125 copy /V /Y %XERCESDIR%\Build\Win32\VC10\Release\xerces-c_3_1.dll %xercesc%\lib
126
127 @echo off
128 echo -----------------------------------
129 echo -------------ITK--------------------
130 echo -----------------------------------
131 @echo on
132
133 cd %creaThirdPartydlls%
134 mkdir %itk%\lib
135 mkdir %itk%\bin
136
137 copy /V /Y %ITKINSTALLDIR%\bin\ITKCommon.dll %itk%\lib
138
139 copy /V /Y %ITKINSTALLDIR%\bin\itkTestDriver.exe %itk%\bin
140
141
142 @echo off
143 echo -----------------------------------
144 echo -------------VTK--------------------
145 echo -----------------------------------
146 @echo on
147
148 cd %creaThirdPartydlls%
149 mkdir %vtk%\lib
150 mkdir %vtk%\bin
151
152 copy /V /Y %VTKINSTALLDIR%\bin\vtkEncodeString.exe %vtk%\bin
153
154
155 copy /V /Y %VTKINSTALLDIR%\bin\QVTK.dll %vtk%\lib
156 copy /V /Y %VTKINSTALLDIR%\bin\vtkalglib.dll %vtk%\lib
157 copy /V /Y %VTKINSTALLDIR%\bin\vtkCommon.dll %vtk%\lib
158 copy /V /Y %VTKINSTALLDIR%\bin\vtkDICOMParser.dll %vtk%\lib
159 copy /V /Y %VTKINSTALLDIR%\bin\vtkexoIIc.dll %vtk%\lib
160 copy /V /Y %VTKINSTALLDIR%\bin\vtkexpat.dll %vtk%\lib
161 copy /V /Y %VTKINSTALLDIR%\bin\vtkFiltering.dll %vtk%\lib
162 copy /V /Y %VTKINSTALLDIR%\bin\vtkfreetype.dll %vtk%\lib
163 copy /V /Y %VTKINSTALLDIR%\bin\vtkftgl.dll %vtk%\lib
164 copy /V /Y %VTKINSTALLDIR%\bin\vtkGenericFiltering.dll %vtk%\lib
165 copy /V /Y %VTKINSTALLDIR%\bin\vtkGraphics.dll %vtk%\lib
166 copy /V /Y %VTKINSTALLDIR%\bin\vtkHybrid.dll %vtk%\lib
167 copy /V /Y %VTKINSTALLDIR%\bin\vtkImaging.dll %vtk%\lib
168 copy /V /Y %VTKINSTALLDIR%\bin\vtkInfovis.dll %vtk%\lib
169 copy /V /Y %VTKINSTALLDIR%\bin\vtkIO.dll %vtk%\lib
170 copy /V /Y %VTKINSTALLDIR%\bin\vtkjpeg.dll %vtk%\lib
171 copy /V /Y %VTKINSTALLDIR%\bin\vtklibxml2.dll %vtk%\lib
172 copy /V /Y %VTKINSTALLDIR%\bin\vtkmetaio.dll %vtk%\lib
173 copy /V /Y %VTKINSTALLDIR%\bin\vtkNetCDF.dll %vtk%\lib
174 copy /V /Y %VTKINSTALLDIR%\bin\vtkpng.dll %vtk%\lib
175 copy /V /Y %VTKINSTALLDIR%\bin\vtkproj4.dll %vtk%\lib
176 copy /V /Y %VTKINSTALLDIR%\bin\vtkRendering.dll %vtk%\lib
177 copy /V /Y %VTKINSTALLDIR%\bin\vtksys.dll %vtk%\lib
178 copy /V /Y %VTKINSTALLDIR%\bin\vtktiff.dll %vtk%\lib
179 copy /V /Y %VTKINSTALLDIR%\bin\vtkverdict.dll %vtk%\lib
180 copy /V /Y %VTKINSTALLDIR%\bin\vtkViews.dll %vtk%\lib
181 copy /V /Y %VTKINSTALLDIR%\bin\vtkVolumeRendering.dll %vtk%\lib
182 copy /V /Y %VTKINSTALLDIR%\bin\vtkWidgets.dll %vtk%\lib
183 copy /V /Y %VTKINSTALLDIR%\bin\vtkzlib.dll %vtk%\lib
184
185 @echo off
186 echo -----------------------------------
187 echo -------------GDCM--------------------
188 echo -----------------------------------
189 @echo on
190
191 cd %creaThirdPartydlls%
192 mkdir %gdcm%\lib
193 mkdir %gdcm%\bin
194
195
196 copy /V /Y %GDCMINSTALLDIR%\bin\*.exe %gdcm%\bin
197 copy /V /Y %GDCMINSTALLDIR%\bin\*.dll %gdcm%\lib