summaryrefslogtreecommitdiff
path: root/macosx/mbgl-app.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/mbgl-app.gyp')
-rw-r--r--macosx/mbgl-app.gyp47
1 files changed, 47 insertions, 0 deletions
diff --git a/macosx/mbgl-app.gyp b/macosx/mbgl-app.gyp
new file mode 100644
index 0000000000..3afb3bc1af
--- /dev/null
+++ b/macosx/mbgl-app.gyp
@@ -0,0 +1,47 @@
+{
+ 'includes': [
+ '../common.gypi',
+ '../config.gypi'
+ ],
+ 'targets': [
+ {
+ 'target_name': 'osxapp',
+ 'product_name': 'Mapbox GL',
+ 'type': 'executable',
+ 'sources': [
+ './main.mm',
+ '../common/settings_nsuserdefaults.hpp',
+ '../common/settings_nsuserdefaults.mm',
+ '../common/glfw_view.hpp',
+ '../common/glfw_view.cpp',
+ '../common/foundation_request.h',
+ '../common/foundation_request.mm',
+ '../common/nslog_log.hpp',
+ '../common/nslog_log.mm',
+ ],
+ 'product_extension': 'app',
+ 'mac_bundle': 1,
+ 'mac_bundle_resources': [
+ 'Icon.icns',
+ '<(SHARED_INTERMEDIATE_DIR)/bin/style.min.js'
+ ],
+ 'xcode_settings': {
+ 'SDKROOT': 'macosx',
+ 'SUPPORTED_PLATFORMS':'macosx',
+ 'OTHER_CPLUSPLUSFLAGS': [
+ '<@(glfw3_cflags)'
+ ],
+ 'OTHER_LDFLAGS': [
+ '<@(glfw3_libraries)',
+ ],
+ 'SDKROOT': 'macosx',
+ 'INFOPLIST_FILE': 'Info.plist',
+ 'MACOSX_DEPLOYMENT_TARGET':'10.9',
+ 'CLANG_ENABLE_OBJC_ARC': 'YES'
+ },
+ 'dependencies': [
+ '../mbgl.gyp:mbgl-x86'
+ ]
+ }
+ ]
+} \ No newline at end of file