blob: b37eb5193022c8212e64990ec63afdf9ab8e7763 [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': [
aleloi17dfa742016-08-03 01:17:25 -070083 '<(webrtc_root)/common.gyp:webrtc_common',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000084 '<(DEPTH)/testing/gtest.gyp:gtest',
85 ],
86 'sources': [
87 'test/RTPjitter.cc',
88 ],
89 },
90
91 {
henrik.lundin@webrtc.org184b9132014-04-02 20:56:17 +000092 'target_name': 'rtp_analyze',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000093 'type': 'executable',
94 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000095 '<(DEPTH)/testing/gtest.gyp:gtest',
henrik.lundin@webrtc.org184b9132014-04-02 20:56:17 +000096 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000097 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
Zeke Chin786dbdc2015-06-10 13:45:08 -070098 'neteq_unittest_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000099 ],
100 'sources': [
henrik.lundin@webrtc.org184b9132014-04-02 20:56:17 +0000101 'tools/rtp_analyze.cc',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000102 ],
103 },
104
105 {
106 'target_name': 'RTPchange',
107 'type': 'executable',
108 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000109 '<(DEPTH)/testing/gtest.gyp:gtest',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700110 'neteq_test_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000111 ],
112 'sources': [
113 'test/RTPchange.cc',
114 ],
115 },
116
117 {
118 'target_name': 'RTPtimeshift',
119 'type': 'executable',
120 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000121 '<(DEPTH)/testing/gtest.gyp:gtest',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700122 'neteq_test_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000123 ],
124 'sources': [
125 'test/RTPtimeshift.cc',
126 ],
127 },
128
129 {
henrik.lundin@webrtc.org20446e72014-12-01 14:23:01 +0000130 'target_name': 'rtpcat',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000131 'type': 'executable',
132 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000133 '<(DEPTH)/testing/gtest.gyp:gtest',
henrik.lundin@webrtc.org83317142014-12-01 11:25:04 +0000134 '<(webrtc_root)/test/test.gyp:rtp_test_utils',
aleloi5556dcb2016-08-02 04:27:25 -0700135 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000136 ],
137 'sources': [
henrik.lundin@webrtc.org20446e72014-12-01 14:23:01 +0000138 'tools/rtpcat.cc',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000139 ],
140 },
141
142 {
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +0000143 'target_name': 'audio_classifier_test',
144 'type': 'executable',
145 'dependencies': [
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000146 'neteq',
minyue@webrtc.orgdb93b682015-03-03 09:28:26 +0000147 'webrtc_opus',
aleloi63910122016-08-10 04:41:14 -0700148 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
jan.skoglund@webrtc.orgc3d13d32014-03-10 22:50:19 +0000149 ],
150 'sources': [
151 'test/audio_classifier_test.cc',
152 ],
153 },
154
155 {
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000156 'target_name': 'neteq_test_support',
157 'type': 'static_library',
158 'dependencies': [
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000159 '<(DEPTH)/testing/gtest.gyp:gtest',
160 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700161 'neteq',
162 'neteq_unittest_tools',
163 'pcm16b',
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000164 ],
165 'sources': [
minyue@webrtc.org2c1bcf22015-02-17 10:17:09 +0000166 'tools/neteq_external_decoder_test.cc',
167 'tools/neteq_external_decoder_test.h',
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000168 'tools/neteq_performance_test.cc',
169 'tools/neteq_performance_test.h',
ehmaldonado861da3c2016-08-19 07:02:24 -0700170 ],
171 }, # neteq_test_support
172
173 {
174 'target_name': 'neteq_quality_test_support',
175 'type': 'static_library',
176 'dependencies': [
ehmaldonado6c46eaa2016-08-22 09:48:02 -0700177 '<(DEPTH)/testing/gtest.gyp:gtest',
ehmaldonado861da3c2016-08-19 07:02:24 -0700178 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
179 'neteq',
180 'neteq_unittest_tools',
181 ],
182 'sources': [
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +0000183 'tools/neteq_quality_test.cc',
184 'tools/neteq_quality_test.h',
185 ],
186 }, # neteq_test_support
187
188 {
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000189 'target_name': 'neteq_speed_test',
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000190 'type': 'executable',
191 'dependencies': [
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000192 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
aleloi116fd612016-08-10 04:16:36 -0700193 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
194 '<(webrtc_root)/test/test.gyp:test_support',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700195 'neteq',
196 'neteq_test_support',
henrik.lundin@webrtc.orgd1fc5d42013-09-17 08:38:02 +0000197 ],
198 'sources': [
199 'test/neteq_speed_test.cc',
200 ],
201 },
202
203 {
minyue@webrtc.org8f76cd22015-03-18 20:43:40 +0000204 'target_name': 'neteq_opus_quality_test',
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000205 'type': 'executable',
206 'dependencies': [
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000207 '<(DEPTH)/testing/gtest.gyp:gtest',
208 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
209 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700210 'neteq',
ehmaldonado861da3c2016-08-19 07:02:24 -0700211 'neteq_quality_test_support',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700212 'webrtc_opus',
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000213 ],
214 'sources': [
minyue@webrtc.org8f76cd22015-03-18 20:43:40 +0000215 'test/neteq_opus_quality_test.cc',
minyue@webrtc.orgb28bfa72014-03-21 12:07:40 +0000216 ],
217 },
218
219 {
minyue@webrtc.org6568e972014-06-25 12:17:41 +0000220 'target_name': 'neteq_isac_quality_test',
221 'type': 'executable',
222 'dependencies': [
minyue@webrtc.org6568e972014-06-25 12:17:41 +0000223 '<(DEPTH)/testing/gtest.gyp:gtest',
224 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
225 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700226 'isac_fix',
227 'neteq',
ehmaldonado861da3c2016-08-19 07:02:24 -0700228 'neteq_quality_test_support',
minyue@webrtc.org6568e972014-06-25 12:17:41 +0000229 ],
230 'sources': [
231 'test/neteq_isac_quality_test.cc',
232 ],
233 },
234
235 {
Henrik Lundine5ff00a2015-05-12 12:09:59 +0200236 'target_name': 'neteq_pcmu_quality_test',
237 'type': 'executable',
238 'dependencies': [
Henrik Lundine5ff00a2015-05-12 12:09:59 +0200239 '<(DEPTH)/testing/gtest.gyp:gtest',
240 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
241 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700242 'g711',
243 'neteq',
ehmaldonado861da3c2016-08-19 07:02:24 -0700244 'neteq_quality_test_support',
Henrik Lundine5ff00a2015-05-12 12:09:59 +0200245 ],
246 'sources': [
247 'test/neteq_pcmu_quality_test.cc',
248 ],
249 },
250
251 {
Henrik Lundin81717352015-05-12 15:04:34 +0200252 'target_name': 'neteq_ilbc_quality_test',
253 'type': 'executable',
254 'dependencies': [
Henrik Lundin81717352015-05-12 15:04:34 +0200255 '<(DEPTH)/testing/gtest.gyp:gtest',
256 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
aleloi0e0be0a2016-08-10 04:55:20 -0700257 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
Henrik Lundin81717352015-05-12 15:04:34 +0200258 '<(webrtc_root)/test/test.gyp:test_support_main',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700259 'neteq',
ehmaldonado861da3c2016-08-19 07:02:24 -0700260 'neteq_quality_test_support',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700261 'ilbc',
Henrik Lundin81717352015-05-12 15:04:34 +0200262 ],
263 'sources': [
264 'test/neteq_ilbc_quality_test.cc',
265 ],
266 },
267
268 {
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000269 'target_name': 'neteq_test_tools',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000270 # Collection of useful functions used in other tests.
271 'type': 'static_library',
272 'variables': {
273 # Expects RTP packets without payloads when enabled.
274 'neteq_dummy_rtp%': 0,
275 },
276 'dependencies': [
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000277 '<(DEPTH)/testing/gtest.gyp:gtest',
Zeke Chin786dbdc2015-06-10 13:45:08 -0700278 '<(webrtc_root)/common.gyp:webrtc_common',
279 'cng',
280 'g711',
281 'g722',
282 'ilbc',
283 'isac',
284 'pcm16b',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000285 ],
286 'direct_dependent_settings': {
287 'include_dirs': [
Henrik Kjellander74640892015-10-29 11:31:02 +0100288 'include',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000289 'test',
pbos@webrtc.org57eb8582013-11-11 10:20:27 +0000290 '<(webrtc_root)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000291 ],
292 },
293 'defines': [
294 ],
295 'include_dirs': [
Henrik Kjellander74640892015-10-29 11:31:02 +0100296 'include',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000297 'test',
pbos@webrtc.org57eb8582013-11-11 10:20:27 +0000298 '<(webrtc_root)',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000299 ],
300 'sources': [
301 'test/NETEQTEST_DummyRTPpacket.cc',
302 'test/NETEQTEST_DummyRTPpacket.h',
303 'test/NETEQTEST_RTPpacket.cc',
304 'test/NETEQTEST_RTPpacket.h',
305 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000306 # Disable warnings to enable Win64 build, issue 1323.
307 'msvs_disabled_warnings': [
308 4267, # size_t to int truncation.
309 ],
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +0000310 },
311 ], # targets
312}