-
Notifications
You must be signed in to change notification settings - Fork 38
/
binding.gyp
60 lines (60 loc) · 1.34 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
{
'targets': [
{
'target_name': 'overlay_window',
'sources': [
'src/lib/addon.c',
'src/lib/napi_helpers.c'
],
'include_dirs': [
'src/lib'
],
'conditions': [
['OS=="win"', {
'defines': [
'WIN32_LEAN_AND_MEAN'
],
'link_settings': {
'libraries': [
'oleacc.lib'
]
},
'sources': [
'src/lib/windows.c',
]
}],
['OS=="linux"', {
'defines': [
'_GNU_SOURCE'
],
'link_settings': {
'libraries': [
'-lxcb', '-lpthread'
]
},
'cflags': ['-std=c99', '-pedantic', '-Wall', '-pthread'],
'sources': [
'src/lib/x11.c',
]
}],
['OS=="mac"', {
'link_settings': {
'libraries': [
'-lpthread', '-framework AppKit', '-framework ApplicationServices'
]
},
'xcode_settings': {
'OTHER_CFLAGS': [
'-fobjc-arc'
]
},
'cflags': ['-std=c99', '-pedantic', '-Wall', '-pthread'],
'sources': [
'src/lib/mac.mm',
'src/lib/mac/OWFullscreenObserver.mm'
]
}]
]
}
]
}