blob: 41fdb31ea6b0fcd8d0f0f5616d386b36efef1757 [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',
pbos@webrtc.org57eb8582013-11-11 10:20:27 +000042 '<(webrtc_root)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000043 ],
44 'direct_dependent_settings': {
45 'include_dirs': [
46 'interface',
pbos@webrtc.org57eb8582013-11-11 10:20:27 +000047 '<(webrtc_root)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000048 ],
49 },
50 'sources': [
51 'interface/audio_decoder.h',
52 'interface/neteq.h',
53 'accelerate.cc',
54 'accelerate.h',
55 'audio_decoder_impl.cc',
56 'audio_decoder_impl.h',
57 'audio_decoder.cc',
58 'audio_multi_vector.cc',
59 'audio_multi_vector.h',
60 'audio_vector.cc',
61 'audio_vector.h',
62 'background_noise.cc',
63 'background_noise.h',
64 'buffer_level_filter.cc',
65 'buffer_level_filter.h',
66 'comfort_noise.cc',
67 'comfort_noise.h',
68 'decision_logic.cc',
69 'decision_logic.h',
70 'decision_logic_fax.cc',
71 'decision_logic_fax.h',
72 'decision_logic_normal.cc',
73 'decision_logic_normal.h',
74 'decoder_database.cc',
75 'decoder_database.h',
76 'defines.h',
77 'delay_manager.cc',
78 'delay_manager.h',
79 'delay_peak_detector.cc',
80 'delay_peak_detector.h',
81 'dsp_helper.cc',
82 'dsp_helper.h',
83 'dtmf_buffer.cc',
84 'dtmf_buffer.h',
85 'dtmf_tone_generator.cc',
86 'dtmf_tone_generator.h',
87 'expand.cc',
88 'expand.h',
89 'merge.cc',
90 'merge.h',
91 'neteq_impl.cc',
92 'neteq_impl.h',
93 'neteq.cc',
94 'statistics_calculator.cc',
95 'statistics_calculator.h',
96 'normal.cc',
97 'normal.h',
98 'packet_buffer.cc',
99 'packet_buffer.h',
100 'payload_splitter.cc',
101 'payload_splitter.h',
102 'post_decode_vad.cc',
103 'post_decode_vad.h',
104 'preemptive_expand.cc',
105 'preemptive_expand.h',
106 'random_vector.cc',
107 'random_vector.h',
108 'rtcp.cc',
109 'rtcp.h',
110 'sync_buffer.cc',
111 'sync_buffer.h',
112 'timestamp_scaler.cc',
113 'timestamp_scaler.h',
114 'time_stretch.cc',
115 'time_stretch.h',
116 ],
117 },
118 ], # targets
119 'conditions': [
120 ['include_tests==1', {
121 'includes': ['neteq_tests.gypi',],
122 'targets': [
123 {
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000124 'target_name': 'audio_decoder_unittests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000125 'type': '<(gtest_target_type)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000126 'dependencies': [
127 '<@(neteq_dependencies)',
128 '<(DEPTH)/testing/gtest.gyp:gtest',
andrew@webrtc.org34235372013-04-30 23:43:26 +0000129 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000130 '<(webrtc_root)/test/test.gyp:test_support_main',
131 ],
132 'defines': [
133 'AUDIO_DECODER_UNITTEST',
134 'WEBRTC_CODEC_G722',
135 'WEBRTC_CODEC_ILBC',
136 'WEBRTC_CODEC_ISACFX',
137 'WEBRTC_CODEC_ISAC',
138 'WEBRTC_CODEC_PCM16',
139 '<@(neteq_defines)',
140 ],
141 'sources': [
142 'audio_decoder_impl.cc',
143 'audio_decoder_impl.h',
144 'audio_decoder_unittest.cc',
145 'audio_decoder.cc',
146 'interface/audio_decoder.h',
147 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000148 'conditions': [
149 # TODO(henrike): remove build_with_chromium==1 when the bots are
150 # using Chromium's buildbots.
151 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
152 'dependencies': [
153 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
154 ],
155 }],
156 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000157 }, # audio_decoder_unittests
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000158
159 {
160 'target_name': 'neteq_unittest_tools',
161 'type': 'static_library',
162 'dependencies': [
163 '<(DEPTH)/testing/gmock.gyp:gmock',
164 '<(DEPTH)/testing/gtest.gyp:gtest',
165 '<(webrtc_root)/test/test.gyp:test_support_main',
166 ],
167 'direct_dependent_settings': {
168 'include_dirs': [
169 'tools',
170 ],
171 },
172 'include_dirs': [
173 'tools',
174 ],
175 'sources': [
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000176 'tools/audio_loop.cc',
177 'tools/audio_loop.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000178 'tools/input_audio_file.cc',
179 'tools/input_audio_file.h',
180 'tools/rtp_generator.cc',
181 'tools/rtp_generator.h',
182 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000183 }, # neteq_unittest_tools
184 ], # targets
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000185 'conditions': [
186 # TODO(henrike): remove build_with_chromium==1 when the bots are using
187 # Chromium's buildbots.
188 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
189 'targets': [
190 {
191 'target_name': 'audio_decoder_unittests_apk_target',
192 'type': 'none',
193 'dependencies': [
194 '<(apk_tests_path):audio_decoder_unittests_apk',
195 ],
196 },
197 ],
198 }],
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000199 ['test_isolation_mode != "noop"', {
200 'targets': [
201 {
202 'target_name': 'audio_decoder_unittests_run',
203 'type': 'none',
204 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000205 'audio_decoder_unittests',
206 ],
207 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000208 '../../../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000209 'audio_decoder_unittests.isolate',
210 ],
211 'sources': [
212 'audio_decoder_unittests.isolate',
213 ],
214 },
215 ],
216 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000217 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000218 }], # include_tests
219 ], # conditions
220}