forked from mapbox/node-s2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
102 lines (102 loc) · 3 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
100
101
102
{
"targets": [
{
"target_name": "_s2",
"sources": [
"./src/latlng.cc",
"./src/latlngrect.cc",
"./src/cell.cc",
"./src/angle.cc",
"./src/cellid.cc",
"./src/point.cc",
"./src/polygon.cc",
"./src/polyline.cc",
"./src/interval.cc",
"./src/cap.cc",
"./geometry/s2.cc",
"./geometry/s1interval.cc",
"./geometry/util/math/exactfloat/exactfloat.cc",
"./geometry/strings/strutil.cc",
"./geometry/strings/stringprintf.cc",
"./geometry/s2cap.cc",
"./geometry/s1angle.cc",
"./geometry/s2cell.cc",
"./geometry/s2cellunion.cc",
"./geometry/s2cellid.cc",
"./geometry/s2edgeindex.cc",
"./geometry/s2edgeutil.cc",
"./geometry/s2latlngrect.cc",
"./geometry/s2loop.cc",
"./geometry/s2pointregion.cc",
"./geometry/s2latlng.cc",
"./geometry/s2polygon.cc",
"./geometry/s2polygonbuilder.cc",
"./geometry/s2polyline.cc",
"./geometry/s2r2rect.cc",
"./geometry/s2region.cc",
"./geometry/s2regioncoverer.cc",
"./geometry/s2regionintersection.cc",
"./viewfinder/viewfinder.cc",
"./src/s2.cc",
],
"defines": [
'NDEBUG'
],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"./viewfinder/",
"./geometry/",
"./geometry/base/",
"./geometry/util/",
"./geometry/util/math/",
"./geometry/strings/",
"<(node_root_dir)/deps/openssl/openssl/include"
],
'conditions': [
["target_arch=='ia32'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/piii" ]
}],
["target_arch=='x64'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/k8" ]
}],
["target_arch=='arm'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/arm" ]
}],
['OS=="mac"', {
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS':[
'-Wno-deprecated',
'-Wno-ignored-qualifiers',
'-DARCH_K8 -DS2_USE_EXACTFLOAT',
'-stdlib=libc++',
'-std=c++11'
],
'OTHER_LDFLAGS':[
'-flat_namespace -undefined suppress',
'-stdlib=libc++',
'-std=c++11'],
'GCC_ENABLE_CPP_RTTI': 'YES',
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'MACOSX_DEPLOYMENT_TARGET': '10.7',
}
}],
['OS=="solaris"',{
'cflags_cc' : [
'-Wno-deprecated',
'-Wno-ignored-qualifiers',
'-DARCH_K8 -DS2_USE_EXACTFLOAT',
'-std=c++11'
]
}],
['OS=="linux"', {
'cflags_cc' : [
'-Wno-deprecated',
'-Wno-ignored-qualifiers',
'-DARCH_K8 -DS2_USE_EXACTFLOAT',
'-std=c++11'
],
}]
]
}
]
}