blob: 1a01a342d45f43a3f1376c402b64dfa27c1cd9b4 [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',
andrew@webrtc.org34235372013-04-30 23:43:26 +000019 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000020 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
21 ],
22 'neteq_defines': [],
23 'conditions': [
24 ['include_opus==1', {
25 'neteq_dependencies': ['webrtc_opus',],
26 'neteq_defines': ['WEBRTC_CODEC_OPUS',],
27 }],
28 ],
29 },
30 'targets': [
31 {
32 'target_name': 'NetEq4',
33 'type': 'static_library',
34 'dependencies': [
35 '<@(neteq_dependencies)',
36 ],
37 'defines': [
38 '<@(neteq_defines)',
39 ],
40 'include_dirs': [
41 'interface',
42 ],
43 'direct_dependent_settings': {
44 'include_dirs': [
45 'interface',
46 ],
47 },
48 'sources': [
49 'interface/audio_decoder.h',
50 'interface/neteq.h',
51 'accelerate.cc',
52 'accelerate.h',
53 'audio_decoder_impl.cc',
54 'audio_decoder_impl.h',
55 'audio_decoder.cc',
56 'audio_multi_vector.cc',
57 'audio_multi_vector.h',
58 'audio_vector.cc',
59 'audio_vector.h',
60 'background_noise.cc',
61 'background_noise.h',
62 'buffer_level_filter.cc',
63 'buffer_level_filter.h',
64 'comfort_noise.cc',
65 'comfort_noise.h',
66 'decision_logic.cc',
67 'decision_logic.h',
68 'decision_logic_fax.cc',
69 'decision_logic_fax.h',
70 'decision_logic_normal.cc',
71 'decision_logic_normal.h',
72 'decoder_database.cc',
73 'decoder_database.h',
74 'defines.h',
75 'delay_manager.cc',
76 'delay_manager.h',
77 'delay_peak_detector.cc',
78 'delay_peak_detector.h',
79 'dsp_helper.cc',
80 'dsp_helper.h',
81 'dtmf_buffer.cc',
82 'dtmf_buffer.h',
83 'dtmf_tone_generator.cc',
84 'dtmf_tone_generator.h',
85 'expand.cc',
86 'expand.h',
87 'merge.cc',
88 'merge.h',
89 'neteq_impl.cc',
90 'neteq_impl.h',
91 'neteq.cc',
92 'statistics_calculator.cc',
93 'statistics_calculator.h',
94 'normal.cc',
95 'normal.h',
96 'packet_buffer.cc',
97 'packet_buffer.h',
98 'payload_splitter.cc',
99 'payload_splitter.h',
100 'post_decode_vad.cc',
101 'post_decode_vad.h',
102 'preemptive_expand.cc',
103 'preemptive_expand.h',
104 'random_vector.cc',
105 'random_vector.h',
106 'rtcp.cc',
107 'rtcp.h',
108 'sync_buffer.cc',
109 'sync_buffer.h',
110 'timestamp_scaler.cc',
111 'timestamp_scaler.h',
112 'time_stretch.cc',
113 'time_stretch.h',
114 ],
115 },
116 ], # targets
117 'conditions': [
118 ['include_tests==1', {
119 'includes': ['neteq_tests.gypi',],
120 'targets': [
121 {
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000122 'target_name': 'audio_decoder_unittests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000123 'type': '<(gtest_target_type)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000124 'dependencies': [
125 '<@(neteq_dependencies)',
126 '<(DEPTH)/testing/gtest.gyp:gtest',
andrew@webrtc.org34235372013-04-30 23:43:26 +0000127 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000128 '<(webrtc_root)/test/test.gyp:test_support_main',
129 ],
130 'defines': [
131 'AUDIO_DECODER_UNITTEST',
132 'WEBRTC_CODEC_G722',
133 'WEBRTC_CODEC_ILBC',
134 'WEBRTC_CODEC_ISACFX',
135 'WEBRTC_CODEC_ISAC',
136 'WEBRTC_CODEC_PCM16',
137 '<@(neteq_defines)',
138 ],
139 'sources': [
140 'audio_decoder_impl.cc',
141 'audio_decoder_impl.h',
142 'audio_decoder_unittest.cc',
143 'audio_decoder.cc',
144 'interface/audio_decoder.h',
145 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000146 'conditions': [
147 # TODO(henrike): remove build_with_chromium==1 when the bots are
148 # using Chromium's buildbots.
149 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
150 'dependencies': [
151 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
152 ],
153 }],
154 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000155 }, # audio_decoder_unittests
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000156
157 {
158 'target_name': 'neteq_unittest_tools',
159 'type': 'static_library',
160 'dependencies': [
161 '<(DEPTH)/testing/gmock.gyp:gmock',
162 '<(DEPTH)/testing/gtest.gyp:gtest',
163 '<(webrtc_root)/test/test.gyp:test_support_main',
164 ],
165 'direct_dependent_settings': {
166 'include_dirs': [
167 'tools',
168 ],
169 },
170 'include_dirs': [
171 'tools',
172 ],
173 'sources': [
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000174 'tools/audio_loop.cc',
175 'tools/audio_loop.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000176 'tools/input_audio_file.cc',
177 'tools/input_audio_file.h',
178 'tools/rtp_generator.cc',
179 'tools/rtp_generator.h',
180 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000181 }, # neteq_unittest_tools
182 ], # targets
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000183 'conditions': [
184 # TODO(henrike): remove build_with_chromium==1 when the bots are using
185 # Chromium's buildbots.
186 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
187 'targets': [
188 {
189 'target_name': 'audio_decoder_unittests_apk_target',
190 'type': 'none',
191 'dependencies': [
192 '<(apk_tests_path):audio_decoder_unittests_apk',
193 ],
194 },
195 ],
196 }],
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000197 ['test_isolation_mode != "noop"', {
198 'targets': [
199 {
200 'target_name': 'audio_decoder_unittests_run',
201 'type': 'none',
202 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000203 'audio_decoder_unittests',
204 ],
205 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000206 '../../../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000207 'audio_decoder_unittests.isolate',
208 ],
209 'sources': [
210 'audio_decoder_unittests.isolate',
211 ],
212 },
213 ],
214 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000215 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000216 }], # include_tests
217 ], # conditions
218}