From 7800445c85b29f60b8f5ff265122182035af6ff0 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 2 May 2016 12:00:03 -0700 Subject: [core] Use gyp's direct_dependent_settings to propagate variant cflags --- bin/glfw.gypi | 2 +- mbgl.gypi | 11 +++++++++++ platform/android/platform.gyp | 1 - platform/ios/platform.gyp | 1 - platform/linux/platform.gyp | 1 - platform/osx/platform.gyp | 1 - platform/qt/platform.gyp | 1 - test/test.gypi | 4 +++- 8 files changed, 15 insertions(+), 7 deletions(-) diff --git a/bin/glfw.gypi b/bin/glfw.gypi index 395b94009f..dbf73e5abe 100644 --- a/bin/glfw.gypi +++ b/bin/glfw.gypi @@ -6,6 +6,7 @@ 'type': 'executable', 'dependencies': [ + 'core', 'platform-lib', 'copy_certificate_bundle', ], @@ -27,7 +28,6 @@ 'variables': { 'cflags_cc': [ '<@(glfw_cflags)', - '<@(variant_cflags)', ], 'ldflags': [ '<@(glfw_ldflags)', diff --git a/mbgl.gypi b/mbgl.gypi index 90ee25ea7f..965f2dce93 100644 --- a/mbgl.gypi +++ b/mbgl.gypi @@ -283,6 +283,17 @@ }] ], }, + + 'direct_dependent_settings': { + 'cflags_cc': [ + '<@(variant_cflags)', + ], + 'xcode_settings': { + 'OTHER_CPLUSPLUSFLAGS': [ + '<@(variant_cflags)', + ], + }, + }, }, { 'target_name': 'copy_certificate_bundle', diff --git a/platform/android/platform.gyp b/platform/android/platform.gyp index 599aa586ce..ce243e493e 100644 --- a/platform/android/platform.gyp +++ b/platform/android/platform.gyp @@ -51,7 +51,6 @@ '<@(rapidjson_cflags)', '<@(nunicode_cflags)', '<@(sqlite_cflags)', - '<@(variant_cflags)', '<@(jni.hpp_cflags)', '<@(libzip_cflags)', '<@(libpng_cflags)', diff --git a/platform/ios/platform.gyp b/platform/ios/platform.gyp index 6458a55f2c..e4abff27e3 100644 --- a/platform/ios/platform.gyp +++ b/platform/ios/platform.gyp @@ -113,7 +113,6 @@ '<@(sqlite_cflags)', '<@(zlib_cflags)', '<@(rapidjson_cflags)', - '<@(variant_cflags)', ], 'ldflags': [ '<@(sqlite_ldflags)', diff --git a/platform/linux/platform.gyp b/platform/linux/platform.gyp index 4bef3e69cd..236f0619f7 100644 --- a/platform/linux/platform.gyp +++ b/platform/linux/platform.gyp @@ -75,7 +75,6 @@ '<@(nunicode_cflags)', '<@(sqlite_cflags)', '<@(rapidjson_cflags)', - '<@(variant_cflags)', '<@(libcurl_cflags)', '<@(libpng_cflags)', '<@(libjpeg-turbo_cflags)', diff --git a/platform/osx/platform.gyp b/platform/osx/platform.gyp index 6b9915f5d5..c3f94935d3 100644 --- a/platform/osx/platform.gyp +++ b/platform/osx/platform.gyp @@ -70,7 +70,6 @@ '<@(sqlite_cflags)', '<@(zlib_cflags)', '<@(rapidjson_cflags)', - '<@(variant_cflags)', ], 'CLANG_ENABLE_OBJC_ARC': 'YES', 'CLANG_ENABLE_MODULES': 'YES', diff --git a/platform/qt/platform.gyp b/platform/qt/platform.gyp index 53b3e5fa02..dc43e0200f 100644 --- a/platform/qt/platform.gyp +++ b/platform/qt/platform.gyp @@ -83,7 +83,6 @@ '<@(qt_network_cflags)', '<@(rapidjson_cflags)', '<@(sqlite_cflags)', - '<@(variant_cflags)', '<@(webp_cflags)', '-fPIC', ], diff --git a/test/test.gypi b/test/test.gypi index 4f0726eb16..a9e53c88fc 100644 --- a/test/test.gypi +++ b/test/test.gypi @@ -5,6 +5,9 @@ 'type': 'static_library', 'standalone_static_library': 1, 'hard_dependency': 1, + 'dependencies': [ + 'core', + ], 'include_dirs': [ '../include', @@ -87,7 +90,6 @@ '<@(geojsonvt_cflags)', '<@(rapidjson_cflags)', '<@(pixelmatch_cflags)', - '<@(variant_cflags)', ], 'ldflags': [ '<@(gtest_ldflags)', -- cgit v1.2.1