2 echo -----------------------------------
3 echo -----Generating Installers of------
4 echo -------creaThirdPartyDlls----------
5 echo -----------------------------------
6 echo -----------------------------------
7 echo ------Asking Architecture----------
8 echo -----------------------------------
10 ::if %PROCESSOR_ARCHITECTURE%==x86 (
11 :: set ProgramFilesPath_x86=%ProgramFiles%
12 :: echo "Architecture found = x86"
14 :: set "ProgramFilesPath_x86=%ProgramFiles(x86)%"
15 :: echo "Architecture found = x64"
18 echo ----End Asking Architecture--------
20 set thirdpartyGeneration=%1
22 ::The following line is to force x86 or x64 compilation
26 set thirdparty_cmake=%cd%\..\cmake
28 ::set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
30 set thirdpartydllspath=%thirdpartyGeneration%\tpi\
31 set sourcepath=%thirdparty_cmake%\crea_ThirdParty_dlls
32 set binpath=%thirdpartyGeneration%\tpb\crea_ThirdParty_dlls_Bin
33 ::set installpath="%ProgramFilesPath_x86%\creatools\crea_ThirdParty_dlls"
35 ::if not exist %vcvarsall% set zipPath="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
36 ::if not exist %vcvarsall% (
37 :: echo ERROR!!! Visual Studio has not been found in the system
43 :: set installpath="%ProgramFilesPath_x86%\creatools\crea_ThirdParty_dlls"
44 :: echo "Compilation forced x86"
46 :: if %PROCESSOR_ARCHITECTURE%==x86 (
48 :: set installpath="%ProgramFilesPath_x86%\creatools\crea_ThirdParty_dlls"
50 :: call %vcvarsall% amd64
51 :: set installpath="%ProgramFiles%\creatools\crea_ThirdParty_dlls"
60 :: set buildPlatform=win32
61 :: cmake -G"Visual Studio 10" -H%sourcepath% -B%binpath%
63 :: if %PROCESSOR_ARCHITECTURE%==x86 (
64 :: set buildPlatform=win32
65 :: cmake -G"Visual Studio 10" -H%sourcepath% -B%binpath%
67 :: set buildPlatform=win64
68 :: cmake -G"Visual Studio 10 Win64" -H%sourcepath% -B%binpath%
72 ::cmake -D CREATOOLS_BUILDTYPE:STRING=%buildType% -D CREATOOLS_PLATFORM:STRING=%buildPlatform% CMakeCache.txt
73 ::cmake -D CMAKE_INSTALL_PREFIX:PATH=%installpath% CMakeCache.txt
74 ::cmake -D CREA_LIBRARY_DLL_PATH:PATH=%thirdpartydllspath% CMakeCache.txt
75 ::cmake CMakeCache.txt
76 ::FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType%
77 ::msbuild /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% PACKAGE.vcxproj
79 %cmakeBin% -G"MinGW Makefiles" -H%sourcepath% -B%binpath% >> %LogFolder%\dlls_cmake.log 2>&1
80 %cmakeBin% -D CMAKE_BUILD_TYPE:STRING=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath% CMakeCache.txt >> %LogFolder%\dlls_cmake.log 2>&1
81 %cmakeBin% -D CREA_LIBRARY_DLL_PATH:PATH=%thirdpartydllspath% CMakeCache.txt >> %LogFolder%\dlls_cmake.log 2>&1
82 mingw32-make.exe package >> %LogFolder%\dlls_cmake.log 2>&1