-
Notifications
You must be signed in to change notification settings - Fork 21
/
binding.gyp
74 lines (71 loc) · 1.71 KB
/
binding.gyp
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
65
66
67
68
69
70
71
72
73
74
{
'includes': [
'config.gypi'
],
'variables': {
'action_after_build': 'false'
},
'targets': [
{
'target_name': 'profiler',
'win_delay_load_hook': 'false',
'sources': [
'src/cpu_profiler/cpu_profiler.cc',
'src/cpu_profiler/cpu_profile.cc',
'src/cpu_profiler/cpu_profile_node.cc',
'src/heap_profiler/sampling_heap_profiler.cc',
'src/heapsnapshot/heap_profiler.cc',
'src/heapsnapshot/heap_snapshot.cc',
'src/heapsnapshot/heap_output_stream.cc',
'src/heapsnapshot/heap_graph_node.cc',
'src/heapsnapshot/heap_graph_edge.cc',
'src/profiler.cc',
'src/environment_data.cc'
],
'include_dirs' : [
'src',
'<!(node -e "require(\'nan\')")'
],
'conditions':[
['OS == "linux"', {
'cflags': [
'-O2',
'-std=c++17',
'-Wno-sign-compare',
'-Wno-cast-function-type',
],
}],
['OS == "mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'OTHER_CFLAGS': [
'-std=c++17',
'-Wconversion',
'-Wno-sign-conversion',
]
}
}],
]
},
],
'conditions': [
[
'action_after_build == "true"',
{
'targets': [
{
'target_name': 'action_after_build',
'type': 'none',
'dependencies': ['<(module_name)'],
'copies': [
{
'files': ['<(PRODUCT_DIR)/<(module_name).node'],
'destination': '<(module_path)'
}
]
},
]
}
]
],
}