-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
119 lines (119 loc) · 2.97 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"variables": {
"conditions": [
["OS == 'win'", {
"tls_keyword%": "__declspec(thread)"
}, {
"tls_keyword%": "<!(./deps/checks/check_tls.sh)"
}],
]
},
"targets": [
{
"target_name": "liburkel",
"type": "static_library",
"sources": [
"./deps/liburkel/src/bits.c",
"./deps/liburkel/src/blake2b.c",
"./deps/liburkel/src/internal.c",
"./deps/liburkel/src/io.c",
"./deps/liburkel/src/nodes.c",
"./deps/liburkel/src/proof.c",
"./deps/liburkel/src/store.c",
"./deps/liburkel/src/tree.c",
"./deps/liburkel/src/util.c"
],
"include_dirs": [
"./deps/liburkel/include"
],
"direct_dependent_settings": {
"include_dirs": [
"./deps/liburkel/include"
]
},
"conditions": [
["OS != 'mac' and OS != 'win'", {
"cflags": [
"-fvisibility=hidden",
"-pedantic",
"-Wall",
"-Wextra",
"-Wextra",
"-Wcast-align",
"-Wno-implicit-fallthrough",
"-Wno-long-long",
"-Wno-overlength-strings",
"-Wshadow",
]
}],
["OS == 'mac'", {
"xcode_settings": {
"GCC_SYMBOLS_PRIVATE_EXTERN": "YES",
"MACOSX_DEPLOYMENT_TARGET": "10.7",
"WARNING_CFLAGS": [
"-pedantic",
"-Wall",
"-Wextra",
"-Wextra",
"-Wcast-align",
"-Wno-implicit-fallthrough",
"-Wno-long-long",
"-Wno-overlength-strings",
"-Wshadow",
]
}
}],
["OS == 'win'", {
"msvs_disabled_warnings=": [
4146, # negation of unsigned integer
4244, # implicit integer demotion
4267, # implicit size_t demotion
4334, # implicit 32->64 bit shift
4996, # deprications
],
}],
["OS == 'linux'", {
"defines": ["_POSIX_C_SOURCE=200112"]
}],
["tls_keyword != 'none'", {
"defines": ["URKEL_TLS=<(tls_keyword)"]
}]
],
},
{
"target_name": "nurkel",
"dependencies": [
"liburkel",
],
"sources": [
"./src/nurkel.c",
"./src/tree.c",
"./src/transaction.c",
"./src/util.c",
"./src/common.c"
],
"conditions": [
["OS != 'mac' and OS != 'win'", {
"cflags": [
"-Wcast-align",
"-Wshadow"
]
}],
["OS == 'mac'", {
"xcode_settings": {
"WARNING_CFLAGS": [
"-Wcast-align",
"-Wshadow"
]
}
}],
["OS == 'win'", {
"msvs_disabled_warnings=": [
4244, # implicit integer demotion
4267 # implicit size_t demotion
]
}],
]
}
]
}