-
Notifications
You must be signed in to change notification settings - Fork 5
/
binding.gyp
35 lines (35 loc) · 1001 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
26
27
28
29
30
31
32
33
34
35
{
"targets": [{
"target_name": "serenade-driver",
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS"],
"sources": ["src/driver.cpp"],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"
],
"conditions": [
['OS=="mac"', {
"sources": ["src/driver.cpp", "src/mac.cpp"],
"link_settings": {
"libraries": [
"/System/Library/Frameworks/AppKit.framework",
"/System/Library/Frameworks/Carbon.framework",
"/System/Library/Frameworks/CoreGraphics.framework",
"/System/Library/Frameworks/Foundation.framework"
]
},
"xcode_settings": {
"OTHER_CFLAGS": ["-ObjC++"]
}
}],
['OS=="win"', {
"sources": ["src/driver.cpp", "src/windows.cpp"],
}],
['OS=="linux"', {
"sources": ["src/driver.cpp", "src/linux.cpp"],
"link_settings": {
"libraries": ["-lX11", "-lXtst"]
}
}]
]
}]
}