This repository was archived by the owner on Jun 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbinding.gyp
More file actions
75 lines (75 loc) · 2.23 KB
/
binding.gyp
File metadata and controls
75 lines (75 loc) · 2.23 KB
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
{
'targets': [
{
'target_name': 'jsaudio',
'sources': ['src/addon.cc', 'src/jsaudio.cc', 'src/helpers.cc', 'src/stream.cc'],
'include_dirs': [
'<!(node -e "require(\'nan\')")',
'<(module_root_dir)/vendor/'
],
"conditions": [
[
'OS=="win"', {
"conditions": [
[
'target_arch=="ia32"', {
"libraries": [
'<(module_root_dir)/vendor/win/portaudio_x86.lib'
],
'copies': [
{
'destination': '<(module_root_dir)/build/Release/',
'files': [
'<(module_root_dir)/vendor/win/portaudio_x86.dll',
'<(module_root_dir)/vendor/win/portaudio_x86.lib',
]
}]
}
],
[
'target_arch=="x64"', {
"libraries": [
'<(module_root_dir)/vendor/win/portaudio_x64.lib'
],
'copies': [
{
'destination': '<(module_root_dir)/build/Release/',
'files': [
'<(module_root_dir)/vendor/win/portaudio_x64.dll',
'<(module_root_dir)/vendor/win/portaudio_x64.lib',
]
}]
}
]
],
"include_dirs": ["gyp/include"]
}
],
[
'OS=="mac"', {
"libraries" : [
'<(module_root_dir)/vendor/mac/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=="linux"', {
"libraries" : [
'<(module_root_dir)/vendor/linux/libportaudio.so'
],
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'cflags_cc': [ '-std=c++0x' ]
}
]
]
}]
}