]> Creatis software - creaToolsTools.git/commitdiff
DFCH: Adding template for run automatically all the scripts
authorDiego Caceres <Diego.Caceres@creatis.insa-lyon.fr>
Wed, 23 Nov 2011 09:41:59 +0000 (09:41 +0000)
committerDiego Caceres <Diego.Caceres@creatis.insa-lyon.fr>
Wed, 23 Nov 2011 09:41:59 +0000 (09:41 +0000)
Install_ThirdParty/install_generate_thirdparty.bat_TEMPLATE [new file with mode: 0644]
Install_ThirdParty/scripts/install_thirdparty_all.bat
Install_ThirdParty/scripts/install_thirdparty_dlls_cmake.bat
Install_ThirdParty/scripts/install_thirdparty_libraries_cmake.bat
Install_ThirdParty/scripts/move_thirdparty_dlls.bat
Install_ThirdParty/scripts/move_thirdparty_libraries.bat

diff --git a/Install_ThirdParty/install_generate_thirdparty.bat_TEMPLATE b/Install_ThirdParty/install_generate_thirdparty.bat_TEMPLATE
new file mode 100644 (file)
index 0000000..60e8098
--- /dev/null
@@ -0,0 +1,15 @@
+set thirdpartyGeneration=<directory where you want to generate>
+set buildType=<debug|release|RelWithDebInfo>
+
+cd scripts
+call install_thirdparty_all.bat  %thirdpartyGeneration% %buildType% >> install_generate_thirdparty.log 2>&1
+
+call move_thirdparty_dlls.bat %thirdpartyGeneration% >> install_generate_thirdparty.log 2>&1
+
+call move_thirdparty_libraries.bat %thirdpartyGeneration% >> install_generate_thirdparty.log 2>&1
+
+call install_thirdparty_dlls_cmake.bat  %thirdpartyGeneration% >> install_generate_thirdparty.log 2>&1
+
+call install_thirdparty_libraries_cmake.bat  %thirdpartyGeneration% >> install_generate_thirdparty.log 2>&1
+
+cd ..
\ No newline at end of file
index ff08b8363bd2fd0857fdd7790e6e082de7effa07..cb2ca2f9554a45105190d59ef76d09ec75d95977 100644 (file)
@@ -1,5 +1,8 @@
 @echo off
 echo -----------------------------------
+echo ------Installing Libraries---------
+echo -----------------------------------
+echo -----------------------------------
 echo ------Asking Architecture----------
 echo -----------------------------------
 if %PROCESSOR_ARCHITECTURE%==x86 (
@@ -310,4 +313,7 @@ rename tth_exe tth
 del tth_exe.zip
 echo ------End TTH Installation---------
 cd c:\
+echo -----------------------------------
+echo ---End of Installing Libraries-----
+echo -----------------------------------
 @echo on
\ No newline at end of file
index d0e1f5b81211f980fcd92f2fb7b4ba3cc91afbcd..a0ed6846cc08f2a6791b4074cf1c0ca18c6c6d1f 100644 (file)
@@ -1,5 +1,9 @@
 @echo off
 echo -----------------------------------
+echo -----Generating Installers of------
+echo -------creaThirdPartyDlls----------
+echo -----------------------------------
+echo -----------------------------------
 echo ------Asking Architecture----------
 echo -----------------------------------
 if %PROCESSOR_ARCHITECTURE%==x86 (
@@ -31,7 +35,10 @@ if not exist %vcvarsall% (
 
 call %vcvarsall%
 
+rmdir %binpath% /s /q
+
 mkdir %binpath%
+
 cd %binpath%
 
 cmake -G"Visual Studio 10"  -H%sourcepath% -B%binpath%
index 87ff82826f0afb7294fe87128491efab48023e2d..886da926e111d149e43092f81a55473dce63b487 100644 (file)
@@ -1,5 +1,9 @@
 @echo off
 echo -----------------------------------
+echo -----Generating Installers of------
+echo -----creaThirdPartyLibraries-------
+echo -----------------------------------
+echo -----------------------------------
 echo ------Asking Architecture----------
 echo -----------------------------------
 if %PROCESSOR_ARCHITECTURE%==x86 (
@@ -31,6 +35,8 @@ if not exist %vcvarsall% (
 
 call %vcvarsall%
 
+rmdir %binpath% /s /q
+
 mkdir %binpath%
 cd %binpath%
 
index 36034f7ed453626ce4644d6d08f320fd24bd75c0..a3f9140778319cf23a4f6a149de36a60d9a92f12 100644 (file)
@@ -1,5 +1,8 @@
 @echo off
 echo -----------------------------------
+echo ----------Moving Dlls--------------
+echo -----------------------------------
+echo -----------------------------------
 echo ---Setting Enviroment Variables----
 echo -----------------------------------
 
@@ -30,6 +33,8 @@ set ITKINSTALLDIR=%installpath%\%itk%
 set VTKINSTALLDIR=%installpath%\%vtk%
 set GDCMINSTALLDIR=%installpath%\%gdcm%
 
+rmdir %creaThirdPartydlls% /s /q
+
 mkdir %creaThirdPartydlls%
 
 echo -----------------------------------
@@ -156,4 +161,7 @@ echo -------------GDCM------------------
 echo -----------------------------------
 
 copy /V /Y %GDCMINSTALLDIR%\bin\*.exe %creaThirdPartydlls%
-copy /V /Y %GDCMINSTALLDIR%\bin\*.dll %creaThirdPartydlls%
\ No newline at end of file
+copy /V /Y %GDCMINSTALLDIR%\bin\*.dll %creaThirdPartydlls%
+echo -----------------------------------
+echo ------End of Moving Dlls-----------
+echo -----------------------------------
\ No newline at end of file
index 14344bbf277a35d811584d4a97f619269785a752..a6988f99b0a3735a747916f9d90400cc30bb1cbe 100644 (file)
@@ -1,5 +1,8 @@
 @echo off
 echo -----------------------------------
+echo --------Moving Libraries-----------
+echo -----------------------------------
+echo -----------------------------------
 echo ------Asking Architecture----------
 echo -----------------------------------
 if %PROCESSOR_ARCHITECTURE%==x86 (
@@ -83,6 +86,8 @@ echo XERCESDIR=%XERCESDIR%
 echo ITKSRCDIR=%ITKSRCDIR%
 echo VTKSRCDIR=%VTKSRCDIR%
 
+rmdir %creaThirdPartyLibraries% /s /q
+
 mkdir %creaThirdPartyLibraries%
 
 echo -----------------------------------
@@ -351,4 +356,8 @@ echo -------------MiKText---------------
 echo -----------------------------------
 mkdir %creaThirdPartyLibraries%\%miktexAux%
 
-XCOPY %miktex%\* %creaThirdPartyLibraries%\%miktexAux% /s /i
\ No newline at end of file
+XCOPY %miktex%\* %creaThirdPartyLibraries%\%miktexAux% /s /i
+
+echo -----------------------------------
+echo -----End of Moving Libraries-------
+echo -----------------------------------
\ No newline at end of file