blob: f02d3deee9b3e1c66989c850f25b1df24ec4d188 [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 {
14 'target_name': 'rtc_event_log_source',
15 'type': 'static_library',
16 'dependencies': [
17 '<(webrtc_root)/webrtc.gyp:rtc_event_log',
18 '<(webrtc_root)/webrtc.gyp:rtc_event_log_proto',
19 ],
20 'sources': [
21 'tools/rtc_event_log_source.h',
22 'tools/rtc_event_log_source.cc',
23 ],
24 },
25 {
26 'target_name': 'neteq_rtpplay',
27 'type': 'executable',
28 'dependencies': [
29 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
30 '<(webrtc_root)/test/test.gyp:test_support_main',
31 'rtc_event_log_source',
32 'neteq',
33 'neteq_unittest_tools',
34 'pcm16b',
35 ],
36 'sources': [
37 'tools/neteq_rtpplay.cc',
38 ],
39 'defines': [
40 ],
41 }, # neteq_rtpplay
minyue5f026d02015-12-16 07:36:04 -080042 {
43 'target_name': 'neteq_unittest_proto',
44 'type': 'static_library',
45 'sources': [
46 'neteq_unittest.proto',
47 ],
48 'variables': {
49 'proto_in_dir': '.',
50 # Workaround to protect against gyp's pathname relativization when
51 # this file is included by modules.gyp.
52 'proto_out_protected': 'webrtc/audio_coding/neteq',
53 'proto_out_dir': '<(proto_out_protected)',
54 },
55 'includes': ['../../../build/protoc.gypi',],
56 },
ivoccaa5f4b2015-09-08 03:28:46 -070057 ],
58 }],
59 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000060 'targets': [
61 {
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000062 'target_name': 'RTPencode',
63 'type': 'executable',
64 'dependencies': [
65 # TODO(hlundin): Make RTPencode use ACM to encode files.
andrew@webrtc.org34235372013-04-30 23:43:26 +000066 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
Zeke Chin786dbdc2015-06-10 13:45:08 -070067 'cng',
68 'g711',
69 'g722',
70 'ilbc',
71 'isac',
72 'neteq_test_tools', # Test helpers
73 'pcm16b',
minyuecb23c0d2015-12-11 01:58:26 -080074 'webrtc_opus',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000075 ],
76 'defines': [
77 'CODEC_ILBC',
78 'CODEC_PCM16B',
79 'CODEC_G711',
80 'CODEC_G722',
81 'CODEC_ISAC',
82 'CODEC_PCM16B_WB',
83 'CODEC_ISAC_SWB',
84 'CODEC_PCM16B_32KHZ',
turaj@webrtc.org8d1cdaa2014-04-11 18:47:55 +000085 'CODEC_PCM16B_48KHZ',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000086 'CODEC_CNGCODEC8',
87 'CODEC_CNGCODEC16',
88 'CODEC_CNGCODEC32',
89 'CODEC_ATEVENT_DECODE',
90 'CODEC_RED',
minyuecb23c0d2015-12-11 01:58:26 -080091 'CODEC_OPUS',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000092 ],
93 'include_dirs': [
Henrik Kjellander74640892015-10-29 11:31:02 +010094 'include',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000095 'test',
pbos@webrtc.org57eb8582013-11-11 10:20:27 +000096 '<(webrtc_root)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000097 ],
98 'sources': [
99 'test/RTPencode.cc',
100 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000101 # Disable warnings to enable Win64 build, issue 1323.
102 'msvs_disabled_warnings': [
103 4267, # size_t to int truncation.
104 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000105 },
106
107 {
108 'target_name': 'RTPjitter',
109 'type': 'executable',
110 'dependencies': [
111 '<(DEPTH)/testing/gtest.gyp:gtest',
112 ],
113 'sources': [
114 'test/RTPjitter.cc',
115 ],
116 },
117
118 {
henrik.lundin@webrtc.org184b9132014-04-02 20:56:17 +0000119 'target_name': 'rtp_analyze',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000120 'type': 'executable',
121 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000122 '<(DEPTH)/testing/gtest.gyp:gtest',
henrik.lundin@webrtc.org184b9132014-04-02 20:56:17 +0000123 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000124 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700125 'neteq_unittest_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000126 ],
127 'sources': [
henrik.lundin@webrtc.org184b9132014-04-02 20:56:17 +0000128 'tools/rtp_analyze.cc',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000129 ],
130 },
131
132 {
133 'target_name': 'RTPchange',
134 'type': 'executable',
135 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000136 '<(DEPTH)/testing/gtest.gyp:gtest',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700137 'neteq_test_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000138 ],
139 'sources': [
140 'test/RTPchange.cc',
141 ],
142 },
143
144 {
145 'target_name': 'RTPtimeshift',
146 'type': 'executable',
147 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000148 '<(DEPTH)/testing/gtest.gyp:gtest',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700149 'neteq_test_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000150 ],
151 'sources': [
152 'test/RTPtimeshift.cc',
153 ],
154 },
155
156 {
henrik.lundin@webrtc.org20446e72014-12-01 14:23:01 +0000157 'target_name': 'rtpcat',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000158 'type': 'executable',
159 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000160 '<(DEPTH)/testing/gtest.gyp:gtest',
henrik.lundin@webrtc.org83317142014-12-01 11:25:04 +0000161 '<(webrtc_root)/test/test.gyp:rtp_test_utils',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000162 ],
163 'sources': [
henrik.lundin@webrtc.org20446e72014-12-01 14:23:01 +0000164 'tools/rtpcat.cc',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000165 ],
166 },
167
168 {
169 'target_name': 'rtp_to_text',
170 'type': 'executable',
171 'dependencies': [
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000172 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700173 'neteq_test_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000174 ],
175 'sources': [
176 'test/rtp_to_text.cc',
177 ],
178 },
179
180 {
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +0000181 'target_name': 'audio_classifier_test',
182 'type': 'executable',
183 'dependencies': [
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000184 'neteq',
minyue@webrtc.orgdb93b682015-03-03 09:28:26 +0000185 'webrtc_opus',
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +0000186 ],
187 'sources': [
188 'test/audio_classifier_test.cc',
189 ],
190 },
191
192 {
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000193 'target_name': 'neteq_test_support',
194 'type': 'static_library',
195 'dependencies': [
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000196 '<(DEPTH)/testing/gtest.gyp:gtest',
197 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700198 'neteq',
199 'neteq_unittest_tools',
200 'pcm16b',
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000201 ],
202 'sources': [
minyue@webrtc.org2c1bcf22015-02-17 10:17:09 +0000203 'tools/neteq_external_decoder_test.cc',
204 'tools/neteq_external_decoder_test.h',
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000205 'tools/neteq_performance_test.cc',
206 'tools/neteq_performance_test.h',
207 'tools/neteq_quality_test.cc',
208 'tools/neteq_quality_test.h',
209 ],
210 }, # neteq_test_support
211
212 {
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000213 'target_name': 'neteq_speed_test',
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000214 'type': 'executable',
215 'dependencies': [
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000216 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
henrik.lundin@webrtc.orga366e812014-01-10 08:24:04 +0000217 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700218 'neteq',
219 'neteq_test_support',
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000220 ],
221 'sources': [
222 'test/neteq_speed_test.cc',
223 ],
224 },
225
226 {
minyue@webrtc.org8f76cd22015-03-18 20:43:40 +0000227 'target_name': 'neteq_opus_quality_test',
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000228 'type': 'executable',
229 'dependencies': [
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000230 '<(DEPTH)/testing/gtest.gyp:gtest',
231 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
232 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700233 'neteq',
234 'neteq_test_support',
235 'webrtc_opus',
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000236 ],
237 'sources': [
minyue@webrtc.org8f76cd22015-03-18 20:43:40 +0000238 'test/neteq_opus_quality_test.cc',
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000239 ],
240 },
241
242 {
minyue@webrtc.org6568e972014-06-25 12:17:41 +0000243 'target_name': 'neteq_isac_quality_test',
244 'type': 'executable',
245 'dependencies': [
minyue@webrtc.org6568e972014-06-25 12:17:41 +0000246 '<(DEPTH)/testing/gtest.gyp:gtest',
247 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
248 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700249 'isac_fix',
250 'neteq',
251 'neteq_test_support',
minyue@webrtc.org6568e972014-06-25 12:17:41 +0000252 ],
253 'sources': [
254 'test/neteq_isac_quality_test.cc',
255 ],
256 },
257
258 {
Henrik Lundine5ff00a2015-05-12 12:09:59 +0200259 'target_name': 'neteq_pcmu_quality_test',
260 'type': 'executable',
261 'dependencies': [
Henrik Lundine5ff00a2015-05-12 12:09:59 +0200262 '<(DEPTH)/testing/gtest.gyp:gtest',
263 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
264 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700265 'g711',
266 'neteq',
267 'neteq_test_support',
Henrik Lundine5ff00a2015-05-12 12:09:59 +0200268 ],
269 'sources': [
270 'test/neteq_pcmu_quality_test.cc',
271 ],
272 },
273
274 {
Henrik Lundin81717352015-05-12 15:04:34 +0200275 'target_name': 'neteq_ilbc_quality_test',
276 'type': 'executable',
277 'dependencies': [
Henrik Lundin81717352015-05-12 15:04:34 +0200278 '<(DEPTH)/testing/gtest.gyp:gtest',
279 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
280 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700281 'neteq',
282 'neteq_test_support',
283 'ilbc',
Henrik Lundin81717352015-05-12 15:04:34 +0200284 ],
285 'sources': [
286 'test/neteq_ilbc_quality_test.cc',
287 ],
288 },
289
290 {
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000291 'target_name': 'neteq_test_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000292 # Collection of useful functions used in other tests.
293 'type': 'static_library',
294 'variables': {
295 # Expects RTP packets without payloads when enabled.
296 'neteq_dummy_rtp%': 0,
297 },
298 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000299 '<(DEPTH)/testing/gtest.gyp:gtest',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700300 '<(webrtc_root)/common.gyp:webrtc_common',
301 'cng',
302 'g711',
303 'g722',
304 'ilbc',
305 'isac',
306 'pcm16b',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000307 ],
308 'direct_dependent_settings': {
309 'include_dirs': [
Henrik Kjellander74640892015-10-29 11:31:02 +0100310 'include',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000311 'test',
pbos@webrtc.org57eb8582013-11-11 10:20:27 +0000312 '<(webrtc_root)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000313 ],
314 },
315 'defines': [
316 ],
317 'include_dirs': [
Henrik Kjellander74640892015-10-29 11:31:02 +0100318 'include',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000319 'test',
pbos@webrtc.org57eb8582013-11-11 10:20:27 +0000320 '<(webrtc_root)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000321 ],
322 'sources': [
323 'test/NETEQTEST_DummyRTPpacket.cc',
324 'test/NETEQTEST_DummyRTPpacket.h',
325 'test/NETEQTEST_RTPpacket.cc',
326 'test/NETEQTEST_RTPpacket.h',
327 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000328 # Disable warnings to enable Win64 build, issue 1323.
329 'msvs_disabled_warnings': [
330 4267, # size_t to int truncation.
331 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000332 },
333 ], # targets
334}