Files
MapLibreParticleLab/binding.gyp
Mike Morris df396d7d89 get tests passing on travis
add iam template with mapbox-gl-testing and mapbox-node-binary permissions
add travis build scripts and .travis.yml
rm -f platform gypi
map.resize is private now, called by view.resize
set stdlib and c++11 per platform, link glfw3 ldflags on linux
pass --clang to node-gyp per https://github.com/mapbox/mapbox-gl-native/pull/364#issuecomment-51735692
2015-02-10 15:24:02 -08:00

63 lines
1.5 KiB
Python

{
'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': [
'-Wno-unused-parameter',
],
},
'conditions': [
['OS == "mac"', {
'xcode_settings': {
"CLANG_CXX_LIBRARY": "libc++",
"CLANG_CXX_LANGUAGE_STANDARD":"c++11",
"GCC_VERSION": "com.apple.compilers.llvm.clang.1_0",
'MACOSX_DEPLOYMENT_TARGET': '10.7',
'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
}
}, {
'cflags_cc': [
'-std=c++11',
'-fexceptions',
'<@(cflags_cc)',
],
'libraries': [ '<@(glfw3_ldflags)' ],
}]
],
},
{ 'target_name': 'action_after_build',
'type': 'none',
'dependencies': [ 'mbgl' ],
'copies': [
{
'files': [ '<(PRODUCT_DIR)/mbgl.node' ],
'destination': 'lib'
}
]
}
]
}