From 29bbd5d70c819e6303ea3667aba375fa217a5f9b Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Wed, 24 May 2017 10:52:35 +0200 Subject: [PATCH] fix prepare.py in case of static only --- prepare.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/prepare.py b/prepare.py index 6029d2e48..b1b8ed99f 100755 --- a/prepare.py +++ b/prepare.py @@ -152,9 +152,12 @@ class IOSPreparator(prepare.Preparator): return self.extract_from_xcode_project_with_regex(regex)[0] def extract_libs_list(self): - # name = libspeexdsp.a; path = "liblinphone-sdk/apple-darwin/lib/libspeexdsp.a"; sourceTree = ""; }; - # regex = re.compile("name = \"*(lib\S+)\.a(\")*; path = \"liblinphone-sdk/apple-darwin/") - regex = re.compile("name = ([A-Za-z0-9\-_]+)\.framework; path = \"liblinphone-sdk/apple-darwin/Frameworks/") + if '-DENABLE_STATIC_ONLY=ON' in sys.argv or '-DENABLE_STATIC_ONLY=YES' in sys.argv: + #name = libspeexdsp.a; path = "liblinphone-sdk/apple-darwin/lib/libspeexdsp.a"; sourceTree = ""; }; + regex = re.compile("name = \"*(lib\S+)\.a(\")*; path = \"liblinphone-sdk/apple-darwin/") + else: + regex = re.compile("name = ([A-Za-z0-9\-_]+)\.framework; path = \"liblinphone-sdk/apple-darwin/Frameworks/") + return self.extract_from_xcode_project_with_regex(regex) def detect_package_manager(self):