-
Notifications
You must be signed in to change notification settings - Fork 5
/
binding.gyp
25 lines (25 loc) · 883 Bytes
/
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
{
"targets": [
{
"target_name": "keylogger",
"cflags!": ["-fno-exceptions"],
"cflags_cc!": ["-fno-exceptions"],
"conditions":[
["OS=='mac'", {
"sources": ["src/macOS/keylogger.mm", "src/macOS/string_conversion.cc"],
"xcode_settings": {
"OTHER_CPLUSPLUSFLAGS": ["-std=c++11", "-stdlib=libc++", "-mmacosx-version-min=10.10"],
"OTHER_LDFLAGS": ["-framework Cocoa"]
},
}],
["OS=='win'", {
"sources": ["src/windows/keylogger.cc"]
}]
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"
],
'defines': ['NAPI_DISABLE_CPP_EXCEPTIONS'],
}
]
}