-
Notifications
You must be signed in to change notification settings - Fork 111
/
binding.gyp
118 lines (118 loc) · 2.89 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
{
"variables": {
"platform": "<(OS)"
},
"targets": [
{
"target_name": "zookeeper",
"dependencies": [
"libzk"
],
"sources": [
"src/node-zk.cpp"
],
"cflags": [
"-w",
"-O0"
],
"conditions": [
[
"OS==\"mac\"",
{
"include_dirs": [
"<(module_root_dir)/deps/zookeeper-client-c/include",
"<(module_root_dir)/deps/zookeeper-client-c/generated",
"<!(node -e \"require('nan')\")"
],
"libraries": [
"<(module_root_dir)/deps/zookeeper-client-c/.libs/libzookeeper_st.a"
],
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"MACOSX_DEPLOYMENT_TARGET": "<!(sw_vers -productVersion)"
}
}
],
[
"OS==\"linux\"",
{
"include_dirs": [
"<(module_root_dir)/deps/zookeeper-client-c/include",
"<(module_root_dir)/deps/zookeeper-client-c/generated",
"<!(node -e \"require('nan')\")"
],
"libraries": [
"<(module_root_dir)/deps/zookeeper-client-c/.libs/libzookeeper_st.a"
]
}
],
[
"OS==\"win\"",
{
"defines": [
"WIN32",
"USE_STATIC_LIB"
],
"msvs_settings": {
"VCLinkerTool": {
"IgnoreDefaultLibraryNames": [
"msvcrtd.lib",
"msvcmrtd.lib",
"libcmt.lib"
]
}
},
"include_dirs": [
"<(module_root_dir)/deps/zookeeper-client-c/include",
"<(module_root_dir)/deps/zookeeper-client-c/generated",
"<!(node -e \"require('nan')\")"
],
"libraries": [
"<(module_root_dir)/deps/zookeeper-client-c/Debug/zookeeper.lib",
"<(module_root_dir)/deps/zookeeper-client-c/Debug/hashtable.lib",
"msvcrt.lib",
"msvcmrt.lib",
"Ws2_32.lib",
"Mswsock.lib",
"AdvApi32.lib"
]
}
]
]
},
{
"target_name": "libzk",
"type": "none",
"actions": [
{
"action_name": "build_zk_client_lib",
"inputs": [
""
],
"outputs": [
""
],
"action": [
"node",
"scripts/build.js"
]
}
]
},
{
"target_name": "after_build",
"type": "none",
"dependencies": [
"zookeeper"
],
"copies": [
{
"files": [
"<(PRODUCT_DIR)/zookeeper.node"
],
"destination": "<(module_root_dir)/build"
}
]
}
]
}