-
Notifications
You must be signed in to change notification settings - Fork 3
/
binding.gyp
46 lines (46 loc) · 1.04 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
{
"includes": [
"./config.gypi"
],
"targets": [
{
'target_name': 'krypton',
'cflags': [
'-pthread',
'-fno-exceptions',
'-fno-strict-aliasing',
'-Wall',
'-Wno-unused-parameter',
'-Wno-missing-field-initializers',
'-Wextra',
'-pipe',
'-fno-ident',
'-fdata-sections',
'-ffunction-sections',
'-fPIC',
'-O3',
],
'include_dirs': [
"<!(node -e \"require('nan')\")",
],
'sources': [
'src/main.cc',
'src/lame.cc',
'src/opus.cc',
'src/pcm.cc',
'src/pcm-avx2.cc',
'src/pcm-avx512.cc',
'src/pcm-neon.cc',
'src/sodium.cc',
],
'xcode_settings': {
'GCC_ENABLE_CPP_RTTI': 'YES',
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'MACOSX_DEPLOYMENT_TARGET':'10.10',
'CLANG_CXX_LIBRARY': 'libc++',
'CLANG_CXX_LANGUAGE_STANDARD':'c++11',
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
},
},
],
}