-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbinding.gyp
41 lines (41 loc) · 1.4 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
{
"variables": {
# x264_root as relative path to the module root
"x264_root%": "<(module_root_dir)/x264"
},
"targets": [
{
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"include_dirs" : [
"<!@(node -p \"require('node-addon-api').include\")"
],
"link_settings": {
"libraries": [
"-lX11", # provided by libx11-dev
"-lXrandr", # provided by libxrandr-dev
"-lXtst", # provided by libxtst-dev
"-lXdamage",
"-lXfixes",
"<@(x264_root)/lib/libx264.a" # static library exported with the package
]
},
"target_name": "display-utility",
"sources": [
"native_src/display_utility.cc",
"native_src/display_utility_x11.cc",
"native_src/output_resolution.cc",
"native_src/screen_resources.cc",
"native_src/x11_util.cc",
"native_src/output_resolution_with_offset.cc",
"native_src/screen_capture_utility.cc",
"native_src/encoder.cc",
"native_src/base_screen_capturer.cc",
"native_src/single_screen_capturer.cc",
"native_src/multi_screen_capturer.cc",
"native_src/get_next_frame_worker.cc"],
# To avoid native node modules from throwing cpp exception and raise pending JS exception which can be handled in JS
"defines": [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ]
}
]
}