forked from X-Profiler/xprofiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
99 lines (99 loc) · 3.42 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"targets": [
{
"target_name": "xprofiler",
'win_delay_load_hook': 'false',
"sources": [
"src/xprofiler.cc",
"src/configure.cc",
"src/logger.cc",
"src/library/json.hpp",
"src/library/error.cc",
"src/library/common.cc",
"src/library/utils.cc",
"src/library/writer.cc",
"src/logbypass/log.cc",
"src/logbypass/cpu.cc",
"src/logbypass/heap.cc",
"src/logbypass/gc.cc",
"src/logbypass/libuv.cc",
"src/logbypass/http.cc",
"src/commands/listener.cc",
"src/commands/send.cc",
"src/commands/parser.cc",
"src/commands/dump.cc",
"src/commands/simple/version.cc",
"src/commands/simple/config.cc",
"src/commands/cpuprofiler/cpu_profiler.cc",
"src/commands/cpuprofiler/cpu_profile.cc",
"src/commands/cpuprofiler/cpu_profile_node.cc",
"src/commands/heapdump/heap_profiler.cc",
"src/commands/heapdump/heap_snapshot.cc",
"src/commands/heapprofiler/sampling_heap_profiler.cc",
"src/commands/gcprofiler/gc_profiler.cc",
"src/commands/report/node_report.cc",
"src/commands/report/javascript_stack.cc",
"src/commands/report/native_stack.cc",
"src/commands/report/heap_statistics.cc",
"src/commands/report/uv_statistics.cc",
"src/commands/report/system_statistics.cc",
"src/hooks/set_hooks.cc",
"src/hooks/fatal_error.cc",
],
"include_dirs": [ '<!(node -e "require(\'nan\')")' ],
'cflags_cc!': [ '-fno-exceptions' ],
"conditions": [
["OS == 'linux'", {
"cflags": [ "-O2", "-std=c++11" ],
"defines": [
'XPROFILER_IPC_PATH="<!(node -p \"require(\'./package.json\').xctlIpcPath.unix\")"',
],
"sources": [
"src/platform/unix/cpu.cc",
"src/platform/unix/utils.cc",
"src/platform/unix/ipc.cc",
"src/platform/unix/report.cc",
]
}],
["OS == 'mac'", {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
},
"defines": [
'XPROFILER_IPC_PATH="<!(node -p \"require(\'./package.json\').xctlIpcPath.unix\")"',
],
"sources": [
"src/platform/unix/cpu.cc",
"src/platform/unix/utils.cc",
"src/platform/unix/ipc.cc",
"src/platform/unix/report.cc",
]
}],
["OS == 'win'", {
"libraries": [ "dbghelp.lib", "Netapi32.lib", "PsApi.lib", "Ws2_32.lib" ],
"dll_files": [ "dbghelp.dll", "Netapi32.dll", "PsApi.dll", "Ws2_32.dll" ],
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': '2',
'Optimization': '2',
},
},
"defines": [
'XPROFILER_IPC_PATH="<!(node -p \"require(\'./package.json\').xctlIpcPath.win32\")"',
'WIN32_LEAN_AND_MEAN=1',
],
"sources": [
"src/platform/win/cpu_win.cc",
"src/platform/win/utils_win.cc",
"src/platform/win/ipc_win.cc",
"src/platform/win/report_win.cc",
]
}],
],
"defines": [
'XPROFILER_VERSION="<!(node -p \"require(\'./package.json\').version\")"',
'XPROFILER_BLURRY_TAG="<!(node -p \"require(\'./package.json\').blurryTag\")"',
],
},
],
}