2 echo -----------------------------------
3 echo -----Generating Installers of------
4 echo -------creaThirdPartyDlls----------
5 echo -----------------------------------
6 echo -----------------------------------
7 echo ------Asking Architecture----------
8 echo -----------------------------------
9 if %PROCESSOR_ARCHITECTURE%==x86 (
10 set ProgramFilesPath_x86=%ProgramFiles%
11 echo "Architecture found = x86"
13 set "ProgramFilesPath_x86=%ProgramFiles(x86)%"
14 echo "Architecture found = x64"
17 echo ----End Asking Architecture--------
19 set thirdpartyGeneration=%1
20 set version="3.0.1-win32"
22 set thirdparty_cmake=%cd%\..\cmake
24 set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
26 set thirdpartydllspath=%thirdpartyGeneration%\thirdparty_temp\creaThirdParty_dlls
27 set sourcepath=%thirdparty_cmake%\crea_ThirdParty_dlls
28 set binpath=%thirdpartyGeneration%\thirdparty_bin\crea_ThirdParty_dlls_Bin
29 set installpath="ProgramFilesPath_x86\creatools\crea_ThirdParty_dlls"
31 if not exist %vcvarsall% set zipPath="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
32 if not exist %vcvarsall% (
33 echo ERROR!!! Visual Studio has not been found in the system
45 cmake -G"Visual Studio 10" -H%sourcepath% -B%binpath%
46 cmake -D CMAKE_INSTALL_PREFIX:PATH=%installpath% CMakeCache.txt
47 cmake -D CREA_LIBRARY_DLL_PATH:PATH=%thirdpartydllspath% CMakeCache.txt
49 FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType%
50 msbuild /p:Configuration=release PACKAGE.vcxproj
52 set installerPath="%thirdpartydllspath%\thirdparty_bin\crea_ThirdParty_dlls_Bin\crea_ThirdParty_dlls-%version%.exe"
54 if exist installerPath (
55 mkdir %thirdpartyGeneration%\thirdparty_installers
56 move /Y %installerPath% %thirdpartyGeneration%\thirdparty_installers
58 rmdir %thirdpartydllspath% /s /q