summaryrefslogtreecommitdiff
path: root/gyp/platform-osx.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'gyp/platform-osx.gypi')
-rw-r--r--gyp/platform-osx.gypi58
1 files changed, 58 insertions, 0 deletions
diff --git a/gyp/platform-osx.gypi b/gyp/platform-osx.gypi
new file mode 100644
index 0000000000..1fdf9de2c7
--- /dev/null
+++ b/gyp/platform-osx.gypi
@@ -0,0 +1,58 @@
+{
+ 'targets': [
+ { 'target_name': 'platform-osx',
+ 'product_name': 'mbgl-platform-osx',
+ '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 Foundation',
+ '-framework ImageIO',
+ '-framework CoreServices',
+ ],
+ },
+
+ 'include_dirs': [
+ '../include',
+ '../src',
+ ],
+
+ 'xcode_settings': {
+ 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
+ },
+
+ 'link_settings': {
+ 'libraries': [ '<@(libraries)' ],
+ 'xcode_settings': {
+ 'OTHER_LDFLAGS': [ '<@(ldflags)' ],
+ },
+ },
+
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../include',
+ ],
+ },
+ },
+ ],
+}