summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-04-11 15:13:55 -0400
committerKonstantin Käfer <mail@kkaefer.com>2014-04-11 15:13:55 -0400
commitebc9a0a0d7132f4e40cc6b61a04ec62862801215 (patch)
treed79ce37f786341b76c78ed7dbc3ea62c6051d7ba /configure
parented657c42d563cd84b4cfd3aa6e13525985674c71 (diff)
downloadqtlocation-mapboxgl-ebc9a0a0d7132f4e40cc6b61a04ec62862801215.tar.gz
add xcode project builds
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index 2fa0a149ae..88f9dcf90a 100755
--- a/configure
+++ b/configure
@@ -59,12 +59,17 @@ def configure_llmr(o):
o['variables']['node'] = 'node'
o['target_defaults']['default_configuration'] = 'Debug' if options.debug else 'Release'
+
+def fix_frameworks(libs):
+ # don't split "-framework Foo"
+ return re.split('(?<!-framework)\s+', libs.strip())
+
def configure_glfw3(o):
ret = pkg_config('glfw3', options.pkgconfig_root)
if not ret:
sys.stderr.write('could not find glfw3 with pkg-config')
sys.exit(-1)
- o['variables']['glfw3_libraries'] = ret[0].split()
+ o['variables']['glfw3_libraries'] = fix_frameworks(ret[0])
o['variables']['glfw3_cflags'] = ret[1].split()
def configure_uv(o):