blob: ee9583ab85f329c807be01c294c63ac8f80e899e [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
42 ],
43 }],
44 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000045 'targets': [
46 {
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000047 'target_name': 'RTPencode',
48 'type': 'executable',
49 'dependencies': [
50 # TODO(hlundin): Make RTPencode use ACM to encode files.
andrew@webrtc.org34235372013-04-30 23:43:26 +000051 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
Zeke Chin786dbdc2015-06-10 13:45:08 -070052 'cng',
53 'g711',
54 'g722',
55 'ilbc',
56 'isac',
57 'neteq_test_tools', # Test helpers
58 'pcm16b',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000059 ],
60 'defines': [
61 'CODEC_ILBC',
62 'CODEC_PCM16B',
63 'CODEC_G711',
64 'CODEC_G722',
65 'CODEC_ISAC',
66 'CODEC_PCM16B_WB',
67 'CODEC_ISAC_SWB',
68 'CODEC_PCM16B_32KHZ',
turaj@webrtc.org8d1cdaa2014-04-11 18:47:55 +000069 'CODEC_PCM16B_48KHZ',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000070 'CODEC_CNGCODEC8',
71 'CODEC_CNGCODEC16',
72 'CODEC_CNGCODEC32',
73 'CODEC_ATEVENT_DECODE',
74 'CODEC_RED',
75 ],
76 'include_dirs': [
Henrik Kjellander74640892015-10-29 11:31:02 +010077 'include',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000078 'test',
pbos@webrtc.org57eb8582013-11-11 10:20:27 +000079 '<(webrtc_root)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000080 ],
81 'sources': [
82 'test/RTPencode.cc',
83 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +000084 # Disable warnings to enable Win64 build, issue 1323.
85 'msvs_disabled_warnings': [
86 4267, # size_t to int truncation.
87 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000088 },
89
90 {
91 'target_name': 'RTPjitter',
92 'type': 'executable',
93 'dependencies': [
94 '<(DEPTH)/testing/gtest.gyp:gtest',
95 ],
96 'sources': [
97 'test/RTPjitter.cc',
98 ],
99 },
100
101 {
henrik.lundin@webrtc.org184b9132014-04-02 20:56:17 +0000102 'target_name': 'rtp_analyze',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000103 'type': 'executable',
104 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000105 '<(DEPTH)/testing/gtest.gyp:gtest',
henrik.lundin@webrtc.org184b9132014-04-02 20:56:17 +0000106 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000107 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700108 'neteq_unittest_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000109 ],
110 'sources': [
henrik.lundin@webrtc.org184b9132014-04-02 20:56:17 +0000111 'tools/rtp_analyze.cc',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000112 ],
113 },
114
115 {
116 'target_name': 'RTPchange',
117 'type': 'executable',
118 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000119 '<(DEPTH)/testing/gtest.gyp:gtest',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700120 'neteq_test_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000121 ],
122 'sources': [
123 'test/RTPchange.cc',
124 ],
125 },
126
127 {
128 'target_name': 'RTPtimeshift',
129 'type': 'executable',
130 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000131 '<(DEPTH)/testing/gtest.gyp:gtest',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700132 'neteq_test_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000133 ],
134 'sources': [
135 'test/RTPtimeshift.cc',
136 ],
137 },
138
139 {
henrik.lundin@webrtc.org20446e72014-12-01 14:23:01 +0000140 'target_name': 'rtpcat',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000141 'type': 'executable',
142 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000143 '<(DEPTH)/testing/gtest.gyp:gtest',
henrik.lundin@webrtc.org83317142014-12-01 11:25:04 +0000144 '<(webrtc_root)/test/test.gyp:rtp_test_utils',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000145 ],
146 'sources': [
henrik.lundin@webrtc.org20446e72014-12-01 14:23:01 +0000147 'tools/rtpcat.cc',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000148 ],
149 },
150
151 {
152 'target_name': 'rtp_to_text',
153 'type': 'executable',
154 'dependencies': [
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000155 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700156 'neteq_test_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000157 ],
158 'sources': [
159 'test/rtp_to_text.cc',
160 ],
161 },
162
163 {
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +0000164 'target_name': 'audio_classifier_test',
165 'type': 'executable',
166 'dependencies': [
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000167 'neteq',
minyue@webrtc.orgdb93b682015-03-03 09:28:26 +0000168 'webrtc_opus',
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +0000169 ],
170 'sources': [
171 'test/audio_classifier_test.cc',
172 ],
173 },
174
175 {
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000176 'target_name': 'neteq_test_support',
177 'type': 'static_library',
178 'dependencies': [
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000179 '<(DEPTH)/testing/gtest.gyp:gtest',
180 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700181 'neteq',
182 'neteq_unittest_tools',
183 'pcm16b',
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000184 ],
185 'sources': [
minyue@webrtc.org2c1bcf22015-02-17 10:17:09 +0000186 'tools/neteq_external_decoder_test.cc',
187 'tools/neteq_external_decoder_test.h',
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000188 'tools/neteq_performance_test.cc',
189 'tools/neteq_performance_test.h',
190 'tools/neteq_quality_test.cc',
191 'tools/neteq_quality_test.h',
192 ],
193 }, # neteq_test_support
194
195 {
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000196 'target_name': 'neteq_speed_test',
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000197 'type': 'executable',
198 'dependencies': [
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000199 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
henrik.lundin@webrtc.orga366e812014-01-10 08:24:04 +0000200 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700201 'neteq',
202 'neteq_test_support',
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000203 ],
204 'sources': [
205 'test/neteq_speed_test.cc',
206 ],
207 },
208
209 {
minyue@webrtc.org8f76cd22015-03-18 20:43:40 +0000210 'target_name': 'neteq_opus_quality_test',
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000211 'type': 'executable',
212 'dependencies': [
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000213 '<(DEPTH)/testing/gtest.gyp:gtest',
214 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
215 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700216 'neteq',
217 'neteq_test_support',
218 'webrtc_opus',
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000219 ],
220 'sources': [
minyue@webrtc.org8f76cd22015-03-18 20:43:40 +0000221 'test/neteq_opus_quality_test.cc',
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000222 ],
223 },
224
225 {
minyue@webrtc.org6568e972014-06-25 12:17:41 +0000226 'target_name': 'neteq_isac_quality_test',
227 'type': 'executable',
228 'dependencies': [
minyue@webrtc.org6568e972014-06-25 12:17:41 +0000229 '<(DEPTH)/testing/gtest.gyp:gtest',
230 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
231 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700232 'isac_fix',
233 'neteq',
234 'neteq_test_support',
minyue@webrtc.org6568e972014-06-25 12:17:41 +0000235 ],
236 'sources': [
237 'test/neteq_isac_quality_test.cc',
238 ],
239 },
240
241 {
Henrik Lundine5ff00a2015-05-12 12:09:59 +0200242 'target_name': 'neteq_pcmu_quality_test',
243 'type': 'executable',
244 'dependencies': [
Henrik Lundine5ff00a2015-05-12 12:09:59 +0200245 '<(DEPTH)/testing/gtest.gyp:gtest',
246 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
247 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700248 'g711',
249 'neteq',
250 'neteq_test_support',
Henrik Lundine5ff00a2015-05-12 12:09:59 +0200251 ],
252 'sources': [
253 'test/neteq_pcmu_quality_test.cc',
254 ],
255 },
256
257 {
Henrik Lundin81717352015-05-12 15:04:34 +0200258 'target_name': 'neteq_ilbc_quality_test',
259 'type': 'executable',
260 'dependencies': [
Henrik Lundin81717352015-05-12 15:04:34 +0200261 '<(DEPTH)/testing/gtest.gyp:gtest',
262 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
263 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700264 'neteq',
265 'neteq_test_support',
266 'ilbc',
Henrik Lundin81717352015-05-12 15:04:34 +0200267 ],
268 'sources': [
269 'test/neteq_ilbc_quality_test.cc',
270 ],
271 },
272
273 {
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000274 'target_name': 'neteq_test_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000275 # Collection of useful functions used in other tests.
276 'type': 'static_library',
277 'variables': {
278 # Expects RTP packets without payloads when enabled.
279 'neteq_dummy_rtp%': 0,
280 },
281 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000282 '<(DEPTH)/testing/gtest.gyp:gtest',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700283 '<(webrtc_root)/common.gyp:webrtc_common',
284 'cng',
285 'g711',
286 'g722',
287 'ilbc',
288 'isac',
289 'pcm16b',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000290 ],
291 'direct_dependent_settings': {
292 'include_dirs': [
Henrik Kjellander74640892015-10-29 11:31:02 +0100293 'include',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000294 'test',
pbos@webrtc.org57eb8582013-11-11 10:20:27 +0000295 '<(webrtc_root)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000296 ],
297 },
298 'defines': [
299 ],
300 'include_dirs': [
Henrik Kjellander74640892015-10-29 11:31:02 +0100301 'include',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000302 'test',
pbos@webrtc.org57eb8582013-11-11 10:20:27 +0000303 '<(webrtc_root)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000304 ],
305 'sources': [
306 'test/NETEQTEST_DummyRTPpacket.cc',
307 'test/NETEQTEST_DummyRTPpacket.h',
308 'test/NETEQTEST_RTPpacket.cc',
309 'test/NETEQTEST_RTPpacket.h',
310 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000311 # Disable warnings to enable Win64 build, issue 1323.
312 'msvs_disabled_warnings': [
313 4267, # size_t to int truncation.
314 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000315 },
316 ], # targets
317}