OLD | NEW |
1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 { | 9 { |
10 'variables': { | 10 'variables': { |
11 'codecs': [ | 11 'codecs': [ |
12 'cng', | 12 'cng', |
13 'g711', | 13 'g711', |
| 14 'g722', |
| 15 'ilbc', |
| 16 'isac', |
| 17 'isac_fix', |
14 'pcm16b', | 18 'pcm16b', |
15 ], | 19 ], |
16 'neteq_defines': [], | 20 'neteq_defines': [], |
17 'conditions': [ | 21 'conditions': [ |
18 ['include_opus==1', { | 22 ['include_opus==1', { |
19 'codecs': ['webrtc_opus',], | 23 'codecs': ['webrtc_opus',], |
20 'neteq_defines': ['WEBRTC_CODEC_OPUS',], | 24 'neteq_defines': ['WEBRTC_CODEC_OPUS',], |
21 }], | 25 }], |
22 ['build_with_mozilla==0', { | |
23 'conditions': [ | |
24 ['target_arch=="arm"', { | |
25 'codecs': ['isac_fix',], | |
26 'neteq_defines': ['WEBRTC_CODEC_ISACFX',], | |
27 }, { | |
28 'codecs': ['isac',], | |
29 'neteq_defines': ['WEBRTC_CODEC_ISAC',], | |
30 }], | |
31 ], | |
32 'codecs': ['g722',], | |
33 'neteq_defines': ['WEBRTC_CODEC_G722',], | |
34 }], | |
35 ['build_with_mozilla==0 and build_with_chromium==0', { | |
36 'codecs': ['ilbc',], | |
37 'neteq_defines': ['WEBRTC_CODEC_ILBC',], | |
38 }], | |
39 ], | 26 ], |
40 'neteq_dependencies': [ | 27 'neteq_dependencies': [ |
41 '<@(codecs)', | 28 '<@(codecs)', |
42 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', | 29 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
43 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', | 30 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', |
44 'audio_decoder_interface', | 31 'audio_decoder_interface', |
45 ], | 32 ], |
46 }, | 33 }, |
47 'targets': [ | 34 'targets': [ |
48 { | 35 { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 ], # targets | 113 ], # targets |
127 'conditions': [ | 114 'conditions': [ |
128 ['include_tests==1', { | 115 ['include_tests==1', { |
129 'includes': ['neteq_tests.gypi',], | 116 'includes': ['neteq_tests.gypi',], |
130 'targets': [ | 117 'targets': [ |
131 { | 118 { |
132 'target_name': 'audio_decoder_unittests', | 119 'target_name': 'audio_decoder_unittests', |
133 'type': '<(gtest_target_type)', | 120 'type': '<(gtest_target_type)', |
134 'dependencies': [ | 121 'dependencies': [ |
135 '<@(codecs)', | 122 '<@(codecs)', |
136 'g722', | |
137 'ilbc', | |
138 'isac', | |
139 'isac_fix', | |
140 'audio_decoder_interface', | 123 'audio_decoder_interface', |
141 'neteq_unittest_tools', | 124 'neteq_unittest_tools', |
142 '<(DEPTH)/testing/gtest.gyp:gtest', | 125 '<(DEPTH)/testing/gtest.gyp:gtest', |
143 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', | 126 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
144 '<(webrtc_root)/test/test.gyp:test_support_main', | 127 '<(webrtc_root)/test/test.gyp:test_support_main', |
145 ], | 128 ], |
146 'defines': [ | 129 'defines': [ |
| 130 'AUDIO_DECODER_UNITTEST', |
| 131 'WEBRTC_CODEC_G722', |
| 132 'WEBRTC_CODEC_ILBC', |
| 133 'WEBRTC_CODEC_ISACFX', |
| 134 'WEBRTC_CODEC_ISAC', |
147 '<@(neteq_defines)', | 135 '<@(neteq_defines)', |
148 ], | 136 ], |
149 'sources': [ | 137 'sources': [ |
150 'audio_decoder_impl.cc', | 138 'audio_decoder_impl.cc', |
151 'audio_decoder_impl.h', | 139 'audio_decoder_impl.h', |
152 'audio_decoder_unittest.cc', | 140 'audio_decoder_unittest.cc', |
153 ], | 141 ], |
154 'conditions': [ | 142 'conditions': [ |
155 ['OS=="android"', { | 143 ['OS=="android"', { |
156 'dependencies': [ | 144 'dependencies': [ |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 'sources': [ | 213 'sources': [ |
226 'audio_decoder_unittests.isolate', | 214 'audio_decoder_unittests.isolate', |
227 ], | 215 ], |
228 }, | 216 }, |
229 ], | 217 ], |
230 }], | 218 }], |
231 ], | 219 ], |
232 }], # include_tests | 220 }], # include_tests |
233 ], # conditions | 221 ], # conditions |
234 } | 222 } |
OLD | NEW |