1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{
'targets': [
{ 'target_name': '<(module_name)',
'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/node_mapbox_gl_native.cpp',
'src/compress_png.hpp',
'src/compress_png.cpp',
'src/node_log.hpp',
'src/node_log.cpp',
'src/node_file_source.hpp',
'src/node_file_source.cpp',
'src/node_map.hpp',
'src/node_map.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.9',
'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': [ '<(module_name)' ],
'copies': [
{
'files': [ '<(PRODUCT_DIR)/<(module_name).node' ],
'destination': '<(module_path)'
}
]
}
]
}
|