summaryrefslogtreecommitdiff
path: root/bin/render.gypi
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-04-21 11:57:08 +0200
committerKonstantin Käfer <mail@kkaefer.com>2015-04-24 11:50:50 +0200
commit0d5568f7248d489c6081c217f2c21e56fb12e5f1 (patch)
tree1ff2bfd0152d4633cb2eaa69f2b101ec825742d2 /bin/render.gypi
parent8d766135974110a8c52a43956ff4f3313cb0e310 (diff)
downloadqtlocation-mapboxgl-0d5568f7248d489c6081c217f2c21e56fb12e5f1.tar.gz
merge build targets so we only have one build file per platform
previously, we used multiple different projects for various targets (app, test, render) that overwrote each other, so it was impossible to have one project to build them all, one project to compile them, one project to run them all and in the darkness bind them
Diffstat (limited to 'bin/render.gypi')
-rw-r--r--bin/render.gypi60
1 files changed, 60 insertions, 0 deletions
diff --git a/bin/render.gypi b/bin/render.gypi
new file mode 100644
index 0000000000..b205e7a959
--- /dev/null
+++ b/bin/render.gypi
@@ -0,0 +1,60 @@
+{
+ 'includes': [
+ '../gyp/common.gypi',
+ ],
+ 'targets': [
+ { 'target_name': 'mbgl-render',
+ 'product_name': 'mbgl-render',
+ 'type': 'executable',
+
+ 'dependencies': [
+ '../mbgl.gyp:core',
+ '../mbgl.gyp:platform-<(platform_lib)',
+ '../mbgl.gyp:headless-<(headless_lib)',
+ '../mbgl.gyp:http-<(http_lib)',
+ '../mbgl.gyp:asset-<(asset_lib)',
+ '../mbgl.gyp:cache-<(cache_lib)',
+ '../mbgl.gyp:copy_certificate_bundle',
+ ],
+
+ 'include_dirs': [
+ '../src',
+ ],
+
+ 'sources': [
+ './render.cpp',
+ ],
+
+ 'variables' : {
+ 'cflags_cc': [
+ '<@(glfw3_cflags)',
+ '<@(uv_cflags)',
+ '<@(boost_cflags)',
+ ],
+ 'ldflags': [
+ '<@(glfw3_ldflags)',
+ '<@(uv_ldflags)',
+ '<@(boost_ldflags)',
+ '-lboost_program_options'
+ ],
+ 'libraries': [
+ '<@(glfw3_static_libs)',
+ '<@(uv_static_libs)',
+ ],
+ },
+
+ 'conditions': [
+ ['OS == "mac"', {
+ 'libraries': [ '<@(libraries)' ],
+ 'xcode_settings': {
+ 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
+ 'OTHER_LDFLAGS': [ '<@(ldflags)' ],
+ }
+ }, {
+ 'cflags_cc': [ '<@(cflags_cc)' ],
+ 'libraries': [ '<@(libraries)', '<@(ldflags)' ],
+ }]
+ ],
+ },
+ ],
+}