forked from nodejs/llnode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinding.gyp
More file actions
72 lines (65 loc) · 1.63 KB
/
binding.gyp
File metadata and controls
72 lines (65 loc) · 1.63 KB
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
{
"includes": [
"llnode.gypi",
"config.gypi"
],
"variables": {
# gyp does not appear to let you test for undefined variables, so define
# lldb_lib_dir as empty so we can test it later.
"lldb_lib_dir%": ""
},
"target_defaults": {
"include_dirs": [
"<(module_root_dir)",
"<(lldb_include_dir)",
],
"cflags" : [ "-std=c++11" ],
"conditions": [
[ "OS == 'mac'", {
# Necessary for node v4.x
"xcode_settings": {
"OTHER_CPLUSPLUSFLAGS" : [ "-std=c++11", "-stdlib=libc++" ],
"OTHER_LDFLAGS": [ "-stdlib=libc++" ],
},
"conditions": [
[ "lldb_lib_dir == ''", {
"variables": {
"mac_shared_frameworks": "/Applications/Xcode.app/Contents/SharedFrameworks",
},
"xcode_settings": {
"OTHER_LDFLAGS": [
"-F<(mac_shared_frameworks)",
"-Wl,-rpath,<(mac_shared_frameworks)",
"-framework LLDB",
],
},
},
# lldb_lib_dir != ""
{
"xcode_settings": {
"OTHER_LDFLAGS": [
"-Wl,-rpath,<(lldb_lib_dir)",
"-L<(lldb_lib_dir)",
"-l<(lldb_lib)",
],
},
}],
],
}]
]
},
"targets": [{
"target_name": "plugin",
"type": "shared_library",
"sources": [
"src/constants.cc",
"src/error.cc",
"src/llnode.cc",
"src/llv8.cc",
"src/llv8-constants.cc",
"src/llscan.cc",
"src/node.cc",
"src/node-constants.cc",
]
}],
}