blob: 50b8425c87e0684a077cb1bdf52245405f4a5991 [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': [
Zeke Chin786dbdc2015-06-10 13:45:08 -070012 'cng',
13 'g711',
Zeke Chin786dbdc2015-06-10 13:45:08 -070014 'pcm16b',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000015 ],
16 'neteq_defines': [],
17 'conditions': [
kwibergf8c2bac2016-01-18 06:38:32 -080018 ['include_ilbc==1', {
19 'codecs': ['ilbc',],
20 'neteq_defines': ['WEBRTC_CODEC_ILBC',],
21 }],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000022 ['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 }],
kwiberg98ab3a42015-09-30 21:54:21 -070026 ['build_with_mozilla==0', {
27 'conditions': [
28 ['target_arch=="arm"', {
29 'codecs': ['isac_fix',],
30 'neteq_defines': ['WEBRTC_CODEC_ISACFX',],
31 }, {
32 'codecs': ['isac',],
33 'neteq_defines': ['WEBRTC_CODEC_ISAC',],
34 }],
35 ],
36 'codecs': ['g722',],
37 'neteq_defines': ['WEBRTC_CODEC_G722',],
38 }],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000039 ],
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +000040 'neteq_dependencies': [
41 '<@(codecs)',
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +000042 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000043 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +000044 'audio_decoder_interface',
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +000045 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000046 },
47 'targets': [
48 {
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +000049 'target_name': 'neteq',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000050 'type': 'static_library',
51 'dependencies': [
52 '<@(neteq_dependencies)',
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000053 '<(webrtc_root)/common.gyp:webrtc_common',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000054 ],
55 'defines': [
56 '<@(neteq_defines)',
57 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000058 'sources': [
Henrik Kjellander74640892015-10-29 11:31:02 +010059 'include/neteq.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000060 'accelerate.cc',
61 'accelerate.h',
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +000062 'audio_classifier.cc',
63 'audio_classifier.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000064 'audio_decoder_impl.cc',
65 'audio_decoder_impl.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000066 'audio_multi_vector.cc',
67 'audio_multi_vector.h',
68 'audio_vector.cc',
69 'audio_vector.h',
70 'background_noise.cc',
71 'background_noise.h',
72 'buffer_level_filter.cc',
73 'buffer_level_filter.h',
74 'comfort_noise.cc',
75 'comfort_noise.h',
76 'decision_logic.cc',
77 'decision_logic.h',
78 'decision_logic_fax.cc',
79 'decision_logic_fax.h',
80 'decision_logic_normal.cc',
81 'decision_logic_normal.h',
82 'decoder_database.cc',
83 'decoder_database.h',
84 'defines.h',
85 'delay_manager.cc',
86 'delay_manager.h',
87 'delay_peak_detector.cc',
88 'delay_peak_detector.h',
89 'dsp_helper.cc',
90 'dsp_helper.h',
91 'dtmf_buffer.cc',
92 'dtmf_buffer.h',
93 'dtmf_tone_generator.cc',
94 'dtmf_tone_generator.h',
95 'expand.cc',
96 'expand.h',
97 'merge.cc',
98 'merge.h',
henrik.lundin48ed9302015-10-29 05:36:24 -070099 'nack.h',
100 'nack.cc',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000101 'neteq_impl.cc',
102 'neteq_impl.h',
103 'neteq.cc',
104 'statistics_calculator.cc',
105 'statistics_calculator.h',
106 'normal.cc',
107 'normal.h',
108 'packet_buffer.cc',
109 'packet_buffer.h',
110 'payload_splitter.cc',
111 'payload_splitter.h',
112 'post_decode_vad.cc',
113 'post_decode_vad.h',
114 'preemptive_expand.cc',
115 'preemptive_expand.h',
116 'random_vector.cc',
117 'random_vector.h',
118 'rtcp.cc',
119 'rtcp.h',
120 'sync_buffer.cc',
121 'sync_buffer.h',
122 'timestamp_scaler.cc',
123 'timestamp_scaler.h',
124 'time_stretch.cc',
125 'time_stretch.h',
126 ],
127 },
128 ], # targets
129 'conditions': [
130 ['include_tests==1', {
131 'includes': ['neteq_tests.gypi',],
132 'targets': [
133 {
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000134 'target_name': 'audio_decoder_unittests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000135 'type': '<(gtest_target_type)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000136 'dependencies': [
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +0000137 '<@(codecs)',
kwiberg98ab3a42015-09-30 21:54:21 -0700138 'g722',
139 'ilbc',
140 'isac',
141 'isac_fix',
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000142 'audio_decoder_interface',
henrik.lundin@webrtc.orgff8a98e2014-10-28 09:47:13 +0000143 'neteq_unittest_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000144 '<(DEPTH)/testing/gtest.gyp:gtest',
andrew@webrtc.org34235372013-04-30 23:43:26 +0000145 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000146 '<(webrtc_root)/test/test.gyp:test_support_main',
147 ],
148 'defines': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000149 '<@(neteq_defines)',
150 ],
151 'sources': [
152 'audio_decoder_impl.cc',
153 'audio_decoder_impl.h',
154 'audio_decoder_unittest.cc',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000155 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000156 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000157 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000158 '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': [
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000169 'rtp_rtcp',
henrik.lundin@webrtc.org03499a02014-11-24 14:50:53 +0000170 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgff8a98e2014-10-28 09:47:13 +0000171 '<(webrtc_root)/test/test.gyp:rtp_test_utils',
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.org496a9842014-06-19 10:02:11 +0000182 'tools/audio_checksum.h',
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000183 'tools/audio_loop.cc',
184 'tools/audio_loop.h',
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000185 'tools/audio_sink.h',
henrik.lundin@webrtc.org81a78932014-10-14 10:49:58 +0000186 'tools/constant_pcm_packet_source.cc',
187 'tools/constant_pcm_packet_source.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000188 'tools/input_audio_file.cc',
189 'tools/input_audio_file.h',
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000190 'tools/output_audio_file.h',
henrik.lundin@webrtc.org03499a02014-11-24 14:50:53 +0000191 'tools/output_wav_file.h',
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000192 'tools/packet.cc',
193 'tools/packet.h',
194 'tools/packet_source.h',
henrik.lundin@webrtc.orga37f1dd2014-10-27 12:58:18 +0000195 'tools/resample_input_audio_file.cc',
196 'tools/resample_input_audio_file.h',
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000197 'tools/rtp_file_source.cc',
198 'tools/rtp_file_source.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000199 'tools/rtp_generator.cc',
200 'tools/rtp_generator.h',
201 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000202 }, # neteq_unittest_tools
203 ], # targets
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000204 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000205 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000206 'targets': [
207 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000208 'target_name': 'audio_decoder_unittests_apk_target',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000209 'type': 'none',
210 'dependencies': [
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000211 '<(apk_tests_path):audio_decoder_unittests_apk',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000212 ],
213 },
214 ],
215 }],
216 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000217 }], # include_tests
218 ], # conditions
219}