-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbinding.gyp
More file actions
38 lines (38 loc) · 788 Bytes
/
binding.gyp
File metadata and controls
38 lines (38 loc) · 788 Bytes
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
{
"targets": [{
"target_name": "speaker",
"sources": ["native/speaker.c"],
"include_dirs": ["native"],
"cflags": ["-std=c99", "-O2"],
"xcode_settings": {
"OTHER_CFLAGS": ["-std=c99", "-O2"],
"MACOSX_DEPLOYMENT_TARGET": "10.13"
},
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": ["/O2"]
}
},
"conditions": [
["OS=='mac'", {
"libraries": [
"-framework CoreAudio",
"-framework AudioToolbox",
"-framework CoreFoundation"
]
}],
["OS=='linux'", {
"libraries": [
"-lpthread",
"-lm",
"-ldl"
]
}],
["OS=='win'", {
"libraries": [
"ole32.lib"
]
}]
]
}]
}