-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
62 lines (62 loc) · 1.38 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
{
"targets": [
{
"target_name": "passkey",
"sources": [],
"include_dirs": [
"src/lib",
"<!(node -p \"require('node-addon-api').targets\"):node_addon_api"
],
"dependencies": [
"<!(node -p \"require('node-addon-api').targets\"):node_addon_api"
],
"conditions": [
["OS=='mac'", {
"sources": [
"src/lib/passkey.mm"
],
"link_settings": {
"libraries": [
"-lpthread",
"-framework AppKit",
"-framework ApplicationServices"
],
"ldflags": ["-ObjC"]
},
"xcode_settings": {
"GCC_SYMBOLS_PRIVATE_EXTERN": "YES",
"OTHER_CFLAGS": [
"-fobjc-arc",
"-fexceptions"
],
"OTHER_CPLUSPLUSFLAGS": [
"-ObjC++"
]
}
}],
["OS=='linux'", {
"defines": [
"_GNU_SOURCE"
],
"link_settings": {
"libraries": [
"-lxcb", "-lpthread"
]
}
}]
],
"cflags": [
"-std=c++11",
"-pedantic",
"-Wall",
"-pthread",
"-fexceptions"
],
"cflags+": ["-fvisibility=hidden"],
"cflags_cc": [
"-std=c++11",
"-fexceptions"
]
}
]
}