forked from nut-tree/libnut-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
89 lines (87 loc) · 2.48 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
{
"targets": [
{
"target_name": "libnut",
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"sources": [
"src/main.cc",
"src/deadbeef_rand.c",
"src/MMBitmap.c"
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"
],
"defines": [
"NAPI_CPP_EXCEPTIONS",
"NAPI_VERSION=3"
],
"conditions": [
['OS=="linux"', {
"sources": [
"src/linux/keycode.c",
"src/linux/keypress.c",
"src/linux/mouse.c",
"src/linux/screen.c",
"src/linux/screengrab.c",
"src/linux/xdisplay.c",
"src/linux/highlightwindow.c",
"src/linux/window_manager.cc"
],
"libraries": [
"-lX11",
"-lXtst"
]
}],
['OS=="mac"', {
"sources": [
"src/macos/keycode.c",
"src/macos/keypress.c",
"src/macos/mouse.c",
"src/macos/mouse_utils.mm",
"src/macos/screen.c",
"src/macos/screengrab.m",
"src/macos/highlightwindow.m",
"src/macos/window_manager.mm"
],
"link_settings": {
"libraries": [
"$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework",
"$(SDKROOT)/System/Library/Frameworks/Cocoa.framework"
]
}
}],
['OS=="win"', {
"sources": [
"src/win32/keycode.c",
"src/win32/keypress.c",
"src/win32/mouse.c",
"src/win32/screen.c",
"src/win32/screengrab.c",
"src/win32/highlightwindow.c",
"src/win32/window_manager.cc"
],
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": 1,
"AdditionalOptions": ["/EHsc"]
}
},
"copies": [
{
"destination": "<(PRODUCT_DIR)",
"files": [
"3rdparty/win32/api-ms-win-crt-heap-l1-1-0.dll",
"3rdparty/win32/api-ms-win-crt-runtime-l1-1-0.dll",
"3rdparty/win32/api-ms-win-crt-string-l1-1-0.dll",
"3rdparty/win32/msvcp140.dll",
"3rdparty/win32/vcruntime140.dll",
"3rdparty/win32/vcruntime140_1.dll"
]
}
]
}]
]
}
]
}