diff options
Diffstat (limited to 'gyp/mbgl-core.gypi')
-rw-r--r-- | gyp/mbgl-core.gypi | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gyp/mbgl-core.gypi b/gyp/mbgl-core.gypi index e6b90a6b27..ed4a029fb6 100644 --- a/gyp/mbgl-core.gypi +++ b/gyp/mbgl-core.gypi @@ -54,12 +54,21 @@ ], 'variables': { 'core_lib':'<(PRODUCT_DIR)/libmbgl-core.a', - 'standalone_lib':'<(PRODUCT_DIR)/libmbgl.a' + 'standalone_lib':'<(standalone_product_dir)/libmbgl.a' }, 'direct_dependent_settings': { 'include_dirs': [ '../include', ], + 'conditions': [ + ['OS == "mac"', { + 'xcode_settings': { + 'OTHER_LDFLAGS': [ '<(standalone_lib)' ], + } + }, { + 'ldflags': [ '<(standalone_lib)' ], + }] + ], }, 'actions': [ { |