-
Notifications
You must be signed in to change notification settings - Fork 67
/
binding.gyp
83 lines (82 loc) · 2.06 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
'targets': [
{
'target_name': 'NodeCoreAudio',
'sources': [
'NodeCoreAudio/AudioEngine.cpp',
'NodeCoreAudio/NodeCoreAudio.cpp',
],
'include_dirs': [
"<!(node -e \"require('nan')\")",
'<(module_root_dir)/NodeCoreAudio/',
'<(module_root_dir)/portaudio/'
],
"conditions" : [
[
'OS=="linux"', {
"libraries" : [
'<(module_root_dir)/gyp/lib/libportaudio.a'
],
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'cflags_cc': [ '-std=c++0x' ]
}
],
[
'OS=="mac"', {
"libraries" : [
'<(module_root_dir)/gyp/lib/libportaudio.a',
'/Library/Frameworks/CoreAudio.framework',
'/Library/Frameworks/AudioToolbox.framework',
'/Library/Frameworks/AudioUnit.framework',
'/Library/Frameworks/CoreServices.framework',
'/Library/Frameworks/Carbon.framework'
],
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'cflags_cc': [ '-std=c++0x' ]
}
],
[
'OS=="win"', {
"conditions": [
[
'target_arch=="ia32"', {
"libraries" : [
'<(module_root_dir)/gyp/lib/win32/portaudio_x86.lib'
],
'copies': [
{
'destination': '<(module_root_dir)/build/Release/',
'files': [
'<(module_root_dir)/gyp/lib/win32/portaudio_x86.dll',
'<(module_root_dir)/gyp/lib/win32/portaudio_x86.lib',
]
}
]
}
],
[
'target_arch=="x64"', {
"libraries" : [
'<(module_root_dir)/gyp/lib/win64/portaudio_x64.lib'
],
'copies': [
{
'destination': '<(module_root_dir)/build/Release/',
'files': [
'<(module_root_dir)/gyp/lib/win64/portaudio_x64.dll',
'<(module_root_dir)/gyp/lib/win64/portaudio_x64.lib',
]
}
]
}
]
],
"include_dirs" : [ "gyp/include" ]
}
]
]
}
]
}