-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathelectron-safe-binding.gyp
More file actions
67 lines (67 loc) · 1.91 KB
/
electron-safe-binding.gyp
File metadata and controls
67 lines (67 loc) · 1.91 KB
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
{
"targets": [
{
"target_name": "mac_recorder_electron",
"sources": [
"src/electron_safe/mac_recorder_electron.mm",
"src/electron_safe/screen_capture_electron.mm",
"src/electron_safe/audio_capture_electron.mm",
"src/electron_safe/cursor_tracker_electron.mm",
"src/electron_safe/window_selector_electron.mm"
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"
],
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
],
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"CLANG_CXX_LIBRARY": "libc++",
"MACOSX_DEPLOYMENT_TARGET": "10.15",
"OTHER_CFLAGS": [
"-ObjC++",
"-DELECTRON_SAFE_BUILD=1"
],
"OTHER_LDFLAGS": [
"-framework AppKit",
"-Wl,-no_compact_unwind"
],
"GCC_SYMBOLS_PRIVATE_EXTERN": "YES",
"CLANG_ENABLE_OBJC_ARC": "YES"
},
"link_settings": {
"libraries": [
"-framework AVFoundation",
"-framework CoreMedia",
"-framework CoreVideo",
"-framework Foundation",
"-framework AppKit",
"-framework ScreenCaptureKit",
"-framework ApplicationServices",
"-framework Carbon",
"-framework Accessibility",
"-framework CoreAudio"
]
},
"defines": [
"NAPI_DISABLE_CPP_EXCEPTIONS",
"ELECTRON_SAFE_BUILD=1",
"NODE_ADDON_API_DISABLE_DEPRECATED"
],
"conditions": [
["OS=='mac'", {
"xcode_settings": {
"CLANG_CXX_LANGUAGE_STANDARD": "c++17",
"WARNING_CFLAGS": [
"-Wno-deprecated-declarations",
"-Wno-unused-variable"
]
}
}]
]
}
]
}