summaryrefslogtreecommitdiff
path: root/binding.gyp
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2015-09-01 15:51:29 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2015-09-01 15:51:29 -0400
commit0e79d56b0939de9f4722350a34ab76554a23431c (patch)
treeb4fd9f7dbebfcdde7fb1445d1dc4671daa1607d7 /binding.gyp
parentc4c3b5bc71c38fe6d6c0df0ddb38c57dfd2767ab (diff)
downloadqtlocation-mapboxgl-0e79d56b0939de9f4722350a34ab76554a23431c.tar.gz
move package.json and binding.gyp to root, drop tiles.tilejson
Diffstat (limited to 'binding.gyp')
-rw-r--r--binding.gyp82
1 files changed, 82 insertions, 0 deletions
diff --git a/binding.gyp b/binding.gyp
new file mode 100644
index 0000000000..374ae1afd0
--- /dev/null
+++ b/binding.gyp
@@ -0,0 +1,82 @@
+{
+ 'includes': [
+ 'gyp/common.gypi',
+ ],
+ 'targets': [
+ { 'target_name': '<(module_name)',
+ 'dependencies': [
+ 'mbgl.gyp:core',
+ 'mbgl.gyp:platform-<(platform_lib)',
+ 'mbgl.gyp:headless-<(headless_lib)',
+ ],
+
+ 'include_dirs': [ "<!(node -e \"require('nan')\")" ],
+
+ 'sources': [
+ 'platform/node/src/node_mapbox_gl_native.cpp',
+ 'platform/node/src/node_log.hpp',
+ 'platform/node/src/node_log.cpp',
+ 'platform/node/src/node_file_source.hpp',
+ 'platform/node/src/node_file_source.cpp',
+ 'platform/node/src/node_map.hpp',
+ 'platform/node/src/node_map.cpp',
+ 'platform/node/src/node_request.hpp',
+ 'platform/node/src/node_request.cpp',
+ 'platform/node/src/util/async_queue.hpp',
+ ],
+
+ 'conditions': [
+ ['OS=="mac"', {
+ 'xcode_settings': {
+ 'CLANG_CXX_LIBRARY': 'libc++',
+ 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
+ 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
+ 'GCC_ENABLE_CPP_RTTI': 'YES',
+ 'OTHER_CPLUSPLUSFLAGS': [
+ '-std=c++1y',
+ '-Werror',
+ '-Wall',
+ '-Wextra',
+ '-Wshadow',
+ '-Wno-variadic-macros',
+ '-Wno-error=unused-parameter',
+ '-frtti',
+ '-fexceptions',
+ ],
+ 'GCC_WARN_PEDANTIC': 'YES',
+ 'GCC_WARN_UNINITIALIZED_AUTOS': 'YES_AGGRESSIVE',
+ 'MACOSX_DEPLOYMENT_TARGET': '10.9',
+ },
+ }, {
+ 'cflags_cc': [
+ '-std=c++14',
+ '-Werror',
+ '-Wall',
+ '-Wextra',
+ '-Wno-variadic-macros',
+ '-Wno-error=unused-parameter',
+ '-frtti',
+ '-fexceptions',
+ ],
+ 'libraries': [ '<@(glfw_ldflags)' ],
+ }],
+ ['OS=="linux"', {
+ 'cflags_cc': [
+ '-Wno-unknown-pragmas', # We are using '#pragma mark', but it is only available on Darwin.
+ ],
+ }],
+ ],
+ },
+
+ { 'target_name': 'action_after_build',
+ 'type': 'none',
+ 'dependencies': [ '<(module_name)' ],
+ 'copies': [
+ {
+ 'files': [ '<(PRODUCT_DIR)/<(module_name).node' ],
+ 'destination': '<(module_path)'
+ }
+ ]
+ }
+ ]
+}