summaryrefslogtreecommitdiff
path: root/gyp/platform-osx.gypi
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-01-29 18:30:46 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-02-04 10:49:09 +0100
commit29baacf3a5bb773d94d08d16b81c3cda45a44eb6 (patch)
tree1dc3ca456151138ee5e8b7cf88b3afcecc3df1db /gyp/platform-osx.gypi
parent3d51e116a84ee168975bcee8377e9156f77e2731 (diff)
downloadqtlocation-mapboxgl-29baacf3a5bb773d94d08d16b81c3cda45a44eb6.tar.gz
refactor makefile
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',
+ ],
+ },
+ },
+ ],
+}