build_python.bat 1.13 KB
Newer Older
1 2 3 4
set build_type=Release
if "x%1" == "xdebug" set build_type=Debug
set linphone_builder_path=%cd%
set forward_linphone_builder_path=%linphone_builder_path:\=/%
5 6 7
set errfile=%linphone_builder_path%\WORK\error.log
set wrnfile=%linphone_builder_path%\WORK\warning.log
set logfile=%linphone_builder_path%\WORK\build.log
8 9 10 11 12 13

set program_files_x86=%ProgramFiles(x86)%
if not "%program_files_x86%" == "" goto win64
set program_files_x86=%ProgramFiles%
:win64

14
if NOT DEFINED old_path set old_path=%PATH%
15 16 17 18 19 20 21 22 23 24 25 26
set PATH=%PATH%;%linphone_builder_path%\WORK\windows_tools

rmdir /S /Q WORK
rmdir /S /Q OUTPUT

md WORK\cmake-python
cd WORK\cmake-python

cmake.exe ../.. -G "Visual Studio 9 2008" -DCMAKE_BUILD_TYPE=%build_type% -DCMAKE_PREFIX_PATH=%forward_linphone_builder_path%/OUTPUT -DCMAKE_INSTALL_PREFIX=%forward_linphone_builder_path%/OUTPUT -DLINPHONE_BUILDER_CONFIG_FILE=configs/config-python.cmake

cd ..\..

27 28
"%program_files_x86%\Microsoft Visual Studio 9.0\VC\vcpackages\vcbuild.exe" "%linphone_builder_path%\WORK\cmake-python\Project.sln" "%build_type%|Win32" /M%NUMBER_OF_PROCESSORS% /errfile:%errfile% /wrnfile:%wrnfile% /logfile:%logfile%

29 30
set PATH=%old_path%