Upstream version 8.37.180.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / modules / audio_coding / neteq / neteq_tests.gypi
1 # 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   'targets': [
11     {
12       'target_name': 'neteq_rtpplay',
13       'type': 'executable',
14       'dependencies': [
15         'neteq',
16         'neteq_test_tools',
17         'neteq_unittest_tools',
18         'PCM16B',
19         '<(webrtc_root)/test/test.gyp:test_support_main',
20         '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
21       ],
22       'sources': [
23         'tools/neteq_rtpplay.cc',
24       ],
25       'defines': [
26       ],
27     }, # neteq_rtpplay
28
29     {
30       'target_name': 'RTPencode',
31       'type': 'executable',
32       'dependencies': [
33         # TODO(hlundin): Make RTPencode use ACM to encode files.
34         'neteq_test_tools',# Test helpers
35         'G711',
36         'G722',
37         'PCM16B',
38         'iLBC',
39         'iSAC',
40         'CNG',
41         '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
42       ],
43       'defines': [
44         'CODEC_ILBC',
45         'CODEC_PCM16B',
46         'CODEC_G711',
47         'CODEC_G722',
48         'CODEC_ISAC',
49         'CODEC_PCM16B_WB',
50         'CODEC_ISAC_SWB',
51         'CODEC_PCM16B_32KHZ',
52         'CODEC_PCM16B_48KHZ',
53         'CODEC_CNGCODEC8',
54         'CODEC_CNGCODEC16',
55         'CODEC_CNGCODEC32',
56         'CODEC_ATEVENT_DECODE',
57         'CODEC_RED',
58       ],
59       'include_dirs': [
60         'interface',
61         'test',
62         '<(webrtc_root)',
63       ],
64       'sources': [
65         'test/RTPencode.cc',
66       ],
67       # Disable warnings to enable Win64 build, issue 1323.
68       'msvs_disabled_warnings': [
69         4267,  # size_t to int truncation.
70       ],
71     },
72
73     {
74       'target_name': 'RTPjitter',
75       'type': 'executable',
76       'dependencies': [
77         '<(DEPTH)/testing/gtest.gyp:gtest',
78       ],
79       'sources': [
80         'test/RTPjitter.cc',
81       ],
82     },
83
84     {
85       'target_name': 'rtp_analyze',
86       'type': 'executable',
87       'dependencies': [
88         'neteq_unittest_tools',
89         '<(DEPTH)/testing/gtest.gyp:gtest',
90         '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
91         '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:field_trial_default',
92       ],
93       'sources': [
94         'tools/rtp_analyze.cc',
95       ],
96     },
97
98     {
99       'target_name': 'RTPchange',
100       'type': 'executable',
101       'dependencies': [
102         'neteq_test_tools',
103         '<(DEPTH)/testing/gtest.gyp:gtest',
104       ],
105       'sources': [
106        'test/RTPchange.cc',
107       ],
108     },
109
110     {
111       'target_name': 'RTPtimeshift',
112       'type': 'executable',
113       'dependencies': [
114        'neteq_test_tools',
115         '<(DEPTH)/testing/gtest.gyp:gtest',
116       ],
117       'sources': [
118         'test/RTPtimeshift.cc',
119       ],
120     },
121
122     {
123       'target_name': 'RTPcat',
124       'type': 'executable',
125       'dependencies': [
126         'neteq_test_tools',
127         '<(DEPTH)/testing/gtest.gyp:gtest',
128       ],
129       'sources': [
130         'test/RTPcat.cc',
131       ],
132     },
133
134     {
135       'target_name': 'rtp_to_text',
136       'type': 'executable',
137       'dependencies': [
138         'neteq_test_tools',
139         '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
140       ],
141       'sources': [
142         'test/rtp_to_text.cc',
143       ],
144     },
145
146     {
147       'target_name': 'audio_classifier_test',
148       'type': 'executable',
149       'dependencies': [
150         'neteq',
151       ],
152       'sources': [
153         'test/audio_classifier_test.cc',
154       ],
155     },
156
157     {
158       'target_name': 'neteq_test_support',
159       'type': 'static_library',
160       'dependencies': [
161         'neteq',
162         'PCM16B',
163         'neteq_unittest_tools',
164         '<(DEPTH)/testing/gtest.gyp:gtest',
165         '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
166       ],
167       'sources': [
168         'tools/neteq_performance_test.cc',
169         'tools/neteq_performance_test.h',
170         'tools/neteq_quality_test.cc',
171         'tools/neteq_quality_test.h',
172       ],
173     }, # neteq_test_support
174
175     {
176       'target_name': 'neteq_speed_test',
177       'type': 'executable',
178       'dependencies': [
179         'neteq',
180         'neteq_test_support',
181         '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
182         '<(webrtc_root)/test/test.gyp:test_support_main',
183       ],
184       'sources': [
185         'test/neteq_speed_test.cc',
186       ],
187     },
188
189     {
190       'target_name': 'neteq_opus_fec_quality_test',
191       'type': 'executable',
192       'dependencies': [
193         'neteq',
194         'neteq_test_support',
195         'webrtc_opus',
196         '<(DEPTH)/testing/gtest.gyp:gtest',
197         '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
198         '<(webrtc_root)/test/test.gyp:test_support_main',
199       ],
200       'sources': [
201         'test/neteq_opus_fec_quality_test.cc',
202       ],
203     },
204
205     {
206      'target_name': 'neteq_test_tools',
207       # Collection of useful functions used in other tests.
208       'type': 'static_library',
209       'variables': {
210         # Expects RTP packets without payloads when enabled.
211         'neteq_dummy_rtp%': 0,
212       },
213       'dependencies': [
214         'G711',
215         'G722',
216         'PCM16B',
217         'iLBC',
218         'iSAC',
219         'CNG',
220         '<(DEPTH)/testing/gtest.gyp:gtest',
221       ],
222       'direct_dependent_settings': {
223         'include_dirs': [
224           'interface',
225           'test',
226           '<(webrtc_root)',
227         ],
228       },
229       'defines': [
230       ],
231       'include_dirs': [
232         'interface',
233         'test',
234         '<(webrtc_root)',
235       ],
236       'sources': [
237         'test/NETEQTEST_DummyRTPpacket.cc',
238         'test/NETEQTEST_DummyRTPpacket.h',
239         'test/NETEQTEST_RTPpacket.cc',
240         'test/NETEQTEST_RTPpacket.h',
241       ],
242       # Disable warnings to enable Win64 build, issue 1323.
243       'msvs_disabled_warnings': [
244         4267,  # size_t to int truncation.
245       ],
246     },
247   ], # targets
248 }