-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbinding.gyp
61 lines (61 loc) · 1.49 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
61
{
"targets": [
{
"target_name": "soundengine",
"sources": [
"src/SoundEngine.cpp",
"src/WindowFunction.cpp",
"third_party/readerwriterqueue/readerwriterqueue.h"
],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"<(module_root_dir)/src",
"<(module_root_dir)/third_party/readerwriterqueue"
],
'conditions' : [
[
'OS=="mac"', {
"xcode_settings": {
"OTHER_CPLUSPLUSFLAGS" : [ "-std=c++11", "-stdlib=libc++" ],
"OTHER_LDFLAGS": [ "-stdlib=libc++" ],
"MACOSX_DEPLOYMENT_TARGET": "10.7"
},
'include_dirs': [
'<!@(pkg-config portaudio-2.0 --cflags-only-I)',
'<!@(pkg-config fftw3 --cflags-only-I)'
],
"libraries": [
'<!@(pkg-config portaudio-2.0 --libs-only-l)',
'<!@(pkg-config fftw3 --libs)',
'/Library/Frameworks/AudioToolbox.framework',
'/Library/Frameworks/AudioUnit.framework',
'/Library/Frameworks/Carbon.framework'
],
}
],
[
'OS=="linux"', {
'include_dirs': [
'<!@(pkg-config portaudio-2.0 --cflags-only-I)',
'<!@(pkg-config fftw3 --cflags-only-I)'
],
'libraries' : [
'<!@(pkg-config portaudio-2.0 --libs)',
'<!@(pkg-config fftw3 --libs)'
],
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'cflags_cc': [ '-std=c++0x' ]
}
],
[
'OS=="win"', {}
]
],
"cflags": [
"-std=c++11"
],
"cflags_cc!": [ '-fno-rtti' ]
}
]
}