set currentFolder=%cd%
set logFolder=%currentFolder%\log
-goto next
+
rmdir %logFolder% /s /q
mkdir %logFolder%
start /B /I /wait %currentFolder%\creaTools\creaMinitoolsInstall.bat %creatoolsGeneration% %docgeneration% %cvsUser% %installPrefix% %buildtype% %currentFolder%
echo THIS HAS TO BE THE LAST STEP...
echo call compile creaTools
-:next
+
start /B /I /wait %currentFolder%\creaTools\creaToolsInstall.bat %creatoolsGeneration% %docgeneration% %cvsUser% %installPrefix% %buildtype% %currentFolder%
exit /B
+++ /dev/null
-REM %1 = <creatoolsGeneration>
-REM %2 = <bbtkgeditorsource>
-REM %3 = <docgeneration>
-
-set binfolder=%1\creatools_bin\%2Bin
-cd %binfolder%
-
-cmake -D crea_DIR:PATH=%1\creatools_install\crea CMakeCache.txt
-cmake -D BBTK_DIR:PATH=%1\creatools_install\bbtk CMakeCache.txt
-cmake -D creaMaracasVisu_DIR:PATH=%1\creatools_install\creaMaracasVisu CMakeCache.txt
-cmake -D BUILD_bbtkGEditor_DOC:BOOL=%3 CMakeCache.txt
-cmake CMakeCache.txt
+++ /dev/null
-REM %1 = <creatoolsGeneration>
-REM %2 = <bbtksourcefolder>
-REM %3 = <docgeneration>
-
-set binfolder=%1\creatools_bin\%2Bin
-cd %binfolder%
-
-cmake -D --BUILD_ALL:BOOL=ON -D crea_DIR:PATH=%1\creatools_install\crea CMakeCache.txt
-cmake -D BUILD_BBTK_DOC:BOOL=%3 -D BUILD_BBTK_DOC_GUIDES_HTML:BOOL=%3 -D BUILD_BBTK_DOC_GUIDES_PDF:BOOL=%3 -D BUILD_BBTK_DOC_DOXYGEN:BOOL=%3 -D BUILD_BBTK_DOC_PACKAGE:BOOL=%3 CMakeCache.txt
-
-cmake CMakeCache.txt
-cmake CMakeCache.txt
-cmake CMakeCache.txt
-
+++ /dev/null
-REM %1=<creatoolsGeneration>
-REM %2=<installPrefix>
-
-rmdir %2 /s /q
-rmdir %1\creatools_bin /s /q
-rmdir %1\creatools_sources /s /q
-rmdir %1\creatools_install /s /q
-rmdir %1\Result_Installers /s /q
-mkdir %1\Result_Installers
\ No newline at end of file
+++ /dev/null
-REM %1 = <creasourcefolder>
-REM %2 = <creatoolsGeneration>
-
-
-set binfolder=%2\creatools_bin\%1Bin
-mkdir %binfolder%
-cd %binfolder%
-del CMakeCache.txt
-del *.exe
-del *.dll
-del Debug\*.exe
-del Debug\*.dll
-del Release\*.exe
-del Release\*.dll
-del RelWithDebInfo\*.exe
-del RelWithDebInfo\*.dll
+++ /dev/null
-REM %1 = <Module Sources Ex. crea bbbtk creaMaracasVisu...>
-REM %2 = <installPrefix>
-REM %3 = <creatoolsGeneration>
-
-if %PROCESSOR_ARCHITECTURE%==x86 (
- set ProgramFilesPath_x86=%ProgramFiles%
- echo "Architecture found = x86"
-) else (
- set "ProgramFilesPath_x86=%ProgramFiles(x86)%"
- echo "Architecture found = x64"
-)
-
-set compilerVersion="Visual Studio 10"
-set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
-if not exist %vcvarsall% set vcvarsall="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
-if not exist %vcvarsall% (
- set compilerVersion="Visual Studio 9 2008"
- set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
- if not exist %vcvarsall% set vcvarsall="%ProgramFilesPath_x64%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
- if not exist %vcvarsall% (
- echo ERROR!!! Visual Studio has not been found in the system
- exit
- )
-)
-
-set binfolder=%3\creatools_bin\%1Bin
-cd %binfolder%
-
-cmake -G%compilerVersion% -H%3\creatools_sources\%1 -B%3\creatools_bin\%1Bin
-cmake -D INCLUDE_CTEST:BOOL=ON -D CMAKE_INSTALL_PREFIX:PATH=%2\%1 CMakeCache.txt
-
+++ /dev/null
-REM %1 = <buildtype>
-REM %2 = <Module Sources Ex crea bbtk creaMaracasVisu ...>
-REM %3 = <creatoolsGeneration>
-
-if %PROCESSOR_ARCHITECTURE%==x86 (
- set ProgramFilesPath_x86=%ProgramFiles%
- echo "Architecture found = x86"
-) else (
- set "ProgramFilesPath_x86=%ProgramFiles(x86)%"
- echo "Architecture found = x64"
-)
-set compilerVersion="Visual Studio 10"
-set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
-if not exist %vcvarsall% set vcvarsall="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
-if not exist %vcvarsall% (
- set compilerVersion="Visual Studio 9 2008"
- set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
- if not exist %vcvarsall% set vcvarsall="%ProgramFilesPath_x64%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
- if not exist %vcvarsall% (
- echo ERROR!!! Visual Studio has not been found in the system
- exit
- )
-)
-
-call %vcvarsall%
-
-set binfolder=%3\creatools_bin\%2Bin
-
-cd %binfolder%
-if %compilerVersion%=="Visual Studio 10" (
- FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%1
- msbuild /p:Configuration=%1 ALL_BUILD.vcxproj
- msbuild /p:Configuration=%1 INSTALL.vcxproj
- msbuild /p:Configuration=%1 PACKAGE.vcxproj
- copy %2*.exe %3\Result_Installers\
-)
-else (
- FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%1
- msbuild /p:Configuration=%1 INSTALL.vcproj
- msbuild /p:Configuration=%1 PACKAGE.vcproj
- copy %2*.exe %3\Result_Installers\
-)
+++ /dev/null
-REM %1 = <buildtype>
-REM %2 = <Module Sources Ex crea bbtk creaMaracasVisu ...>
-REM %3 = <creatoolsGeneration>
-
-if %PROCESSOR_ARCHITECTURE%==x86 (
- set ProgramFilesPath_x86=%ProgramFiles%
- echo "Architecture found = x86"
-) else (
- set "ProgramFilesPath_x86=%ProgramFiles(x86)%"
- echo "Architecture found = x64"
-)
-set compilerVersion="Visual Studio 10"
-set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
-if not exist %vcvarsall% set vcvarsall="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
-if not exist %vcvarsall% (
- set compilerVersion="Visual Studio 9 2008"
- set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
- if not exist %vcvarsall% set vcvarsall="%ProgramFilesPath_x64%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
- if not exist %vcvarsall% (
- echo ERROR!!! Visual Studio has not been found in the system
- exit
- )
-)
-
-call %vcvarsall%
-
-set binfolder=%3\creatools_bin\%1Bin
-
-cd %binfolder%
-
-if %compilerVersion%=="Visual Studio 10" (
- FOR /R %%a IN (*.sln) DO msbuild /p:Configuration=%1 PACKAGE.vcxproj
- copy %2*.exe %3\Result_Installers\
-) else (
- FOR /R %%a IN (*.sln) DO msbuild /p:Configuration=%1 PACKAGE.vcproj
- copy %2*.exe %3\Result_Installers\
-)
+++ /dev/null
-REM %1 = <creatoolsGeneration>
-REM %2 = <creabrukersource>
-REM %3 = <docgeneration>
-
-set binfolder=%1\creatools_bin\%2Bin
-cd %binfolder%
-
-cmake -D --BUILD_ALL:BOOL=OFF -D crea_DIR:PATH=%1\creatools_install\crea -D BUILD_creaBruker_DOC:BOOL=%3 CMakeCache.txt
+++ /dev/null
-REM %1 = <creatoolsGeneration>
-REM %2 = <creacontourssource>
-REM %3 = <docgeneration>
-
-set binfolder=%1\creatools_bin\%2Bin
-cd %binfolder%
-
-rem %1=creabrukersource% %2=docgeneration
-cmake -D crea_DIR:PATH=%1\creatools_install\crea -D creaEnvironment_DIR:PATH=%1\creatools_install\creaEnvironment -D creaMaracasVisu_DIR:PATH=%1\creatools_install\creaMaracasVisu -D creaImageIO_DIR:PATH=%1\creatools_install\creaImageIO CMakeCache.txt
-cmake -D BBTK_DIR:PATH=%1\creatools_install\bbtk CMakeCache.txt
-cmake -D creaContours_DOC:BOOL=%2 -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=%2 CMakeCache.txt
-cmake CMakeCache.txt
-
+++ /dev/null
-REM %1 = <creatoolsGeneration>
-REM %2 = <creaimagesource>
-REM %3 = <docgeneration>
-
-set binfolder=%1\creatools_bin\%2Bin
-cd %binfolder%
-
-cmake -D crea_DIR:PATH=%1\creatools_install\crea -D BUILD_BBTK_PACKAGE_creaImageIO:BOOL=ON -D creaBruker_DIR:PATH=%1\creatools_install\creaBruker -D USE_GDCM:BOOL=ON CMakeCache.txt
-cmake -D BBTK_DIR:PATH=%1\creatools_install/bbtk CMakeCache.txt
-cmake -D BUILD_DOXYGEN_DOC:BOOL=%3 -D BUILD_BBTK_PACKAGE_creaImageIO_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
-cmake CMakeCache.txt
+++ /dev/null
-REM %1 = <creatoolsGeneration>
-REM %2 = <creamaracassourcefolder>
-REM %3 = <docgeneration>
-
-set binfolder=%1\creatools_bin\%2Bin
-cd %binfolder%
-
-cmake -D crea_DIR:PATH=%1\creatools_install\crea -D BUILD_BBTK_PACKAGE_creaMaracasVisu:BOOL=ON -D creaMaracasVisu_DOC:BOOL=%3 CMakeCache.txt
-cmake -D BBTK_DIR:PATH=%1\creatools_install\bbtk CMakeCache.txt
-cmake -D BUILD_BBTK_PACKAGE_creaMaracasVisu_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
-cmake CMakeCache.txt
+++ /dev/null
-REM %1 = <creatoolsGeneration>
-REM %2 = <creaminitoolssource>
-REM %3 = <docgeneration>
-
-set binfolder=%1\creatools_bin\%2Bin
-cd %binfolder%
-
-cmake -D crea_DIR:PATH=%1\creatools_install\crea CMakeCache.txt
-cmake -D BBTK_DIR:PATH=%1\creatools_install\bbtk CMakeCache.txt
-
-cmake -D BUILD_BBTK_PACKAGE_creaMiniTools:BOOL=ON -D creaMiniTools_DOC:BOOL=%3 CMakeCache.txt
-cmake -D BUILD_BBTK_PACKAGE_creaMiniTools_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
-
-cmake -D BUILD_BBTK_PACKAGE_creaMiniToolsBase:BOOL=ON -D creaMiniToolsBase_DOC:BOOL=%3 CMakeCache.txt
-cmake -D BUILD_BBTK_PACKAGE_creaMiniToolsBase_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
-
-cmake CMakeCache.txt
-
+++ /dev/null
-REM %1 = <creatoolsGeneration>
-REM %2 = <crearigidregistrationssource>
-REM %3 = <docgeneration>
-
-set binfolder=%1\creatools_bin\%2Bin
-cd %binfolder%
-
-cmake -D crea_DIR:PATH=%1\creatools_install\crea -D BUILD_BBTK_PACKAGE_PackRecalage:BOOL=ON CMakeCache.txt
-cmake -D BBTK_DIR:PATH=%1\creatools_install\bbtk CMakeCache.txt
-cmake -D BUILD_creaRigidRegistration_DOC:BOOL=%3 -D BUILD_BBTK_PACKAGE_PackRecalage_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
-cmake CMakeCache.txt
-cmake CMakeCache.txt
-
+++ /dev/null
-REM %1 = <creatoolsGeneration>
-REM %2 = <creatoolssource>
-REM %3 = <docgeneration>
-
-set binfolder=%1\creatools_bin\%2Bin
-cd %binfolder%
-
-cmake -D CREATOOLS_SOURCE_PATH:PATH=%1\creatools_install CMakeCache.txt
+++ /dev/null
-REM %1 = <creatoolsGeneration>
-REM %2 = <creasource>
-REM %3 = <docgeneration>
-
-set binfolder=%1\creatools_bin\%2Bin
-cd %binfolder%
-
-cmake -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt
+++ /dev/null
-REM %1 = <creatoolsGeneration>
-REM %2 = <creamaracassourcefolder>
-REM %3 = <docgeneration>
-
-set binfolder=%1\creatools_bin\%2Bin
-cd %binfolder%
-
-cmake -D crea_DIR:PATH=%1\creatools_install\crea CMakeCache.txt
+++ /dev/null
-REM %1=<Module Sources Ex. crea bbbtk creaMaracasVisu...>
-REM %2 = <creatoolsGeneration>
-
-set binfolder=%2\creatools_bin\%1Bin
-
-cd %binfolder%
-
-cmake -D BUILD_TESTING:BOOL=OFF -D INCLUDE_CTEST:BOOL=OFF CMakeCache.txt
-
-rem EED>> ctest -D ContinuousStart -D ContinuousUpdate -D ContinuousConfigure -D ContinuousBuild -D ContinuousTest -D ContinuousSubmit
-rem EED>> ctest -D ContinuousMemCheck -D ContinuousSubmit
-rem EED>> ctest -D ExperimentalStart -D ExperimentalUpdate -D ExperimentalConfigure -D ExperimentalBuild -D ExperimentalTest -D ExperimentalSubmit
-rem EED>> ctest -D ExperimentalMemCheck -D ExperimentalSubmit
-
-rem EED-12mai2011>> ctest -D ExperimentalConfigure -D ExperimentalBuild
-
-rem EED>> ctest -D NightlyStart -D NightlyUpdate -D NightlyConfigure -D NightlyBuild -D NightlyTest -D NightlySubmit
-rem EED>> ctest -D NightlyMemCheck -D NightlySubmit
+++ /dev/null
-rem %1 = creasourcefolder
-rem %2 = cvsUser
-rem %3 = creatoolsGeneration
-
-mkdir %3\creatools_sources
-cd %3\creatools_sources
-cvs -d :ssh:%2@cvs.creatis.insa-lyon.fr:/cvs/creatis checkout %1