blob: e7897d57594d8e9ee87bdc54e8650c962ebb3fab [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)',
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +000029 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000030 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +000031 'audio_decoder_interface',
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +000032 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000033 },
34 'targets': [
35 {
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +000036 'target_name': 'neteq',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000037 'type': 'static_library',
38 'dependencies': [
39 '<@(neteq_dependencies)',
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000040 '<(webrtc_root)/common.gyp:webrtc_common',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000041 ],
42 'defines': [
43 '<@(neteq_defines)',
44 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000045 'sources': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000046 'interface/neteq.h',
47 'accelerate.cc',
48 'accelerate.h',
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +000049 'audio_classifier.cc',
50 'audio_classifier.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000051 'audio_decoder_impl.cc',
52 'audio_decoder_impl.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000053 'audio_multi_vector.cc',
54 'audio_multi_vector.h',
55 'audio_vector.cc',
56 'audio_vector.h',
57 'background_noise.cc',
58 'background_noise.h',
59 'buffer_level_filter.cc',
60 'buffer_level_filter.h',
61 'comfort_noise.cc',
62 'comfort_noise.h',
63 'decision_logic.cc',
64 'decision_logic.h',
65 'decision_logic_fax.cc',
66 'decision_logic_fax.h',
67 'decision_logic_normal.cc',
68 'decision_logic_normal.h',
69 'decoder_database.cc',
70 'decoder_database.h',
71 'defines.h',
72 'delay_manager.cc',
73 'delay_manager.h',
74 'delay_peak_detector.cc',
75 'delay_peak_detector.h',
76 'dsp_helper.cc',
77 'dsp_helper.h',
78 'dtmf_buffer.cc',
79 'dtmf_buffer.h',
80 'dtmf_tone_generator.cc',
81 'dtmf_tone_generator.h',
82 'expand.cc',
83 'expand.h',
84 'merge.cc',
85 'merge.h',
86 'neteq_impl.cc',
87 'neteq_impl.h',
88 'neteq.cc',
89 'statistics_calculator.cc',
90 'statistics_calculator.h',
91 'normal.cc',
92 'normal.h',
93 'packet_buffer.cc',
94 'packet_buffer.h',
95 'payload_splitter.cc',
96 'payload_splitter.h',
97 'post_decode_vad.cc',
98 'post_decode_vad.h',
99 'preemptive_expand.cc',
100 'preemptive_expand.h',
101 'random_vector.cc',
102 'random_vector.h',
103 'rtcp.cc',
104 'rtcp.h',
105 'sync_buffer.cc',
106 'sync_buffer.h',
107 'timestamp_scaler.cc',
108 'timestamp_scaler.h',
109 'time_stretch.cc',
110 'time_stretch.h',
111 ],
112 },
113 ], # targets
114 'conditions': [
115 ['include_tests==1', {
116 'includes': ['neteq_tests.gypi',],
117 'targets': [
118 {
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000119 'target_name': 'audio_decoder_unittests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000120 'type': '<(gtest_target_type)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000121 'dependencies': [
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +0000122 '<@(codecs)',
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000123 'audio_decoder_interface',
henrik.lundin@webrtc.orgff8a98e2014-10-28 09:47:13 +0000124 'neteq_unittest_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000125 '<(DEPTH)/testing/gtest.gyp:gtest',
andrew@webrtc.org34235372013-04-30 23:43:26 +0000126 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000127 '<(webrtc_root)/test/test.gyp:test_support_main',
128 ],
129 'defines': [
130 'AUDIO_DECODER_UNITTEST',
131 'WEBRTC_CODEC_G722',
132 'WEBRTC_CODEC_ILBC',
133 'WEBRTC_CODEC_ISACFX',
134 'WEBRTC_CODEC_ISAC',
135 'WEBRTC_CODEC_PCM16',
136 '<@(neteq_defines)',
137 ],
138 'sources': [
139 'audio_decoder_impl.cc',
140 'audio_decoder_impl.h',
141 'audio_decoder_unittest.cc',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000142 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000143 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000144 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000145 'dependencies': [
146 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
147 ],
148 }],
149 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000150 }, # audio_decoder_unittests
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000151
152 {
153 'target_name': 'neteq_unittest_tools',
154 'type': 'static_library',
155 'dependencies': [
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000156 'rtp_rtcp',
henrik.lundin@webrtc.org03499a02014-11-24 14:50:53 +0000157 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgff8a98e2014-10-28 09:47:13 +0000158 '<(webrtc_root)/test/test.gyp:rtp_test_utils',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000159 ],
160 'direct_dependent_settings': {
161 'include_dirs': [
162 'tools',
163 ],
164 },
165 'include_dirs': [
166 'tools',
167 ],
168 'sources': [
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000169 'tools/audio_checksum.h',
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000170 'tools/audio_loop.cc',
171 'tools/audio_loop.h',
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000172 'tools/audio_sink.h',
henrik.lundin@webrtc.org81a78932014-10-14 10:49:58 +0000173 'tools/constant_pcm_packet_source.cc',
174 'tools/constant_pcm_packet_source.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000175 'tools/input_audio_file.cc',
176 'tools/input_audio_file.h',
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000177 'tools/output_audio_file.h',
henrik.lundin@webrtc.org03499a02014-11-24 14:50:53 +0000178 'tools/output_wav_file.h',
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000179 'tools/packet.cc',
180 'tools/packet.h',
181 'tools/packet_source.h',
henrik.lundin@webrtc.orga37f1dd2014-10-27 12:58:18 +0000182 'tools/resample_input_audio_file.cc',
183 'tools/resample_input_audio_file.h',
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000184 'tools/rtp_file_source.cc',
185 'tools/rtp_file_source.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000186 'tools/rtp_generator.cc',
187 'tools/rtp_generator.h',
188 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000189 }, # neteq_unittest_tools
190 ], # targets
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000191 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000192 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000193 'targets': [
194 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000195 'target_name': 'audio_decoder_unittests_apk_target',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000196 'type': 'none',
197 'dependencies': [
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000198 '<(apk_tests_path):audio_decoder_unittests_apk',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000199 ],
200 },
201 ],
202 }],
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000203 ['test_isolation_mode != "noop"', {
204 'targets': [
205 {
206 'target_name': 'audio_decoder_unittests_run',
207 'type': 'none',
208 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000209 'audio_decoder_unittests',
210 ],
211 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000212 '../../../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000213 ],
214 'sources': [
215 'audio_decoder_unittests.isolate',
216 ],
217 },
218 ],
219 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000220 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000221 }], # include_tests
222 ], # conditions
223}