-
Notifications
You must be signed in to change notification settings - Fork 21
/
binding.gyp
44 lines (44 loc) · 1.1 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
{
"targets": [
{
"target_name": "geos",
"sources": [
"src/cpp/binding.cpp",
"src/cpp/geometry.cpp",
"src/cpp/wktreader.cpp",
"src/cpp/wkbreader.cpp",
"src/cpp/wktwriter.cpp",
"src/cpp/wkbwriter.cpp",
"src/cpp/geometryfactory.cpp",
"src/cpp/precisionmodel.cpp",
"src/cpp/geojsonwriter.cpp",
"src/cpp/geojsonreader.cpp"
],
'cflags!': [ '-fno-exceptions', '-fno-rtti' ],
'cflags_cc!': [ '-fno-exceptions', '-fno-rtti' ],
'conditions': [
['OS=="win"', {
# no Windows support yet...
}, {
'libraries': [
'<!@(geos-config --libs)'
],
}],
['OS=="mac"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.8',
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'GCC_ENABLE_CPP_RTTI': 'YES',
'OTHER_CFLAGS': [
'<!@(geos-config --cflags)'
]
}
}, {
'cflags': [
'<!@(geos-config --cflags)'
],
}]
]
}
]
}