blob: 7e0f558ee55812139b5acbe94bc9039d37c6acfb [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',
henrik.lundin8053f792016-04-22 13:21:43 -0700122 'tick_timer.cc',
123 'tick_timer.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000124 'timestamp_scaler.cc',
125 'timestamp_scaler.h',
126 'time_stretch.cc',
127 'time_stretch.h',
128 ],
129 },
130 ], # targets
131 'conditions': [
132 ['include_tests==1', {
133 'includes': ['neteq_tests.gypi',],
134 'targets': [
135 {
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000136 'target_name': 'audio_decoder_unittests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000137 'type': '<(gtest_target_type)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000138 'dependencies': [
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +0000139 '<@(codecs)',
kwiberg98ab3a42015-09-30 21:54:21 -0700140 'g722',
141 'ilbc',
142 'isac',
143 'isac_fix',
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000144 'audio_decoder_interface',
henrik.lundin@webrtc.orgff8a98e2014-10-28 09:47:13 +0000145 'neteq_unittest_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000146 '<(DEPTH)/testing/gtest.gyp:gtest',
andrew@webrtc.org34235372013-04-30 23:43:26 +0000147 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000148 '<(webrtc_root)/test/test.gyp:test_support_main',
149 ],
150 'defines': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000151 '<@(neteq_defines)',
152 ],
153 'sources': [
154 'audio_decoder_impl.cc',
155 'audio_decoder_impl.h',
156 'audio_decoder_unittest.cc',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000157 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000158 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000159 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000160 'dependencies': [
161 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
162 ],
163 }],
kjellander02060002016-02-16 22:06:12 -0800164 ['OS=="ios"', {
165 'mac_bundle_resources': [
166 '<(DEPTH)/resources/audio_coding/testfile32kHz.pcm',
167 ],
168 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000169 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000170 }, # audio_decoder_unittests
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000171
172 {
173 'target_name': 'neteq_unittest_tools',
174 'type': 'static_library',
175 'dependencies': [
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000176 'rtp_rtcp',
henrik.lundin@webrtc.org03499a02014-11-24 14:50:53 +0000177 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgff8a98e2014-10-28 09:47:13 +0000178 '<(webrtc_root)/test/test.gyp:rtp_test_utils',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000179 ],
180 'direct_dependent_settings': {
181 'include_dirs': [
182 'tools',
183 ],
184 },
185 'include_dirs': [
186 'tools',
187 ],
188 'sources': [
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000189 'tools/audio_checksum.h',
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000190 'tools/audio_loop.cc',
191 'tools/audio_loop.h',
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000192 'tools/audio_sink.h',
henrik.lundin@webrtc.org81a78932014-10-14 10:49:58 +0000193 'tools/constant_pcm_packet_source.cc',
194 'tools/constant_pcm_packet_source.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000195 'tools/input_audio_file.cc',
196 'tools/input_audio_file.h',
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000197 'tools/output_audio_file.h',
henrik.lundin@webrtc.org03499a02014-11-24 14:50:53 +0000198 'tools/output_wav_file.h',
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000199 'tools/packet.cc',
200 'tools/packet.h',
201 'tools/packet_source.h',
henrik.lundin@webrtc.orga37f1dd2014-10-27 12:58:18 +0000202 'tools/resample_input_audio_file.cc',
203 'tools/resample_input_audio_file.h',
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000204 'tools/rtp_file_source.cc',
205 'tools/rtp_file_source.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000206 'tools/rtp_generator.cc',
207 'tools/rtp_generator.h',
208 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000209 }, # neteq_unittest_tools
210 ], # targets
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000211 }], # include_tests
212 ], # conditions
213}