forked from nodejs/llnode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
llnode.gyp
54 lines (50 loc) · 1.26 KB
/
llnode.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
{
"variables": {
# gyp does not appear to let you test for undefined variables, so define
# lldb_build_dir as empty so we can test it later.
"lldb_build_dir%": ""
},
"targets": [{
"target_name": "llnode",
"type": "shared_library",
"product_prefix": "",
"include_dirs": [
".",
"<(lldb_dir)/include",
],
"sources": [
"src/llnode.cc",
"src/llv8.cc",
"src/llv8-constants.cc",
"src/llscan.cc",
],
"conditions": [
[ "OS == 'mac'", {
"conditions": [
[ "lldb_build_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_builddir != ""
{
"xcode_settings": {
"OTHER_LDFLAGS": [
"-Wl,-rpath,<(lldb_build_dir)/lib",
"-L<(lldb_build_dir)/lib",
"-l<(lldb_lib)",
],
},
}],
],
}],
]
}],
}