-
Notifications
You must be signed in to change notification settings - Fork 72
/
binding.gyp
80 lines (80 loc) · 1.99 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
{
"variables": {
"os_linux_compiler%": "gcc",
"use_vl32%": "false",
"use_fixed_size%": "false",
"use_posix_semaphores%": "false",
"openssl_fips": ""
},
"targets": [
{
"target_name": "node-lmdb",
"win_delay_load_hook": "false",
"sources": [
"dependencies/lmdb/libraries/liblmdb/mdb.c",
"dependencies/lmdb/libraries/liblmdb/midl.c",
"src/node-lmdb.cpp",
"src/env.cpp",
"src/misc.cpp",
"src/txn.cpp",
"src/dbi.cpp",
"src/cursor.cpp"
],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"dependencies/lmdb/libraries/liblmdb"
],
"conditions": [
["OS=='linux'", {
"variables": {
"gcc_version" : "<!(<(os_linux_compiler) -dumpversion | cut -d '.' -f 1)",
},
"conditions": [
["gcc_version>=7", {
"cflags": [
"-Wimplicit-fallthrough=2",
],
}],
],
"ldflags": [
"-fPIC",
"-fvisibility=hidden"
],
"cflags": [
"-fPIC",
"-fvisibility=hidden"
],
"cflags_cc": [
"-fPIC",
"-fvisibility=hidden",
"-fvisibility-inlines-hidden",
]
}],
["OS=='mac'", {
"conditions": [
["use_posix_semaphores=='true'", {
"defines": ["MDB_USE_POSIX_SEM"]
}]
],
"xcode_settings": {
"MACOSX_DEPLOYMENT_TARGET": "10.7",
"CLANG_CXX_LIBRARY": "libc++"
}
}],
["OS=='win'", {
"libraries": ["ntdll.lib"]
}],
["use_fixed_size=='true'", {
"defines": ["MDB_FIXEDSIZE"],
}],
["use_vl32=='true'", {
"conditions": [
["target_arch=='ia32'", {
"defines": ["MDB_VL32"]
}]
]
}],
],
}
]
}