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
118
|
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'conditions': [
['(OS=="android" or chromeos==1) and target_arch=="arm"', {
'use_opus_fixed_point%': 1,
'use_opus_arm_optimization%': 1,
}, {
'use_opus_fixed_point%': 0,
'use_opus_arm_optimization%': 0,
}],
],
},
'targets': [
{
'target_name': 'opus',
'type': 'static_library',
'defines': [
'OPUS_BUILD',
'OPUS_EXPORT=',
],
'include_dirs': [
'src/celt',
'src/include',
'src/silk',
],
'direct_dependent_settings': {
'include_dirs': [
'src/include',
],
},
'includes': ['opus_srcs.gypi', ],
'conditions': [
['OS!="win"', {
'defines': [
'HAVE_LRINT',
'HAVE_LRINTF',
'VAR_ARRAYS',
],
}, {
'defines': [
'USE_ALLOCA',
'inline=__inline',
],
'msvs_disabled_warnings': [
4305, # Disable truncation warning in celt/pitch.c .
4334, # Disable 32-bit shift warning in src/opus_encoder.c .
],
}],
['use_opus_fixed_point==0', {
'include_dirs': [
'src/silk/float',
],
'sources/': [
['exclude', '/fixed/[^/]*_FIX.(h|c)$'],
],
}, {
'defines': [
'FIXED_POINT',
],
'include_dirs': [
'src/silk/fixed',
],
'sources/': [
['exclude', '/float/[^/]*_FLP.(h|c)$'],
],
'conditions': [
['use_opus_arm_optimization==1', {
'defines': [
'OPUS_ARM_ASM',
'OPUS_ARM_INLINE_ASM',
'OPUS_ARM_INLINE_EDSP',
'OPUS_ARM_MAY_HAVE_EDSP',
'OPUS_ARM_MAY_HAVE_MEDIA',
'OPUS_ARM_MAY_HAVE_NEON',
'OPUS_HAVE_RTCD',
],
'includes': [
'opus_srcs_arm.gypi',
],
}],
],
}],
],
}, # target opus
{
'target_name': 'opus_demo',
'type': 'executable',
'dependencies': [
'opus'
],
'conditions': [
['OS == "win"', {
'defines': [
'inline=__inline',
],
}],
['OS=="android"', {
'link_settings': {
'libraries': [
'-llog',
],
},
}]
],
'sources': [
'src/src/opus_demo.c',
],
'include_dirs': [
'src/celt',
'src/silk',
],
}, # target opus_demo
]
}
|