blob: 5f8ad0a8d884945747dc35e8f9f0b3e30747657e [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': {
11 'neteq_dependencies': [
12 'G711',
13 'G722',
14 'PCM16B',
15 'iLBC',
16 'iSAC',
17 'iSACFix',
18 'CNG',
19 '<(webrtc_root)/common_audio/common_audio.gyp:signal_processing',
20 '<(webrtc_root)/common_audio/common_audio.gyp:vad',
21 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
22 ],
23 'neteq_defines': [],
24 'conditions': [
25 ['include_opus==1', {
26 'neteq_dependencies': ['webrtc_opus',],
27 'neteq_defines': ['WEBRTC_CODEC_OPUS',],
28 }],
29 ],
30 },
31 'targets': [
32 {
33 'target_name': 'NetEq4',
34 'type': 'static_library',
35 'dependencies': [
36 '<@(neteq_dependencies)',
37 ],
38 'defines': [
39 '<@(neteq_defines)',
40 ],
41 'include_dirs': [
42 'interface',
43 ],
44 'direct_dependent_settings': {
45 'include_dirs': [
46 'interface',
47 ],
48 },
49 'sources': [
50 'interface/audio_decoder.h',
51 'interface/neteq.h',
52 'accelerate.cc',
53 'accelerate.h',
54 'audio_decoder_impl.cc',
55 'audio_decoder_impl.h',
56 'audio_decoder.cc',
57 'audio_multi_vector.cc',
58 'audio_multi_vector.h',
59 'audio_vector.cc',
60 'audio_vector.h',
61 'background_noise.cc',
62 'background_noise.h',
63 'buffer_level_filter.cc',
64 'buffer_level_filter.h',
65 'comfort_noise.cc',
66 'comfort_noise.h',
67 'decision_logic.cc',
68 'decision_logic.h',
69 'decision_logic_fax.cc',
70 'decision_logic_fax.h',
71 'decision_logic_normal.cc',
72 'decision_logic_normal.h',
73 'decoder_database.cc',
74 'decoder_database.h',
75 'defines.h',
76 'delay_manager.cc',
77 'delay_manager.h',
78 'delay_peak_detector.cc',
79 'delay_peak_detector.h',
80 'dsp_helper.cc',
81 'dsp_helper.h',
82 'dtmf_buffer.cc',
83 'dtmf_buffer.h',
84 'dtmf_tone_generator.cc',
85 'dtmf_tone_generator.h',
86 'expand.cc',
87 'expand.h',
88 'merge.cc',
89 'merge.h',
90 'neteq_impl.cc',
91 'neteq_impl.h',
92 'neteq.cc',
93 'statistics_calculator.cc',
94 'statistics_calculator.h',
95 'normal.cc',
96 'normal.h',
97 'packet_buffer.cc',
98 'packet_buffer.h',
99 'payload_splitter.cc',
100 'payload_splitter.h',
101 'post_decode_vad.cc',
102 'post_decode_vad.h',
103 'preemptive_expand.cc',
104 'preemptive_expand.h',
105 'random_vector.cc',
106 'random_vector.h',
107 'rtcp.cc',
108 'rtcp.h',
109 'sync_buffer.cc',
110 'sync_buffer.h',
111 'timestamp_scaler.cc',
112 'timestamp_scaler.h',
113 'time_stretch.cc',
114 'time_stretch.h',
115 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000116 # Disable warnings to enable Win64 build, issue 1323.
117 'msvs_disabled_warnings': [
118 4267, # size_t to int truncation.
119 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000120 },
121 ], # targets
122 'conditions': [
123 ['include_tests==1', {
124 'includes': ['neteq_tests.gypi',],
125 'targets': [
126 {
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000127 'target_name': 'audio_decoder_unittests',
128 'type': 'executable',
129 'dependencies': [
130 '<@(neteq_dependencies)',
131 '<(DEPTH)/testing/gtest.gyp:gtest',
132 '<(webrtc_root)/common_audio/common_audio.gyp:resampler',
133 '<(webrtc_root)/test/test.gyp:test_support_main',
134 ],
135 'defines': [
136 'AUDIO_DECODER_UNITTEST',
137 'WEBRTC_CODEC_G722',
138 'WEBRTC_CODEC_ILBC',
139 'WEBRTC_CODEC_ISACFX',
140 'WEBRTC_CODEC_ISAC',
141 'WEBRTC_CODEC_PCM16',
142 '<@(neteq_defines)',
143 ],
144 'sources': [
145 'audio_decoder_impl.cc',
146 'audio_decoder_impl.h',
147 'audio_decoder_unittest.cc',
148 'audio_decoder.cc',
149 'interface/audio_decoder.h',
150 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000151 # Disable warnings to enable Win64 build, issue 1323.
152 'msvs_disabled_warnings': [
153 4267, # size_t to int truncation.
154 ],
155 }, # audio_decoder_unittests
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000156
157 {
158 'target_name': 'neteq_unittest_tools',
159 'type': 'static_library',
160 'dependencies': [
161 '<(DEPTH)/testing/gmock.gyp:gmock',
162 '<(DEPTH)/testing/gtest.gyp:gtest',
163 '<(webrtc_root)/test/test.gyp:test_support_main',
164 ],
165 'direct_dependent_settings': {
166 'include_dirs': [
167 'tools',
168 ],
169 },
170 'include_dirs': [
171 'tools',
172 ],
173 'sources': [
174 'tools/input_audio_file.cc',
175 'tools/input_audio_file.h',
176 'tools/rtp_generator.cc',
177 'tools/rtp_generator.h',
178 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000179 # Disable warnings to enable Win64 build, issue 1323.
180 'msvs_disabled_warnings': [
181 4267, # size_t to int truncation.
182 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000183 }, # neteq_unittest_tools
184 ], # targets
185 }], # include_tests
186 ], # conditions
187}