1 REM ---------------------------------------------------------------------
3 REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 REM This software is governed by the CeCILL-B license under French law and
8 REM abiding by the rules of distribution of free software. You can use,
9 REM modify and/ or redistribute the software under the terms of the CeCILL-B
10 REM license as circulated by CEA, CNRS and INRIA at the following URL
11 REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
12 REM or in the file LICENSE.txt.
14 REM As a counterpart to the access to the source code and rights to copy,
15 REM modify and redistribute granted by the license, users are provided only
16 REM with a limited warranty and the software's author, the holder of the
17 REM economic rights, and the successive licensors have only limited
20 REM The fact that you are presently reading this means that you have had
21 REM knowledge of the CeCILL-B license and that you accept its terms.
22 REM ------------------------------------------------------------------------
25 echo -----------------------------------
26 echo -----Generating Installers of------
27 echo -----creaThirdPartyLibraries-------
28 echo -----------------------------------
29 echo -----------------------------------
30 echo ------Asking Architecture----------
31 echo -----------------------------------
32 if %PROCESSOR_ARCHITECTURE%==x86 (
33 set ProgramFilesPath_x86=%ProgramFiles%
34 echo "Architecture found = x86"
36 set "ProgramFilesPath_x86=%ProgramFiles(x86)%"
37 echo "Architecture found = x64"
40 echo ----End Asking Architecture--------
42 set thirdpartyGeneration=%1
44 ::The following line is to force x86 or x64 compilation
47 set thirdparty_cmake=%cd%\..\cmake
49 set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
51 set thirdpartylibpath=%thirdpartyGeneration%\thirdparty_temp\creaThirdParty_libraries
52 set sourcepath=%thirdparty_cmake%\crea_ThirdParty_Libraries
53 set binpath=%thirdpartyGeneration%\thirdparty_bin\%buildType%\creaTPLBin
55 if not exist %vcvarsall% set zipPath="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
56 if not exist %vcvarsall% (
57 echo ERROR!!! Visual Studio has not been found in the system
63 echo "Compilation forced x86"
65 if %PROCESSOR_ARCHITECTURE%==x86 (
66 set installpath="%ProgramFilesPath_x86%\creatools\crea_ThirdParty_Libraries"
69 set installpath="%ProgramFiles%\creatools\crea_ThirdParty_Libraries"
70 call %vcvarsall% amd64
79 cmake -G"Visual Studio 10" -H%sourcepath% -B%binpath%
81 if %PROCESSOR_ARCHITECTURE%==x86 (
82 cmake -G"Visual Studio 10" -H%sourcepath% -B%binpath%
84 cmake -G"Visual Studio 10 Win64" -H%sourcepath% -B%binpath%
88 cmake -D CMAKE_INSTALL_PREFIX:PATH=%installpath% CMakeCache.txt
89 cmake -D CREA_LIBRARY_SOURCE_PATH:PATH=%thirdpartylibpath% CMakeCache.txt
91 FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType%
92 msbuild /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% PACKAGE.vcxproj