OLD | NEW |
| (Empty) |
1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | |
2 # | |
3 # Use of this source code is governed by a BSD-style license | |
4 # that can be found in the LICENSE file in the root of the source | |
5 # tree. An additional intellectual property rights grant can be found | |
6 # in the file PATENTS. All contributing project authors may | |
7 # be found in the AUTHORS file in the root of the source tree. | |
8 | |
9 { | |
10 'includes': [ | |
11 '../../build/common.gypi', | |
12 'audio_network_adaptor/audio_network_adaptor.gypi', | |
13 'codecs/interfaces.gypi', | |
14 'codecs/cng/cng.gypi', | |
15 'codecs/g711/g711.gypi', | |
16 'codecs/g722/g722.gypi', | |
17 'codecs/ilbc/ilbc.gypi', | |
18 'codecs/isac/isac.gypi', | |
19 'codecs/isac/isac_common.gypi', | |
20 'codecs/isac/isacfix.gypi', | |
21 'codecs/pcm16b/pcm16b.gypi', | |
22 'codecs/red/red.gypi', | |
23 'neteq/neteq.gypi', | |
24 ], | |
25 'variables': { | |
26 'variables': { | |
27 'audio_codec_dependencies': [ | |
28 'cng', | |
29 'g711', | |
30 'pcm16b', | |
31 ], | |
32 'audio_codec_defines': [], | |
33 'conditions': [ | |
34 ['include_ilbc==1', { | |
35 'audio_codec_dependencies': ['ilbc',], | |
36 'audio_codec_defines': ['WEBRTC_CODEC_ILBC',], | |
37 }], | |
38 ['include_opus==1', { | |
39 'audio_codec_dependencies': ['webrtc_opus',], | |
40 'audio_codec_defines': ['WEBRTC_CODEC_OPUS',], | |
41 }], | |
42 ['build_with_mozilla==0', { | |
43 'conditions': [ | |
44 ['target_arch=="arm"', { | |
45 'audio_codec_dependencies': ['isac_fix',], | |
46 'audio_codec_defines': ['WEBRTC_CODEC_ISACFX',], | |
47 }, { | |
48 'audio_codec_dependencies': ['isac',], | |
49 'audio_codec_defines': ['WEBRTC_CODEC_ISAC',], | |
50 }], | |
51 ], | |
52 'audio_codec_dependencies': ['g722',], | |
53 'audio_codec_defines': ['WEBRTC_CODEC_G722',], | |
54 }], | |
55 ['build_with_mozilla==0 and build_with_chromium==0', { | |
56 'audio_codec_dependencies': ['red',], | |
57 'audio_codec_defines': ['WEBRTC_CODEC_RED',], | |
58 }], | |
59 ], | |
60 }, | |
61 'audio_codec_dependencies': '<(audio_codec_dependencies)', | |
62 'audio_codec_defines': '<(audio_codec_defines)', | |
63 'audio_coding_dependencies': [ | |
64 '<@(audio_codec_dependencies)', | |
65 '<(webrtc_root)/common.gyp:webrtc_common', | |
66 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', | |
67 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', | |
68 ], | |
69 'audio_coding_defines': '<(audio_codec_defines)', | |
70 }, | |
71 'targets': [ | |
72 { | |
73 'target_name': 'audio_decoder_factory_interface', | |
74 'type': 'static_library', | |
75 'dependencies': [ | |
76 '<(webrtc_root)/common.gyp:webrtc_common', | |
77 ], | |
78 'include_dirs': [ | |
79 '<(webrtc_root)', | |
80 ], | |
81 'direct_dependent_settings': { | |
82 'include_dirs': [ | |
83 '<(webrtc_root)', | |
84 ], | |
85 }, | |
86 'sources': [ | |
87 'codecs/audio_decoder_factory.h', | |
88 'codecs/audio_format.cc', | |
89 'codecs/audio_format.h', | |
90 'codecs/audio_format_conversion.cc', | |
91 'codecs/audio_format_conversion.h', | |
92 ], | |
93 }, | |
94 { | |
95 'target_name': 'builtin_audio_decoder_factory', | |
96 'type': 'static_library', | |
97 'defines': [ | |
98 '<@(audio_codec_defines)', | |
99 ], | |
100 'dependencies': [ | |
101 '<(webrtc_root)/common.gyp:webrtc_common', | |
102 '<@(audio_codec_dependencies)', | |
103 'audio_decoder_factory_interface', | |
104 ], | |
105 'include_dirs': [ | |
106 '<(webrtc_root)', | |
107 ], | |
108 'direct_dependent_settings': { | |
109 'include_dirs': [ | |
110 '<(webrtc_root)', | |
111 ], | |
112 }, | |
113 'sources': [ | |
114 'codecs/builtin_audio_decoder_factory.cc', | |
115 'codecs/builtin_audio_decoder_factory.h', | |
116 ], | |
117 }, | |
118 { | |
119 'target_name': 'rent_a_codec', | |
120 'type': 'static_library', | |
121 'defines': [ | |
122 '<@(audio_codec_defines)', | |
123 ], | |
124 'dependencies': [ | |
125 '<(webrtc_root)/common.gyp:webrtc_common', | |
126 '<@(audio_codec_dependencies)', | |
127 ], | |
128 'include_dirs': [ | |
129 '<(webrtc_root)', | |
130 ], | |
131 'direct_dependent_settings': { | |
132 'include_dirs': [ | |
133 '<(webrtc_root)', | |
134 ], | |
135 }, | |
136 'sources': [ | |
137 'acm2/acm_codec_database.cc', | |
138 'acm2/acm_codec_database.h', | |
139 'acm2/rent_a_codec.cc', | |
140 'acm2/rent_a_codec.h', | |
141 ], | |
142 }, | |
143 { | |
144 'target_name': 'audio_coding_module', | |
145 'type': 'static_library', | |
146 'defines': [ | |
147 '<@(audio_coding_defines)', | |
148 ], | |
149 'dependencies': [ | |
150 '<@(audio_coding_dependencies)', | |
151 '<(webrtc_root)/common.gyp:webrtc_common', | |
152 '<(webrtc_root)/webrtc.gyp:rtc_event_log_api', | |
153 'audio_network_adaptor', | |
154 'neteq', | |
155 'rent_a_codec', | |
156 ], | |
157 'include_dirs': [ | |
158 'include', | |
159 '../include', | |
160 '<(webrtc_root)', | |
161 ], | |
162 'direct_dependent_settings': { | |
163 'include_dirs': [ | |
164 'include', | |
165 '../include', | |
166 '<(webrtc_root)', | |
167 ], | |
168 }, | |
169 'conditions': [ | |
170 ['include_opus==1', { | |
171 'export_dependent_settings': ['webrtc_opus'], | |
172 }], | |
173 ], | |
174 'sources': [ | |
175 'acm2/acm_common_defs.h', | |
176 'acm2/acm_receiver.cc', | |
177 'acm2/acm_receiver.h', | |
178 'acm2/acm_resampler.cc', | |
179 'acm2/acm_resampler.h', | |
180 'acm2/audio_coding_module.cc', | |
181 'acm2/call_statistics.cc', | |
182 'acm2/call_statistics.h', | |
183 'acm2/codec_manager.cc', | |
184 'acm2/codec_manager.h', | |
185 'include/audio_coding_module.h', | |
186 'include/audio_coding_module_typedefs.h', | |
187 ], | |
188 }, | |
189 ], | |
190 'conditions': [ | |
191 ['include_opus==1', { | |
192 'includes': ['codecs/opus/opus.gypi',], | |
193 }], | |
194 ], | |
195 } | |
OLD | NEW |