forked from Comparative-Inc/comparative-parquet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
53 lines (53 loc) · 1.5 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
{
"targets": [
{
"target_name": "comparative_parquet",
"sources": [
"src/main.cc",
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"
],
"cflags!": [ "-fno-exceptions", "-fno-rtti" ],
"cflags_cc!": [ "-fno-exceptions", "-fno-rtti" ],
"cflags_cc": [ "-std=c++17", "-fexceptions", "-frtti" ],
"cflags": [
"<!@(pkg-config --cflags parquet arrow) -Wall -g",
],
"ldflags": [
"-Wl,-no-as-needed",
"<!@(pkg-config --libs parquet arrow) -lpthread",
],
"conditions": [
['OS == "linux"', {
"defines": [
"PLATFORM_LINUX=1",
]
}],
['OS == "mac"', {
"defines": [
"PLATFORM_MAC=1",
],
"xcode_settings": {
"OTHER_CFLAGS": [
"<!@(pkg-config --cflags parquet arrow) -fexceptions -frtti",
],
"OTHER_LDFLAGS": [
"<!@(pkg-config --libs parquet arrow) -lpthread",
]
},
}],
['OS == "win"', {
"defines": [
"PLATFORM_WIN=1",
],
"include_dirs": [
"include",
# "/msys64/mingw64/include/gobject-introspection-1.0",
# "/msys64/mingw64/lib/libffi-3.2.1/include",
]
}]
]
}
]
}