blob: b7833bedd87297fa423c29afcbccb9a6d70e68bb [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': [
18 ['include_opus==1', {
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +000019 'codecs': ['webrtc_opus',],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000020 'neteq_defines': ['WEBRTC_CODEC_OPUS',],
21 }],
kwiberg98ab3a42015-09-30 21:54:21 -070022 ['build_with_mozilla==0', {
23 'conditions': [
24 ['target_arch=="arm"', {
25 'codecs': ['isac_fix',],
26 'neteq_defines': ['WEBRTC_CODEC_ISACFX',],
27 }, {
28 'codecs': ['isac',],
29 'neteq_defines': ['WEBRTC_CODEC_ISAC',],
30 }],
31 ],
32 'codecs': ['g722',],
33 'neteq_defines': ['WEBRTC_CODEC_G722',],
34 }],
35 ['build_with_mozilla==0 and build_with_chromium==0', {
36 'codecs': ['ilbc',],
37 'neteq_defines': ['WEBRTC_CODEC_ILBC',],
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.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000059 'interface/neteq.h',
60 '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',
99 'neteq_impl.cc',
100 'neteq_impl.h',
101 'neteq.cc',
102 'statistics_calculator.cc',
103 'statistics_calculator.h',
104 'normal.cc',
105 'normal.h',
106 'packet_buffer.cc',
107 'packet_buffer.h',
108 'payload_splitter.cc',
109 'payload_splitter.h',
110 'post_decode_vad.cc',
111 'post_decode_vad.h',
112 'preemptive_expand.cc',
113 'preemptive_expand.h',
114 'random_vector.cc',
115 'random_vector.h',
116 'rtcp.cc',
117 'rtcp.h',
118 'sync_buffer.cc',
119 'sync_buffer.h',
120 'timestamp_scaler.cc',
121 'timestamp_scaler.h',
122 'time_stretch.cc',
123 'time_stretch.h',
124 ],
125 },
126 ], # targets
127 'conditions': [
128 ['include_tests==1', {
129 'includes': ['neteq_tests.gypi',],
130 'targets': [
131 {
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000132 'target_name': 'audio_decoder_unittests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000133 'type': '<(gtest_target_type)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000134 'dependencies': [
turaj@webrtc.org17bf9a22014-05-09 18:04:50 +0000135 '<@(codecs)',
kwiberg98ab3a42015-09-30 21:54:21 -0700136 'g722',
137 'ilbc',
138 'isac',
139 'isac_fix',
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000140 'audio_decoder_interface',
henrik.lundin@webrtc.orgff8a98e2014-10-28 09:47:13 +0000141 'neteq_unittest_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000142 '<(DEPTH)/testing/gtest.gyp:gtest',
andrew@webrtc.org34235372013-04-30 23:43:26 +0000143 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000144 '<(webrtc_root)/test/test.gyp:test_support_main',
145 ],
146 'defines': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000147 '<@(neteq_defines)',
148 ],
149 'sources': [
150 'audio_decoder_impl.cc',
151 'audio_decoder_impl.h',
152 'audio_decoder_unittest.cc',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000153 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000154 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000155 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000156 'dependencies': [
157 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
158 ],
159 }],
160 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000161 }, # audio_decoder_unittests
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000162
163 {
164 'target_name': 'neteq_unittest_tools',
165 'type': 'static_library',
166 'dependencies': [
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000167 'rtp_rtcp',
henrik.lundin@webrtc.org03499a02014-11-24 14:50:53 +0000168 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
henrik.lundin@webrtc.orgff8a98e2014-10-28 09:47:13 +0000169 '<(webrtc_root)/test/test.gyp:rtp_test_utils',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000170 ],
171 'direct_dependent_settings': {
172 'include_dirs': [
173 'tools',
174 ],
175 },
176 'include_dirs': [
177 'tools',
178 ],
179 'sources': [
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000180 'tools/audio_checksum.h',
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000181 'tools/audio_loop.cc',
182 'tools/audio_loop.h',
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000183 'tools/audio_sink.h',
henrik.lundin@webrtc.org81a78932014-10-14 10:49:58 +0000184 'tools/constant_pcm_packet_source.cc',
185 'tools/constant_pcm_packet_source.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000186 'tools/input_audio_file.cc',
187 'tools/input_audio_file.h',
henrik.lundin@webrtc.org496a9842014-06-19 10:02:11 +0000188 'tools/output_audio_file.h',
henrik.lundin@webrtc.org03499a02014-11-24 14:50:53 +0000189 'tools/output_wav_file.h',
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000190 'tools/packet.cc',
191 'tools/packet.h',
192 'tools/packet_source.h',
henrik.lundin@webrtc.orga37f1dd2014-10-27 12:58:18 +0000193 'tools/resample_input_audio_file.cc',
194 'tools/resample_input_audio_file.h',
henrik.lundin@webrtc.org810acbc2014-04-14 18:42:23 +0000195 'tools/rtp_file_source.cc',
196 'tools/rtp_file_source.h',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000197 'tools/rtp_generator.cc',
198 'tools/rtp_generator.h',
199 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000200 }, # neteq_unittest_tools
201 ], # targets
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000202 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000203 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000204 'targets': [
205 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000206 'target_name': 'audio_decoder_unittests_apk_target',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000207 'type': 'none',
208 'dependencies': [
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000209 '<(apk_tests_path):audio_decoder_unittests_apk',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000210 ],
211 },
212 ],
213 }],
214 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000215 }], # include_tests
216 ], # conditions
217}