summaryrefslogtreecommitdiff
path: root/binding.gyp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-02-04 18:21:39 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-02-04 18:21:39 +0100
commit07867edd4764e0801f715bff2de899ae1620eb8c (patch)
tree6615f572457ff03ffed8758c856c7a658435d57a /binding.gyp
downloadqtlocation-mapboxgl-07867edd4764e0801f715bff2de899ae1620eb8c.tar.gz
initial version with updated build system
Diffstat (limited to 'binding.gyp')
-rw-r--r--binding.gyp59
1 files changed, 59 insertions, 0 deletions
diff --git a/binding.gyp b/binding.gyp
new file mode 100644
index 0000000000..0d4922fad5
--- /dev/null
+++ b/binding.gyp
@@ -0,0 +1,59 @@
+{
+ 'targets': [
+ { 'target_name': 'mbgl',
+ 'dependencies': [
+ './<(mbgl)/mbgl.gyp:core',
+ './<(mbgl)/mbgl.gyp:platform-<(platform_lib)',
+ './<(mbgl)/mbgl.gyp:headless-<(headless_lib)',
+ ],
+
+ 'include_dirs': [ "<!(node -e \"require('nan')\")" ],
+
+ 'sources': [
+ 'src/mbgl.cpp',
+ 'src/node_file_source.hpp',
+ 'src/node_file_source.cpp',
+ 'src/node_map.hpp',
+ 'src/node_map.cpp',
+ 'src/node_map_render_worker.hpp',
+ 'src/node_map_render_worker.cpp',
+ 'src/node_request.hpp',
+ 'src/node_request.cpp',
+ ],
+
+ 'variables': {
+ 'cflags_cc': [
+ '-std=c++11',
+ '-stdlib=libc++',
+ '-Wno-unused-parameter'
+ ],
+ },
+
+ 'conditions': [
+ ['OS == "mac"', {
+ 'xcode_settings': {
+ 'MACOSX_DEPLOYMENT_TARGET': '10.7',
+ 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
+ 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
+ }
+ }, {
+ 'cflags_cc': [
+ '<@(cflags_cc)',
+ '-fexceptions',
+ ],
+ }]
+ ],
+ },
+
+ { 'target_name': 'action_after_build',
+ 'type': 'none',
+ 'dependencies': [ 'mbgl' ],
+ 'copies': [
+ {
+ 'files': [ '<(PRODUCT_DIR)/mbgl.node' ],
+ 'destination': 'lib'
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file