diff options
Diffstat (limited to 'gyp/platform-ios.gypi')
-rw-r--r-- | gyp/platform-ios.gypi | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/gyp/platform-ios.gypi b/gyp/platform-ios.gypi new file mode 100644 index 0000000000..2bbe1272d2 --- /dev/null +++ b/gyp/platform-ios.gypi @@ -0,0 +1,56 @@ +{ + 'targets': [ + { 'target_name': 'platform-ios', + 'product_name': 'mbgl-platform-ios', + 'type': 'static_library', + 'standalone_static_library': 1, + 'hard_dependency': 1, + 'dependencies': [ + 'version', + ], + + 'sources': [ + '../platform/darwin/log_nslog.mm', + '../platform/darwin/string_nsstring.mm', + '../platform/darwin/application_root.mm', + '../platform/darwin/asset_root.mm', + '../platform/darwin/image.mm', + ], + + 'variables': { + 'cflags_cc': [ + '<@(uv_cflags)', + '-I<(boost_root)/include', + ], + 'libraries': [ + '<@(uv_static_libs)', + ], + 'ldflags': [ + '-framework ImageIO', + '-framework MobileCoreServices', + ], + }, + + 'include_dirs': [ + '../include', + ], + + 'xcode_settings': { + 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ], + }, + + 'link_settings': { + 'libraries': [ '<@(libraries)' ], + 'xcode_settings': { + 'OTHER_LDFLAGS': [ '<@(ldflags)' ], + }, + }, + + 'direct_dependent_settings': { + 'include_dirs': [ + '../include', + ], + }, + }, + ], +} |