summaryrefslogtreecommitdiff
path: root/gyp/asset-zip.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/asset-zip.gypi
parent3d51e116a84ee168975bcee8377e9156f77e2731 (diff)
downloadqtlocation-mapboxgl-29baacf3a5bb773d94d08d16b81c3cda45a44eb6.tar.gz
refactor makefile
Diffstat (limited to 'gyp/asset-zip.gypi')
-rw-r--r--gyp/asset-zip.gypi62
1 files changed, 62 insertions, 0 deletions
diff --git a/gyp/asset-zip.gypi b/gyp/asset-zip.gypi
new file mode 100644
index 0000000000..87f7584772
--- /dev/null
+++ b/gyp/asset-zip.gypi
@@ -0,0 +1,62 @@
+{
+ 'targets': [
+ { 'target_name': 'asset-zip',
+ 'product_name': 'mbgl-asset-zip',
+ 'type': 'static_library',
+ 'standalone_static_library': 1,
+ 'hard_dependency': 1,
+
+ 'sources': [
+ '../platform/default/asset_request_zip.cpp',
+ '../platform/default/uv_zip.c',
+ ],
+
+ 'include_dirs': [
+ '../include',
+ ],
+
+ 'variables': {
+ 'cflags': [
+ '<@(uv_cflags)',
+ '<@(zip_cflags)',
+ ],
+ 'cflags_cc': [
+ '<@(uv_cflags)',
+ '<@(zip_cflags)',
+ '-I<(boost_root)/include',
+ ],
+ 'ldflags': [
+ '<@(uv_ldflags)',
+ '<@(zip_ldflags)',
+ ],
+ 'libraries': [
+ '<@(uv_static_libs)',
+ '<@(zip_static_libs)',
+ ],
+ },
+
+ 'conditions': [
+ ['OS == "mac"', {
+ 'xcode_settings': {
+ 'OTHER_CFLAGS': [ '<@(cflags)' ],
+ 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
+ },
+ }, {
+ 'cflags': [ '<@(cflags)' ],
+ 'cflags_cc': [ '<@(cflags_cc)' ],
+ }],
+ ],
+
+ 'link_settings': {
+ 'conditions': [
+ ['OS == "mac"', {
+ 'libraries': [ '<@(libraries)' ],
+ 'xcode_settings': { 'OTHER_LDFLAGS': [ '<@(ldflags)' ] }
+ }, {
+ 'libraries': [ '<@(libraries)', '<@(ldflags)' ],
+ }]
+ ],
+ },
+ },
+ ],
+}