From fad546733cdbf845179c5de7bdab36c33317856a Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 7 Oct 2015 17:56:50 +0200 Subject: [PATCH] Fix build on Windows. --- prepare.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prepare.py b/prepare.py index 0dc07c298..11b420120 100755 --- a/prepare.py +++ b/prepare.py @@ -24,6 +24,7 @@ import argparse import os +import platform import sys from subprocess import Popen from distutils.spawn import find_executable @@ -42,6 +43,8 @@ class DesktopTarget(prepare.Target): def __init__(self): prepare.Target.__init__(self, '') current_path = os.path.dirname(os.path.realpath(__file__)) + if platform.system() == 'Windows': + current_path = current_path.replace('\\', '/') self.config_file = 'configs/config-desktop.cmake' self.additional_args = [ '-DLINPHONE_BUILDER_EXTERNAL_SOURCE_PATH=' + @@ -202,6 +205,7 @@ def main(argv=None): "-DENABLE_SPEEX=NO", "-DENABLE_SRTP=NO", "-DENABLE_ZRTP=NO", + "-DENABLE_WASAPI=NO", "-DENABLE_PACKAGING=NO"] if check_tools() != 0: