-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbinding.gyp
42 lines (42 loc) · 1.02 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
{
"targets": [
{
"target_name": "bindings",
"sources": [
"src/node-mapcache.cpp",
"src/mapcache.cpp",
"src/asynclog.cpp"
],
"include_dirs": [
"<!@(python tools/config.py --include)"
],
"configurations": {
# This augments the `Debug` configuration used when calling `node-gyp`
# with `--debug` to create code coverage files used by lcov
"Debug": {
"conditions": [
['OS=="linux"', {
"cflags": ["--coverage"],
"ldflags": ["--coverage"]
}],
]
},
},
"conditions": [
['OS=="linux"', {
'ldflags': [
'-Wl,--no-as-needed,-lmapcache',
'<!@(python tools/config.py --ldflags)'
],
'libraries': [
"<!@(python tools/config.py --libraries)"
],
'cflags': [
'<!@(python tools/config.py --cflags)',
'-Wall'
],
}],
]
}
]
}