forked from Streampunk/naudiodon
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbinding.gyp
More file actions
117 lines (117 loc) · 3.25 KB
/
binding.gyp
File metadata and controls
117 lines (117 loc) · 3.25 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"targets": [
{
"target_name": "node_pa",
"sources": [
"src/node_pa.cc",
"src/GetDevices.cc",
"src/AudioIn.cc",
"src/AudioOut.cc",
"src/common.cc"
],
"include_dirs": [
"<!(node -e \"require('nan')\")", "portaudio/include"
],
"conditions" : [
[
'OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_RTTI': 'YES',
'MACOSX_DEPLOYMENT_TARGET': '10.7',
'OTHER_CPLUSPLUSFLAGS': [
'-std=c++11',
'-stdlib=libc++',
'-fexceptions'
],
'OTHER_LDFLAGS': [
"-Wl,-rpath,<@(module_root_dir)/build/Release"
]
},
"link_settings": {
"libraries": [
"<@(module_root_dir)/build/Release/libportaudio.dylib"
]
},
"copies": [
{
"destination": "build/Release/",
"files": [
"<!@(ls -1 portaudio/bin/libportaudio.dylib)"
]
}
]
},
],
[
'OS=="win"', {
"configurations": {
"Release": {
"msvs_settings": {
"VCCLCompilerTool": {
"RuntimeTypeInfo": "true",
"ExceptionHandling": 1
}
}
}
},
"libraries": [
"-l../portaudio/bin/portaudio_x64.lib"
],
"copies": [
{
"destination": "build/Release",
"files": [
"portaudio/bin/portaudio_x64.dll"
]
}
]
},
],
[
'OS=="linux"', {
"conditions": [
['target_arch=="arm"', {
"link_settings": {
"libraries": [
"<@(module_root_dir)/build/Release/libportaudio.so.2"
],
"ldflags": [
"-L<@(module_root_dir)/build/Release",
"-Wl,-rpath,<@(module_root_dir)/build/Release"
]
},
"copies": [
{
"destination": "build/Release/",
"files": [
"<@(module_root_dir)/portaudio/bin_armhf/libportaudio.so.2"
]
}
]
},
{ # ia32 or x64
"link_settings": {
"libraries": [
"<@(module_root_dir)/build/Release/libportaudio.so.2"
],
"ldflags": [
"-L<@(module_root_dir)/build/Release",
"-Wl,-rpath,<@(module_root_dir)/build/Release"
]
},
"copies": [
{
"destination": "build/Release/",
"files": [
"<@(module_root_dir)/portaudio/bin/libportaudio.so.2"
]
}
]
}]
]
}
]
]
}
]
}