X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Install_ThirdParty%2Fscripts%2Fmove_thirdparty_dlls.bat;h=0b3c0f34dc7f7ff9521a77f16550a6db5673e19f;hb=a97bd22a8b4daa4d950b2ecd17e239c5b8ddd281;hp=a58ae0445edb0546636f31a6450ce9909de31f87;hpb=90227b5917db09ab63d56cc5c0ba0198f2698649;p=creaToolsTools.git diff --git a/Install_ThirdParty/scripts/move_thirdparty_dlls.bat b/Install_ThirdParty/scripts/move_thirdparty_dlls.bat index a58ae04..0b3c0f3 100644 --- a/Install_ThirdParty/scripts/move_thirdparty_dlls.bat +++ b/Install_ThirdParty/scripts/move_thirdparty_dlls.bat @@ -7,20 +7,25 @@ echo ---Setting Enviroment Variables---- echo ----------------------------------- set thirdpartyGeneration=%1 -set thirdpartyInstallPath=%2 +set buildType=%2 +::The following line is to force x86 or x64 compilation +set x86Comp=%3 + +set installpath=%thirdpartyGeneration%\thirdparty_install\%buildType% +set binpath=%thirdpartyGeneration%\thirdparty_bin\%buildType% +set sourcepath=%thirdpartyGeneration%\thirdparty_source\%buildType% -set installpath=%thirdpartyGeneration%\thirdparty_install -set binpath=%thirdpartyGeneration%\thirdparty_bin -set sourcepath=%thirdpartyGeneration%\thirdparty_source set creaThirdPartydlls=%thirdpartyGeneration%\thirdparty_temp\creaThirdParty_dlls -set qt=Qt-4.7.3 -set wxWidgets=wxWidgets-2.9.2 -set boost=Boost-1.47.0 -set xercesc=xerces-c-3.1.1 -set itk=InsightToolkit-3.20.0 -set gdcm=gdcm -set vtk=VTK +set qt=qt +set jom=jom +set wxWidgets=wxWidgets +set boost=boost +set xercesc=xerces +set itk=itk +set gdcm=gdcm13 +set vtk=vtk +set tth=tth set QTDIR=%sourcepath%\%qt% set WXDIR=%sourcepath%\%wxWidgets% @@ -34,51 +39,106 @@ set ITKINSTALLDIR=%installpath%\%itk% set VTKINSTALLDIR=%installpath%\%vtk% set GDCMINSTALLDIR=%installpath%\%gdcm% -rmdir %creaThirdPartydlls% /s /q +rmdir /S /Q %creaThirdPartydlls% mkdir %creaThirdPartydlls% +echo setting buildtype libraries +if %buildType%==release ( + set qtBtype=4 + set wxPrefixBase=wxbase28 + set wxPrefixmsw=wxmsw28 + set xercesFile=xerces-c_3_1.dll +) else ( + set qtBtype=d4 + set wxPrefixBase=wxbase28d + set wxPrefixmsw=wxmsw28d + set xercesFile=xerces-c_3_1D.dll +) + + +if %x86Comp%==ON ( + set vcFolder=vc_dll + set winType=Win32 +) else ( + if %PROCESSOR_ARCHITECTURE%==x86 ( + set vcFolder=vc_dll + set winType=Win32 + ) else ( + set vcFolder=vc_amd64_dll + set winType=Win64 + ) +) + +echo ----------------------------------- +echo Environment variables Configuration +echo ----------------------------------- +echo buildType=%buildType% +echo ThirdpartyGeneration=%thirdpartyGeneration% +echo InstallPath=%installpath% +echo BinPath=%binpath% +echo SourcePath=%sourcepath% +echo creaThirdPartyLibraries=%thirdpartyInstallPath%\creaThirdParty_libraries +echo QT=%qt% +echo qtBtype=%qtBtype% +echo WX=%wxWidgets% +echo BOOST=%boost% +echo Xercesc=%xercesc% +echo ITK=%itk% +echo GDCM=%gdcm% +echo VTK=%vtk% +echo QTDIR=%QTDIR% +echo WKDIR=%WXDIR% +echo BOOSTDIR=%BOOSTDIR% +echo XERCESDIR=%XERCESDIR% +echo ITKSRCDIR=%ITKSRCDIR% +echo VTKSRCDIR=%VTKSRCDIR% + + echo ----------------------------------- echo -------------QT-------------------- echo ----------------------------------- -copy /V /Y %QTDIR%\bin\phonon4.dll %creaThirdPartydlls% -copy /V /Y %QTDIR%\bin\QtCore4.dll %creaThirdPartydlls% -copy /V /Y %QTDIR%\bin\QtGui4.dll %creaThirdPartydlls% -copy /V /Y %QTDIR%\bin\QtNetwork4.dll %creaThirdPartydlls% -copy /V /Y %QTDIR%\bin\QtOpenGL4.dll %creaThirdPartydlls% -copy /V /Y %QTDIR%\bin\QtScript4.dll %creaThirdPartydlls% -copy /V /Y %QTDIR%\bin\QtScriptTools4.dll %creaThirdPartydlls% -copy /V /Y %QTDIR%\bin\QtSql4.dll %creaThirdPartydlls% -copy /V /Y %QTDIR%\bin\QtSvg4.dll %creaThirdPartydlls% -copy /V /Y %QTDIR%\bin\QtTest4.dll %creaThirdPartydlls% -copy /V /Y %QTDIR%\bin\QtXml4.dll %creaThirdPartydlls% -copy /V /Y %QTDIR%\bin\QtXmlPatterns4.dll %creaThirdPartydlls% +copy /V /Y %QTDIR%\bin\phonon%qtBtype%.dll %creaThirdPartydlls% +copy /V /Y %QTDIR%\bin\QtCore%qtBtype%.dll %creaThirdPartydlls% +copy /V /Y %QTDIR%\bin\QtGui%qtBtype%.dll %creaThirdPartydlls% +copy /V /Y %QTDIR%\bin\QtNetwork%qtBtype%.dll %creaThirdPartydlls% +copy /V /Y %QTDIR%\bin\QtOpenGL%qtBtype%.dll %creaThirdPartydlls% +copy /V /Y %QTDIR%\bin\QtScript%qtBtype%.dll %creaThirdPartydlls% +copy /V /Y %QTDIR%\bin\QtScriptTools%qtBtype%.dll %creaThirdPartydlls% +copy /V /Y %QTDIR%\bin\QtSql%qtBtype%.dll %creaThirdPartydlls% +copy /V /Y %QTDIR%\bin\QtSvg%qtBtype%.dll %creaThirdPartydlls% +copy /V /Y %QTDIR%\bin\QtTest%qtBtype%.dll %creaThirdPartydlls% +copy /V /Y %QTDIR%\bin\QtXml%qtBtype%.dll %creaThirdPartydlls% +copy /V /Y %QTDIR%\bin\QtXmlPatterns%qtBtype%.dll %creaThirdPartydlls% echo ----------------------------------- echo -------------wxWidgets------------- echo ----------------------------------- -copy /V /Y %WXDIR%\lib\vc_dll\wxbase292u_net_vc_custom.dll %creaThirdPartydlls% -copy /V /Y %WXDIR%\lib\vc_dll\wxbase292u_vc_custom.dll %creaThirdPartydlls% -copy /V /Y %WXDIR%\lib\vc_dll\wxbase292u_xml_vc_custom.dll %creaThirdPartydlls% -copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_adv_vc_custom.dll %creaThirdPartydlls% -copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_aui_vc_custom.dll %creaThirdPartydlls% -copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_core_vc_custom.dll %creaThirdPartydlls% -copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_gl_vc_custom.dll %creaThirdPartydlls% -copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_html_vc_custom.dll %creaThirdPartydlls% -copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_media_vc_custom.dll %creaThirdPartydlls% -copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_qa_vc_custom.dll %creaThirdPartydlls% -copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_richtext_vc_custom.dll %creaThirdPartydlls% -copy /V /Y %WXDIR%\lib\vc_dll\wxmsw292u_xrc_vc_custom.dll %creaThirdPartydlls% + +copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_net_vc_custom.dll %creaThirdPartydlls% +copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_vc_custom.dll %creaThirdPartydlls% +copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_xml_vc_custom.dll %creaThirdPartydlls% +copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_adv_vc_custom.dll %creaThirdPartydlls% +copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_aui_vc_custom.dll %creaThirdPartydlls% +copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_core_vc_custom.dll %creaThirdPartydlls% +copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_gl_vc_custom.dll %creaThirdPartydlls% +copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_html_vc_custom.dll %creaThirdPartydlls% +copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_media_vc_custom.dll %creaThirdPartydlls% +copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_qa_vc_custom.dll %creaThirdPartydlls% +copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_richtext_vc_custom.dll %creaThirdPartydlls% +copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_xrc_vc_custom.dll %creaThirdPartydlls% echo ----------------------------------- echo -------------Boost----------------- echo ----------------------------------- -set boostMT=-vc100-mt-1_47.dll -set boostMTGD=-vc100-mt-gd-1_47.dll +REM set boostMT=-vc100-mt-1_49.dll +REM set boostMTGD=-vc100-mt-gd-1_49.dll +set boostMT=-vc100-mt-1_52.dll +set boostMTGD=-vc100-mt-gd-1_52.dll copy /V /Y %BOOSTINSTALLDIR%\lib\boost_date_time%boostMT% %creaThirdPartydlls% copy /V /Y %BOOSTINSTALLDIR%\lib\boost_date_time%boostMTGD% %creaThirdPartydlls% @@ -114,51 +174,22 @@ echo ----------------------------------- echo -------------Xcerces--------------- echo ----------------------------------- -copy /V /Y %XERCESDIR%\Build\Win32\VC10\Release\xerces-c_3_1.dll %creaThirdPartydlls% +copy /V /Y %XERCESDIR%\Build\%winType%\VC10\%buildType%\%xercesFile% %creaThirdPartydlls% echo ----------------------------------- echo -------------ITK------------------- echo ----------------------------------- -copy /V /Y %ITKINSTALLDIR%\bin\ITKCommon.dll %creaThirdPartydlls% -copy /V /Y %ITKINSTALLDIR%\bin\itkTestDriver.exe %creaThirdPartydlls% +copy /V /Y %ITKINSTALLDIR%\bin\*.exe %creaThirdPartydlls% +copy /V /Y %ITKINSTALLDIR%\bin\*.dll %creaThirdPartydlls% echo ----------------------------------- echo -------------VTK------------------- echo ----------------------------------- -copy /V /Y %VTKINSTALLDIR%\bin\vtkEncodeString.exe %creaThirdPartydlls% - -copy /V /Y %VTKINSTALLDIR%\bin\QVTK.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkalglib.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkCommon.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkDICOMParser.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkexoIIc.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkexpat.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkFiltering.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkfreetype.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkftgl.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkGenericFiltering.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkGraphics.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkHybrid.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkImaging.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkInfovis.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkIO.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkjpeg.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtklibxml2.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkmetaio.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkNetCDF.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkpng.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkproj4.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkRendering.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtksys.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtktiff.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkverdict.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkViews.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkVolumeRendering.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkWidgets.dll %creaThirdPartydlls% -copy /V /Y %VTKINSTALLDIR%\bin\vtkzlib.dll %creaThirdPartydlls% +copy /V /Y %VTKINSTALLDIR%\bin\*.exe %creaThirdPartydlls% +copy /V /Y %VTKINSTALLDIR%\bin\*.dll %creaThirdPartydlls% echo ----------------------------------- echo -------------GDCM------------------