blob: fee51dfe2b086615da39f6536943762ca2362fe2 [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',
henrik.lundin84f8cd62016-04-26 07:45:16 -0700108 'packet.cc',
109 'packet.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000110 'packet_buffer.cc',
111 'packet_buffer.h',
112 'payload_splitter.cc',
113 'payload_splitter.h',
114 'post_decode_vad.cc',
115 'post_decode_vad.h',
116 'preemptive_expand.cc',
117 'preemptive_expand.h',
118 'random_vector.cc',
119 'random_vector.h',
120 'rtcp.cc',
121 'rtcp.h',
122 'sync_buffer.cc',
123 'sync_buffer.h',
henrik.lundin8053f792016-04-22 13:21:43 -0700124 'tick_timer.cc',
125 'tick_timer.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000126 'timestamp_scaler.cc',
127 'timestamp_scaler.h',
128 'time_stretch.cc',
129 'time_stretch.h',
130 ],
131 },
132 ], # targets
133 'conditions': [
134 ['include_tests==1', {
135 'includes': ['neteq_tests.gypi',],
136 'targets': [
137 {
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000138 'target_name': 'audio_decoder_unittests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000139 'type': '<(gtest_target_type)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000140 'dependencies': [
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +0000141 '<@(codecs)',
kwiberg98ab3a42015-09-30 21:54:21 -0700142 'g722',
143 'ilbc',
144 'isac',
145 'isac_fix',
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000146 'audio_decoder_interface',
henrik.lundin@webrtc.orgff8a98e2014-10-28 09:47:13 +0000147 'neteq_unittest_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000148 '<(DEPTH)/testing/gtest.gyp:gtest',
andrew@webrtc.org34235372013-04-30 23:43:26 +0000149 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000150 '<(webrtc_root)/test/test.gyp:test_support_main',
151 ],
152 'defines': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000153 '<@(neteq_defines)',
154 ],
155 'sources': [
156 'audio_decoder_impl.cc',
157 'audio_decoder_impl.h',
158 'audio_decoder_unittest.cc',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000159 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000160 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000161 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000162 'dependencies': [
163 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
164 ],
165 }],
kjellander02060002016-02-16 22:06:12 -0800166 ['OS=="ios"', {
167 'mac_bundle_resources': [
168 '<(DEPTH)/resources/audio_coding/testfile32kHz.pcm',
169 ],
170 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000171 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000172 }, # audio_decoder_unittests
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000173
174 {
175 'target_name': 'neteq_unittest_tools',
176 'type': 'static_library',
177 'dependencies': [
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000178 'rtp_rtcp',
henrik.lundin@webrtc.org03499a02014-11-24 14:50:53 +0000179 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgff8a98e2014-10-28 09:47:13 +0000180 '<(webrtc_root)/test/test.gyp:rtp_test_utils',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000181 ],
182 'direct_dependent_settings': {
183 'include_dirs': [
184 'tools',
185 ],
186 },
187 'include_dirs': [
188 'tools',
189 ],
190 'sources': [
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000191 'tools/audio_checksum.h',
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000192 'tools/audio_loop.cc',
193 'tools/audio_loop.h',
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000194 'tools/audio_sink.h',
henrik.lundin@webrtc.org81a78932014-10-14 10:49:58 +0000195 'tools/constant_pcm_packet_source.cc',
196 'tools/constant_pcm_packet_source.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000197 'tools/input_audio_file.cc',
198 'tools/input_audio_file.h',
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000199 'tools/output_audio_file.h',
henrik.lundin@webrtc.org03499a02014-11-24 14:50:53 +0000200 'tools/output_wav_file.h',
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000201 'tools/packet.cc',
202 'tools/packet.h',
203 'tools/packet_source.h',
henrik.lundin@webrtc.orga37f1dd2014-10-27 12:58:18 +0000204 'tools/resample_input_audio_file.cc',
205 'tools/resample_input_audio_file.h',
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000206 'tools/rtp_file_source.cc',
207 'tools/rtp_file_source.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000208 'tools/rtp_generator.cc',
209 'tools/rtp_generator.h',
210 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000211 }, # neteq_unittest_tools
212 ], # targets
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000213 }], # include_tests
214 ], # conditions
215}