forked from felixrieseberg/macos-notification-state
-
Notifications
You must be signed in to change notification settings - Fork 6
/
binding.gyp
40 lines (40 loc) · 1.24 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
{
"targets": [
{
"target_name": "notificationstate",
"sources": [],
"conditions": [
['OS=="mac"', {
"sources": [
"lib/notificationstate.cc",
"lib/notificationstate-query.cc",
"lib/do-not-disturb.mm",
"lib/macos-version.mm",
"lib/dnd/old-macos-dnd.mm",
"lib/dnd/bigsur-macos-dnd.mm",
"lib/dnd/monterey-macos-dnd.mm"
],
"xcode_settings": {
"OTHER_CPLUSPLUSFLAGS": ["-std=c++17", "-stdlib=libc++", "-mmacosx-version-min=10.7"],
"OTHER_LDFLAGS": ["-framework CoreFoundation -framework CoreGraphics"]
}
}],
]
},
{
"target_name": "focuscenter",
"sources": [],
"conditions": [
['OS=="mac"', {
"sources": ["lib/focus-center.mm"],
'include_dirs' : [ "<!@(node -p \"require('node-addon-api').include\")" ],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ],
"xcode_settings": {
"OTHER_CPLUSPLUSFLAGS": ["-std=c++17", "-stdlib=libc++", "-mmacosx-version-min=10.7"],
"OTHER_LDFLAGS": ["-framework Foundation -weak_framework Intents"]
}
}],
]
}
]
}