blob: 203e96e86772372198010d7f7bca3c4baf83aa32 [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{
ivoccaa5f4b2015-09-08 03:28:46 -070010 'conditions': [
11 ['enable_protobuf==1', {
12 'targets': [
13 {
ivoccaa5f4b2015-09-08 03:28:46 -070014 'target_name': 'neteq_rtpplay',
15 'type': 'executable',
16 'dependencies': [
17 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
henrik.lundin303d3e12016-05-26 05:56:03 -070018 '<(webrtc_root)/test/test.gyp:test_support',
19 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default',
ivoccaa5f4b2015-09-08 03:28:46 -070020 'neteq',
21 'neteq_unittest_tools',
ivoccaa5f4b2015-09-08 03:28:46 -070022 ],
23 'sources': [
24 'tools/neteq_rtpplay.cc',
25 ],
26 'defines': [
27 ],
28 }, # neteq_rtpplay
29 ],
30 }],
31 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000032 'targets': [
33 {
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000034 'target_name': 'RTPencode',
35 'type': 'executable',
36 'dependencies': [
37 # TODO(hlundin): Make RTPencode use ACM to encode files.
andrew@webrtc.org34235372013-04-30 23:43:26 +000038 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
Zeke Chin786dbdc2015-06-10 13:45:08 -070039 'cng',
40 'g711',
41 'g722',
42 'ilbc',
43 'isac',
44 'neteq_test_tools', # Test helpers
45 'pcm16b',
minyuecb23c0d2015-12-11 01:58:26 -080046 'webrtc_opus',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000047 ],
48 'defines': [
49 'CODEC_ILBC',
50 'CODEC_PCM16B',
51 'CODEC_G711',
52 'CODEC_G722',
53 'CODEC_ISAC',
54 'CODEC_PCM16B_WB',
55 'CODEC_ISAC_SWB',
56 'CODEC_PCM16B_32KHZ',
turaj@webrtc.org8d1cdaa2014-04-11 18:47:55 +000057 'CODEC_PCM16B_48KHZ',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000058 'CODEC_CNGCODEC8',
59 'CODEC_CNGCODEC16',
60 'CODEC_CNGCODEC32',
61 'CODEC_ATEVENT_DECODE',
62 'CODEC_RED',
minyuecb23c0d2015-12-11 01:58:26 -080063 'CODEC_OPUS',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000064 ],
65 'include_dirs': [
Henrik Kjellander74640892015-10-29 11:31:02 +010066 'include',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000067 'test',
pbos@webrtc.org57eb8582013-11-11 10:20:27 +000068 '<(webrtc_root)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000069 ],
70 'sources': [
71 'test/RTPencode.cc',
72 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +000073 # Disable warnings to enable Win64 build, issue 1323.
74 'msvs_disabled_warnings': [
75 4267, # size_t to int truncation.
76 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000077 },
78
79 {
80 'target_name': 'RTPjitter',
81 'type': 'executable',
82 'dependencies': [
83 '<(DEPTH)/testing/gtest.gyp:gtest',
84 ],
85 'sources': [
86 'test/RTPjitter.cc',
87 ],
88 },
89
90 {
henrik.lundin@webrtc.org184b9132014-04-02 20:56:17 +000091 'target_name': 'rtp_analyze',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000092 'type': 'executable',
93 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000094 '<(DEPTH)/testing/gtest.gyp:gtest',
henrik.lundin@webrtc.org184b9132014-04-02 20:56:17 +000095 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000096 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
Zeke Chin786dbdc2015-06-10 13:45:08 -070097 'neteq_unittest_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000098 ],
99 'sources': [
henrik.lundin@webrtc.org184b9132014-04-02 20:56:17 +0000100 'tools/rtp_analyze.cc',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000101 ],
102 },
103
104 {
105 'target_name': 'RTPchange',
106 'type': 'executable',
107 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000108 '<(DEPTH)/testing/gtest.gyp:gtest',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700109 'neteq_test_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000110 ],
111 'sources': [
112 'test/RTPchange.cc',
113 ],
114 },
115
116 {
117 'target_name': 'RTPtimeshift',
118 'type': 'executable',
119 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000120 '<(DEPTH)/testing/gtest.gyp:gtest',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700121 'neteq_test_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000122 ],
123 'sources': [
124 'test/RTPtimeshift.cc',
125 ],
126 },
127
128 {
henrik.lundin@webrtc.org20446e72014-12-01 14:23:01 +0000129 'target_name': 'rtpcat',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000130 'type': 'executable',
131 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000132 '<(DEPTH)/testing/gtest.gyp:gtest',
henrik.lundin@webrtc.org83317142014-12-01 11:25:04 +0000133 '<(webrtc_root)/test/test.gyp:rtp_test_utils',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000134 ],
135 'sources': [
henrik.lundin@webrtc.org20446e72014-12-01 14:23:01 +0000136 'tools/rtpcat.cc',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000137 ],
138 },
139
140 {
141 'target_name': 'rtp_to_text',
142 'type': 'executable',
143 'dependencies': [
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000144 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700145 'neteq_test_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000146 ],
147 'sources': [
148 'test/rtp_to_text.cc',
149 ],
150 },
151
152 {
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +0000153 'target_name': 'audio_classifier_test',
154 'type': 'executable',
155 'dependencies': [
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000156 'neteq',
minyue@webrtc.orgdb93b682015-03-03 09:28:26 +0000157 'webrtc_opus',
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +0000158 ],
159 'sources': [
160 'test/audio_classifier_test.cc',
161 ],
162 },
163
164 {
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000165 'target_name': 'neteq_test_support',
166 'type': 'static_library',
167 'dependencies': [
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000168 '<(DEPTH)/testing/gtest.gyp:gtest',
169 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700170 'neteq',
171 'neteq_unittest_tools',
172 'pcm16b',
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000173 ],
174 'sources': [
minyue@webrtc.org2c1bcf22015-02-17 10:17:09 +0000175 'tools/neteq_external_decoder_test.cc',
176 'tools/neteq_external_decoder_test.h',
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000177 'tools/neteq_performance_test.cc',
178 'tools/neteq_performance_test.h',
179 'tools/neteq_quality_test.cc',
180 'tools/neteq_quality_test.h',
181 ],
182 }, # neteq_test_support
183
184 {
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000185 'target_name': 'neteq_speed_test',
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000186 'type': 'executable',
187 'dependencies': [
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000188 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
henrik.lundin@webrtc.orga366e812014-01-10 08:24:04 +0000189 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700190 'neteq',
191 'neteq_test_support',
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000192 ],
193 'sources': [
194 'test/neteq_speed_test.cc',
195 ],
196 },
197
198 {
minyue@webrtc.org8f76cd22015-03-18 20:43:40 +0000199 'target_name': 'neteq_opus_quality_test',
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000200 'type': 'executable',
201 'dependencies': [
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000202 '<(DEPTH)/testing/gtest.gyp:gtest',
203 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
204 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700205 'neteq',
206 'neteq_test_support',
207 'webrtc_opus',
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000208 ],
209 'sources': [
minyue@webrtc.org8f76cd22015-03-18 20:43:40 +0000210 'test/neteq_opus_quality_test.cc',
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000211 ],
212 },
213
214 {
minyue@webrtc.org6568e972014-06-25 12:17:41 +0000215 'target_name': 'neteq_isac_quality_test',
216 'type': 'executable',
217 'dependencies': [
minyue@webrtc.org6568e972014-06-25 12:17:41 +0000218 '<(DEPTH)/testing/gtest.gyp:gtest',
219 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
220 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700221 'isac_fix',
222 'neteq',
223 'neteq_test_support',
minyue@webrtc.org6568e972014-06-25 12:17:41 +0000224 ],
225 'sources': [
226 'test/neteq_isac_quality_test.cc',
227 ],
228 },
229
230 {
Henrik Lundine5ff00a2015-05-12 12:09:59 +0200231 'target_name': 'neteq_pcmu_quality_test',
232 'type': 'executable',
233 'dependencies': [
Henrik Lundine5ff00a2015-05-12 12:09:59 +0200234 '<(DEPTH)/testing/gtest.gyp:gtest',
235 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
236 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700237 'g711',
238 'neteq',
239 'neteq_test_support',
Henrik Lundine5ff00a2015-05-12 12:09:59 +0200240 ],
241 'sources': [
242 'test/neteq_pcmu_quality_test.cc',
243 ],
244 },
245
246 {
Henrik Lundin81717352015-05-12 15:04:34 +0200247 'target_name': 'neteq_ilbc_quality_test',
248 'type': 'executable',
249 'dependencies': [
Henrik Lundin81717352015-05-12 15:04:34 +0200250 '<(DEPTH)/testing/gtest.gyp:gtest',
251 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
252 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700253 'neteq',
254 'neteq_test_support',
255 'ilbc',
Henrik Lundin81717352015-05-12 15:04:34 +0200256 ],
257 'sources': [
258 'test/neteq_ilbc_quality_test.cc',
259 ],
260 },
261
262 {
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000263 'target_name': 'neteq_test_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000264 # Collection of useful functions used in other tests.
265 'type': 'static_library',
266 'variables': {
267 # Expects RTP packets without payloads when enabled.
268 'neteq_dummy_rtp%': 0,
269 },
270 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000271 '<(DEPTH)/testing/gtest.gyp:gtest',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700272 '<(webrtc_root)/common.gyp:webrtc_common',
273 'cng',
274 'g711',
275 'g722',
276 'ilbc',
277 'isac',
278 'pcm16b',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000279 ],
280 'direct_dependent_settings': {
281 'include_dirs': [
Henrik Kjellander74640892015-10-29 11:31:02 +0100282 'include',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000283 'test',
pbos@webrtc.org57eb8582013-11-11 10:20:27 +0000284 '<(webrtc_root)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000285 ],
286 },
287 'defines': [
288 ],
289 'include_dirs': [
Henrik Kjellander74640892015-10-29 11:31:02 +0100290 'include',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000291 'test',
pbos@webrtc.org57eb8582013-11-11 10:20:27 +0000292 '<(webrtc_root)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000293 ],
294 'sources': [
295 'test/NETEQTEST_DummyRTPpacket.cc',
296 'test/NETEQTEST_DummyRTPpacket.h',
297 'test/NETEQTEST_RTPpacket.cc',
298 'test/NETEQTEST_RTPpacket.h',
299 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000300 # Disable warnings to enable Win64 build, issue 1323.
301 'msvs_disabled_warnings': [
302 4267, # size_t to int truncation.
303 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000304 },
305 ], # targets
306}