summaryrefslogtreecommitdiff
path: root/gyp/platform-linux.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-linux.gypi
parent3d51e116a84ee168975bcee8377e9156f77e2731 (diff)
downloadqtlocation-mapboxgl-29baacf3a5bb773d94d08d16b81c3cda45a44eb6.tar.gz
refactor makefile
Diffstat (limited to 'gyp/platform-linux.gypi')
-rw-r--r--gyp/platform-linux.gypi78
1 files changed, 78 insertions, 0 deletions
diff --git a/gyp/platform-linux.gypi b/gyp/platform-linux.gypi
new file mode 100644
index 0000000000..2915606ac5
--- /dev/null
+++ b/gyp/platform-linux.gypi
@@ -0,0 +1,78 @@
+{
+ 'targets': [
+ { 'target_name': 'platform-linux',
+ 'product_name': 'mbgl-platform-linux',
+ 'type': 'static_library',
+ 'standalone_static_library': 1,
+ 'hard_dependency': 1,
+ 'dependencies': [
+ 'version',
+ ],
+
+ 'sources': [
+ '../platform/default/log_stderr.cpp',
+ '../platform/default/string_stdlib.cpp',
+ '../platform/default/application_root.cpp',
+ '../platform/default/asset_root.cpp',
+ '../platform/default/image.cpp',
+ '../platform/default/image_reader.cpp',
+ '../platform/default/png_reader.cpp',
+ '../platform/default/jpeg_reader.cpp',
+ ],
+
+ 'variables': {
+ 'cflags_cc': [
+ '<@(png_cflags)',
+ '<@(jpeg_cflags)',
+ '<@(uv_cflags)',
+ '<@(nu_cflags)',
+ '-I<(boost_root)/include',
+ ],
+ 'ldflags': [
+ '<@(png_ldflags)',
+ '<@(jpeg_ldflags)',
+ '<@(uv_ldflags)',
+ '<@(nu_ldflags)',
+ ],
+ 'libraries': [
+ '<@(png_static_libs)',
+ '<@(jpeg_static_libs)',
+ '<@(uv_static_libs)',
+ '<@(nu_static_libs)',
+ ],
+ },
+
+ 'include_dirs': [
+ '../include',
+ '../src',
+ ],
+
+ 'conditions': [
+ ['OS == "mac"', {
+ 'xcode_settings': {
+ 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
+ }
+ }, {
+ 'cflags_cc': [ '<@(cflags_cc)' ],
+ }]
+ ],
+
+ 'link_settings': {
+ 'conditions': [
+ ['OS == "mac"', {
+ 'libraries': [ '<@(libraries)' ],
+ 'xcode_settings': { 'OTHER_LDFLAGS': [ '<@(ldflags)' ] }
+ }, {
+ 'libraries': [ '<@(libraries)', '<@(ldflags)' ],
+ }]
+ ],
+ },
+
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../include',
+ ],
+ },
+ },
+ ],
+}