blob: ccf30ee0436905fffda4bbdc3ee500e72cc824c7 [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': {
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +000011 'codecs': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000012 'G711',
13 'G722',
14 'PCM16B',
15 'iLBC',
16 'iSAC',
17 'iSACFix',
18 'CNG',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000019 ],
20 'neteq_defines': [],
21 'conditions': [
22 ['include_opus==1', {
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +000023 'codecs': ['webrtc_opus',],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000024 'neteq_defines': ['WEBRTC_CODEC_OPUS',],
25 }],
26 ],
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +000027 'neteq_dependencies': [
28 '<@(codecs)',
kjellander@webrtc.org2b69eab2015-02-09 10:01:17 +000029 '<(opus_dir)/opus.gyp:opus',
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +000030 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000031 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +000032 'audio_decoder_interface',
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +000033 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000034 },
35 'targets': [
36 {
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +000037 'target_name': 'neteq',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000038 'type': 'static_library',
39 'dependencies': [
40 '<@(neteq_dependencies)',
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000041 '<(webrtc_root)/common.gyp:webrtc_common',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000042 ],
43 'defines': [
44 '<@(neteq_defines)',
45 ],
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',
sprang@webrtc.orgcf6f46d2014-03-14 16:22:18 +000049 '<(DEPTH)/third_party/opus/src/src',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000050 ],
51 'direct_dependent_settings': {
52 'include_dirs': [
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +000053 # Need Opus header files for the audio classifier.
54 '<(DEPTH)/third_party/opus/src/celt',
sprang@webrtc.orgcf6f46d2014-03-14 16:22:18 +000055 '<(DEPTH)/third_party/opus/src/src',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000056 ],
57 },
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +000058 'export_dependent_settings': [
kjellander@webrtc.org2b69eab2015-02-09 10:01:17 +000059 '<(opus_dir)/opus.gyp:opus',
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +000060 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000061 'sources': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000062 'interface/neteq.h',
63 'accelerate.cc',
64 'accelerate.h',
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +000065 'audio_classifier.cc',
66 'audio_classifier.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000067 'audio_decoder_impl.cc',
68 'audio_decoder_impl.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000069 'audio_multi_vector.cc',
70 'audio_multi_vector.h',
71 'audio_vector.cc',
72 'audio_vector.h',
73 'background_noise.cc',
74 'background_noise.h',
75 'buffer_level_filter.cc',
76 'buffer_level_filter.h',
77 'comfort_noise.cc',
78 'comfort_noise.h',
79 'decision_logic.cc',
80 'decision_logic.h',
81 'decision_logic_fax.cc',
82 'decision_logic_fax.h',
83 'decision_logic_normal.cc',
84 'decision_logic_normal.h',
85 'decoder_database.cc',
86 'decoder_database.h',
87 'defines.h',
88 'delay_manager.cc',
89 'delay_manager.h',
90 'delay_peak_detector.cc',
91 'delay_peak_detector.h',
92 'dsp_helper.cc',
93 'dsp_helper.h',
94 'dtmf_buffer.cc',
95 'dtmf_buffer.h',
96 'dtmf_tone_generator.cc',
97 'dtmf_tone_generator.h',
98 'expand.cc',
99 'expand.h',
100 'merge.cc',
101 'merge.h',
102 'neteq_impl.cc',
103 'neteq_impl.h',
104 'neteq.cc',
105 'statistics_calculator.cc',
106 'statistics_calculator.h',
107 'normal.cc',
108 'normal.h',
109 'packet_buffer.cc',
110 'packet_buffer.h',
111 'payload_splitter.cc',
112 'payload_splitter.h',
113 'post_decode_vad.cc',
114 'post_decode_vad.h',
115 'preemptive_expand.cc',
116 'preemptive_expand.h',
117 'random_vector.cc',
118 'random_vector.h',
119 'rtcp.cc',
120 'rtcp.h',
121 'sync_buffer.cc',
122 'sync_buffer.h',
123 'timestamp_scaler.cc',
124 'timestamp_scaler.h',
125 'time_stretch.cc',
126 'time_stretch.h',
127 ],
128 },
129 ], # targets
130 'conditions': [
131 ['include_tests==1', {
132 'includes': ['neteq_tests.gypi',],
133 'targets': [
134 {
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000135 'target_name': 'audio_decoder_unittests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000136 'type': '<(gtest_target_type)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000137 'dependencies': [
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +0000138 '<@(codecs)',
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000139 'audio_decoder_interface',
henrik.lundin@webrtc.orgff8a98e2014-10-28 09:47:13 +0000140 'neteq_unittest_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000141 '<(DEPTH)/testing/gtest.gyp:gtest',
andrew@webrtc.org34235372013-04-30 23:43:26 +0000142 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000143 '<(webrtc_root)/test/test.gyp:test_support_main',
144 ],
145 'defines': [
146 'AUDIO_DECODER_UNITTEST',
147 'WEBRTC_CODEC_G722',
148 'WEBRTC_CODEC_ILBC',
149 'WEBRTC_CODEC_ISACFX',
150 'WEBRTC_CODEC_ISAC',
151 'WEBRTC_CODEC_PCM16',
152 '<@(neteq_defines)',
153 ],
154 'sources': [
155 'audio_decoder_impl.cc',
156 'audio_decoder_impl.h',
157 'audio_decoder_unittest.cc',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000158 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000159 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000160 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000161 'dependencies': [
162 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
163 ],
164 }],
165 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000166 }, # audio_decoder_unittests
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000167
168 {
169 'target_name': 'neteq_unittest_tools',
170 'type': 'static_library',
171 'dependencies': [
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000172 'rtp_rtcp',
henrik.lundin@webrtc.org03499a02014-11-24 14:50:53 +0000173 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgff8a98e2014-10-28 09:47:13 +0000174 '<(webrtc_root)/test/test.gyp:rtp_test_utils',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000175 ],
176 'direct_dependent_settings': {
177 'include_dirs': [
178 'tools',
179 ],
180 },
181 'include_dirs': [
182 'tools',
183 ],
184 'sources': [
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000185 'tools/audio_checksum.h',
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000186 'tools/audio_loop.cc',
187 'tools/audio_loop.h',
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000188 'tools/audio_sink.h',
henrik.lundin@webrtc.org81a78932014-10-14 10:49:58 +0000189 'tools/constant_pcm_packet_source.cc',
190 'tools/constant_pcm_packet_source.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000191 'tools/input_audio_file.cc',
192 'tools/input_audio_file.h',
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000193 'tools/output_audio_file.h',
henrik.lundin@webrtc.org03499a02014-11-24 14:50:53 +0000194 'tools/output_wav_file.h',
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000195 'tools/packet.cc',
196 'tools/packet.h',
197 'tools/packet_source.h',
henrik.lundin@webrtc.orga37f1dd2014-10-27 12:58:18 +0000198 'tools/resample_input_audio_file.cc',
199 'tools/resample_input_audio_file.h',
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000200 'tools/rtp_file_source.cc',
201 'tools/rtp_file_source.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000202 'tools/rtp_generator.cc',
203 'tools/rtp_generator.h',
204 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000205 }, # neteq_unittest_tools
206 ], # targets
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000207 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000208 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000209 'targets': [
210 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000211 'target_name': 'audio_decoder_unittests_apk_target',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000212 'type': 'none',
213 'dependencies': [
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000214 '<(apk_tests_path):audio_decoder_unittests_apk',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000215 ],
216 },
217 ],
218 }],
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000219 ['test_isolation_mode != "noop"', {
220 'targets': [
221 {
222 'target_name': 'audio_decoder_unittests_run',
223 'type': 'none',
224 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000225 'audio_decoder_unittests',
226 ],
227 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000228 '../../../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000229 ],
230 'sources': [
231 'audio_decoder_unittests.isolate',
232 ],
233 },
234 ],
235 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000236 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000237 }], # include_tests
238 ], # conditions
239}