Commit 056ff5cb authored by Ghislain MARY's avatar Ghislain MARY

Add script to build python module on Windows.

parent 6fb388dd
......@@ -52,15 +52,9 @@ wheel package of the liblinphone Python extension module in the OUTPUT directory
BUILDING THE SDK ON WINDOWS
***************************
Run the following command in Windows command prompt after having setup the build
prerequisites (replacing #PATH_TO_SOURCE# by the good path with forward slashes):
Run the following command in Windows command prompt after having setup the build prerequisites:
> md WORK\cmake-python
> cd WORK\cmake-python
> cmake ../.. -G "Visual Studio 9 2008" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=#PATH_TO_SOURCE#/OUTPUT -DCMAKE_INSTALL_PREFIX=#PATH_TO_SOURCE#/OUTPUT -DLINPHONE_BUILDER_CONFIG_FILE=configs/config-python.cmake
Then open the Visual Studio solution (Project.sln) that has been created in the WORK\cmake-python
directory and build the solution in Release mode.
> build_python.bat
If everything is successful (and after a few minutes) you will find the Python
wheel package and installers of the liblinphone Python extension module in the
......
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:\=/%
set program_files_x86=%ProgramFiles(x86)%
if not "%program_files_x86%" == "" goto win64
set program_files_x86=%ProgramFiles%
:win64
set old_path=%PATH%
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 ..\..
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
......@@ -35,6 +35,7 @@ set(EP_vpx_CONFIGURE_OPTIONS
"--disable-debug-libs"
"--disable-examples"
"--disable-unit-tests"
"--as=yasm"
)
if(WIN32)
......
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