Commit 94d438b4 authored by Ghislain MARY's avatar Ghislain MARY

Improve build_python.bat script.

parent 29ff435e
...@@ -2,13 +2,16 @@ set build_type=Release ...@@ -2,13 +2,16 @@ set build_type=Release
if "x%1" == "xdebug" set build_type=Debug if "x%1" == "xdebug" set build_type=Debug
set linphone_builder_path=%cd% set linphone_builder_path=%cd%
set forward_linphone_builder_path=%linphone_builder_path:\=/% set forward_linphone_builder_path=%linphone_builder_path:\=/%
set errfile=%linphone_builder_path%\WORK\error.log
set wrnfile=%linphone_builder_path%\WORK\warning.log
set logfile=%linphone_builder_path%\WORK\build.log
set program_files_x86=%ProgramFiles(x86)% set program_files_x86=%ProgramFiles(x86)%
if not "%program_files_x86%" == "" goto win64 if not "%program_files_x86%" == "" goto win64
set program_files_x86=%ProgramFiles% set program_files_x86=%ProgramFiles%
:win64 :win64
set old_path=%PATH% if NOT DEFINED old_path set old_path=%PATH%
set PATH=%PATH%;%linphone_builder_path%\WORK\windows_tools set PATH=%PATH%;%linphone_builder_path%\WORK\windows_tools
rmdir /S /Q WORK rmdir /S /Q WORK
...@@ -23,4 +26,4 @@ cd ..\.. ...@@ -23,4 +26,4 @@ cd ..\..
set PATH=%old_path% set PATH=%old_path%
"%program_files_x86%\Microsoft Visual Studio 9.0\VC\vcpackages\vcbuild.exe" "%linphone_builder_path%\WORK\cmake-python\Project.sln" "%build_type%|Win32" /M2 "%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%
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment