blob: afcefbe97cc7e8e5f67de00d299eb0fe29ac5286 [file] [log] [blame]
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +00001# Copyright (c) 2012 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 'variables': {
11 'neteq_dependencies': [
12 'G711',
13 'G722',
14 'PCM16B',
15 'iLBC',
16 'iSAC',
17 'iSACFix',
18 'CNG',
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +000019 '<(DEPTH)/third_party/opus/opus.gyp:opus',
andrew@webrtc.org34235372013-04-30 23:43:26 +000020 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000021 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
22 ],
23 'neteq_defines': [],
24 'conditions': [
25 ['include_opus==1', {
26 'neteq_dependencies': ['webrtc_opus',],
27 'neteq_defines': ['WEBRTC_CODEC_OPUS',],
28 }],
29 ],
30 },
31 'targets': [
32 {
33 'target_name': 'NetEq4',
34 'type': 'static_library',
35 'dependencies': [
36 '<@(neteq_dependencies)',
37 ],
38 'defines': [
39 '<@(neteq_defines)',
40 ],
41 'include_dirs': [
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +000042 # Need Opus header files for the audio classifier.
43 '<(DEPTH)/third_party/opus/src/celt',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000044 ],
45 'direct_dependent_settings': {
46 'include_dirs': [
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +000047 # Need Opus header files for the audio classifier.
48 '<(DEPTH)/third_party/opus/src/celt',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000049 ],
50 },
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +000051 'export_dependent_settings': [
52 '<(DEPTH)/third_party/opus/opus.gyp:opus',
53 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000054 'sources': [
55 'interface/audio_decoder.h',
56 'interface/neteq.h',
57 'accelerate.cc',
58 'accelerate.h',
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +000059 'audio_classifier.cc',
60 'audio_classifier.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000061 'audio_decoder_impl.cc',
62 'audio_decoder_impl.h',
63 'audio_decoder.cc',
64 'audio_multi_vector.cc',
65 'audio_multi_vector.h',
66 'audio_vector.cc',
67 'audio_vector.h',
68 'background_noise.cc',
69 'background_noise.h',
70 'buffer_level_filter.cc',
71 'buffer_level_filter.h',
72 'comfort_noise.cc',
73 'comfort_noise.h',
74 'decision_logic.cc',
75 'decision_logic.h',
76 'decision_logic_fax.cc',
77 'decision_logic_fax.h',
78 'decision_logic_normal.cc',
79 'decision_logic_normal.h',
80 'decoder_database.cc',
81 'decoder_database.h',
82 'defines.h',
83 'delay_manager.cc',
84 'delay_manager.h',
85 'delay_peak_detector.cc',
86 'delay_peak_detector.h',
87 'dsp_helper.cc',
88 'dsp_helper.h',
89 'dtmf_buffer.cc',
90 'dtmf_buffer.h',
91 'dtmf_tone_generator.cc',
92 'dtmf_tone_generator.h',
93 'expand.cc',
94 'expand.h',
95 'merge.cc',
96 'merge.h',
97 'neteq_impl.cc',
98 'neteq_impl.h',
99 'neteq.cc',
100 'statistics_calculator.cc',
101 'statistics_calculator.h',
102 'normal.cc',
103 'normal.h',
104 'packet_buffer.cc',
105 'packet_buffer.h',
106 'payload_splitter.cc',
107 'payload_splitter.h',
108 'post_decode_vad.cc',
109 'post_decode_vad.h',
110 'preemptive_expand.cc',
111 'preemptive_expand.h',
112 'random_vector.cc',
113 'random_vector.h',
114 'rtcp.cc',
115 'rtcp.h',
116 'sync_buffer.cc',
117 'sync_buffer.h',
118 'timestamp_scaler.cc',
119 'timestamp_scaler.h',
120 'time_stretch.cc',
121 'time_stretch.h',
122 ],
123 },
124 ], # targets
125 'conditions': [
126 ['include_tests==1', {
127 'includes': ['neteq_tests.gypi',],
128 'targets': [
129 {
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000130 'target_name': 'audio_decoder_unittests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000131 'type': '<(gtest_target_type)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000132 'dependencies': [
133 '<@(neteq_dependencies)',
134 '<(DEPTH)/testing/gtest.gyp:gtest',
andrew@webrtc.org34235372013-04-30 23:43:26 +0000135 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000136 '<(webrtc_root)/test/test.gyp:test_support_main',
137 ],
138 'defines': [
139 'AUDIO_DECODER_UNITTEST',
140 'WEBRTC_CODEC_G722',
141 'WEBRTC_CODEC_ILBC',
142 'WEBRTC_CODEC_ISACFX',
143 'WEBRTC_CODEC_ISAC',
144 'WEBRTC_CODEC_PCM16',
145 '<@(neteq_defines)',
146 ],
147 'sources': [
148 'audio_decoder_impl.cc',
149 'audio_decoder_impl.h',
150 'audio_decoder_unittest.cc',
151 'audio_decoder.cc',
152 'interface/audio_decoder.h',
153 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000154 'conditions': [
155 # TODO(henrike): remove build_with_chromium==1 when the bots are
156 # using Chromium's buildbots.
157 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
158 'dependencies': [
159 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
160 ],
161 }],
162 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000163 }, # audio_decoder_unittests
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000164
165 {
166 'target_name': 'neteq_unittest_tools',
167 'type': 'static_library',
168 'dependencies': [
169 '<(DEPTH)/testing/gmock.gyp:gmock',
170 '<(DEPTH)/testing/gtest.gyp:gtest',
henrik.lundin@webrtc.orga366e812014-01-10 08:24:04 +0000171 'PCM16B', # Needed by neteq_performance_test.
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000172 ],
173 'direct_dependent_settings': {
174 'include_dirs': [
175 'tools',
176 ],
177 },
178 'include_dirs': [
179 'tools',
180 ],
181 'sources': [
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000182 'tools/audio_loop.cc',
183 'tools/audio_loop.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000184 'tools/input_audio_file.cc',
185 'tools/input_audio_file.h',
henrik.lundin@webrtc.orga366e812014-01-10 08:24:04 +0000186 'tools/neteq_performance_test.cc',
187 'tools/neteq_performance_test.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000188 'tools/rtp_generator.cc',
189 'tools/rtp_generator.h',
190 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000191 }, # neteq_unittest_tools
192 ], # targets
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000193 'conditions': [
194 # TODO(henrike): remove build_with_chromium==1 when the bots are using
195 # Chromium's buildbots.
196 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
197 'targets': [
198 {
199 'target_name': 'audio_decoder_unittests_apk_target',
200 'type': 'none',
201 'dependencies': [
202 '<(apk_tests_path):audio_decoder_unittests_apk',
203 ],
204 },
205 ],
206 }],
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000207 ['test_isolation_mode != "noop"', {
208 'targets': [
209 {
210 'target_name': 'audio_decoder_unittests_run',
211 'type': 'none',
212 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000213 'audio_decoder_unittests',
214 ],
215 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000216 '../../../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000217 'audio_decoder_unittests.isolate',
218 ],
219 'sources': [
220 'audio_decoder_unittests.isolate',
221 ],
222 },
223 ],
224 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000225 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000226 }], # include_tests
227 ], # conditions
228}