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