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