henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 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 | { |
ivoc | caa5f4b | 2015-09-08 03:28:46 -0700 | [diff] [blame] | 10 | '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 |
minyue | 5f026d0 | 2015-12-16 07:36:04 -0800 | [diff] [blame^] | 42 | { |
| 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 | }, |
ivoc | caa5f4b | 2015-09-08 03:28:46 -0700 | [diff] [blame] | 57 | ], |
| 58 | }], |
| 59 | ], |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 60 | 'targets': [ |
| 61 | { |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 62 | 'target_name': 'RTPencode', |
| 63 | 'type': 'executable', |
| 64 | 'dependencies': [ |
| 65 | # TODO(hlundin): Make RTPencode use ACM to encode files. |
andrew@webrtc.org | 3423537 | 2013-04-30 23:43:26 +0000 | [diff] [blame] | 66 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 67 | 'cng', |
| 68 | 'g711', |
| 69 | 'g722', |
| 70 | 'ilbc', |
| 71 | 'isac', |
| 72 | 'neteq_test_tools', # Test helpers |
| 73 | 'pcm16b', |
minyue | cb23c0d | 2015-12-11 01:58:26 -0800 | [diff] [blame] | 74 | 'webrtc_opus', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 75 | ], |
| 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.org | 8d1cdaa | 2014-04-11 18:47:55 +0000 | [diff] [blame] | 85 | 'CODEC_PCM16B_48KHZ', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 86 | 'CODEC_CNGCODEC8', |
| 87 | 'CODEC_CNGCODEC16', |
| 88 | 'CODEC_CNGCODEC32', |
| 89 | 'CODEC_ATEVENT_DECODE', |
| 90 | 'CODEC_RED', |
minyue | cb23c0d | 2015-12-11 01:58:26 -0800 | [diff] [blame] | 91 | 'CODEC_OPUS', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 92 | ], |
| 93 | 'include_dirs': [ |
Henrik Kjellander | 7464089 | 2015-10-29 11:31:02 +0100 | [diff] [blame] | 94 | 'include', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 95 | 'test', |
pbos@webrtc.org | 57eb858 | 2013-11-11 10:20:27 +0000 | [diff] [blame] | 96 | '<(webrtc_root)', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 97 | ], |
| 98 | 'sources': [ |
| 99 | 'test/RTPencode.cc', |
| 100 | ], |
kjellander@webrtc.org | fa53d87 | 2013-02-04 10:07:17 +0000 | [diff] [blame] | 101 | # Disable warnings to enable Win64 build, issue 1323. |
| 102 | 'msvs_disabled_warnings': [ |
| 103 | 4267, # size_t to int truncation. |
| 104 | ], |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 105 | }, |
| 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.org | 184b913 | 2014-04-02 20:56:17 +0000 | [diff] [blame] | 119 | 'target_name': 'rtp_analyze', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 120 | 'type': 'executable', |
| 121 | 'dependencies': [ |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 122 | '<(DEPTH)/testing/gtest.gyp:gtest', |
henrik.lundin@webrtc.org | 184b913 | 2014-04-02 20:56:17 +0000 | [diff] [blame] | 123 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 +0000 | [diff] [blame] | 124 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default', |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 125 | 'neteq_unittest_tools', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 126 | ], |
| 127 | 'sources': [ |
henrik.lundin@webrtc.org | 184b913 | 2014-04-02 20:56:17 +0000 | [diff] [blame] | 128 | 'tools/rtp_analyze.cc', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 129 | ], |
| 130 | }, |
| 131 | |
| 132 | { |
| 133 | 'target_name': 'RTPchange', |
| 134 | 'type': 'executable', |
| 135 | 'dependencies': [ |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 136 | '<(DEPTH)/testing/gtest.gyp:gtest', |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 137 | 'neteq_test_tools', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 138 | ], |
| 139 | 'sources': [ |
| 140 | 'test/RTPchange.cc', |
| 141 | ], |
| 142 | }, |
| 143 | |
| 144 | { |
| 145 | 'target_name': 'RTPtimeshift', |
| 146 | 'type': 'executable', |
| 147 | 'dependencies': [ |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 148 | '<(DEPTH)/testing/gtest.gyp:gtest', |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 149 | 'neteq_test_tools', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 150 | ], |
| 151 | 'sources': [ |
| 152 | 'test/RTPtimeshift.cc', |
| 153 | ], |
| 154 | }, |
| 155 | |
| 156 | { |
henrik.lundin@webrtc.org | 20446e7 | 2014-12-01 14:23:01 +0000 | [diff] [blame] | 157 | 'target_name': 'rtpcat', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 158 | 'type': 'executable', |
| 159 | 'dependencies': [ |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 160 | '<(DEPTH)/testing/gtest.gyp:gtest', |
henrik.lundin@webrtc.org | 8331714 | 2014-12-01 11:25:04 +0000 | [diff] [blame] | 161 | '<(webrtc_root)/test/test.gyp:rtp_test_utils', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 162 | ], |
| 163 | 'sources': [ |
henrik.lundin@webrtc.org | 20446e7 | 2014-12-01 14:23:01 +0000 | [diff] [blame] | 164 | 'tools/rtpcat.cc', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 165 | ], |
| 166 | }, |
| 167 | |
| 168 | { |
| 169 | 'target_name': 'rtp_to_text', |
| 170 | 'type': 'executable', |
| 171 | 'dependencies': [ |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 +0000 | [diff] [blame] | 172 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 173 | 'neteq_test_tools', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 174 | ], |
| 175 | 'sources': [ |
| 176 | 'test/rtp_to_text.cc', |
| 177 | ], |
| 178 | }, |
| 179 | |
| 180 | { |
jan.skoglund@webrtc.org | c3d13d3 | 2014-03-10 22:50:19 +0000 | [diff] [blame] | 181 | 'target_name': 'audio_classifier_test', |
| 182 | 'type': 'executable', |
| 183 | 'dependencies': [ |
henrik.lundin@webrtc.org | 9c55f0f | 2014-06-09 08:10:28 +0000 | [diff] [blame] | 184 | 'neteq', |
minyue@webrtc.org | db93b68 | 2015-03-03 09:28:26 +0000 | [diff] [blame] | 185 | 'webrtc_opus', |
jan.skoglund@webrtc.org | c3d13d3 | 2014-03-10 22:50:19 +0000 | [diff] [blame] | 186 | ], |
| 187 | 'sources': [ |
| 188 | 'test/audio_classifier_test.cc', |
| 189 | ], |
| 190 | }, |
| 191 | |
| 192 | { |
henrik.lundin@webrtc.org | d57b814 | 2014-04-24 13:19:04 +0000 | [diff] [blame] | 193 | 'target_name': 'neteq_test_support', |
| 194 | 'type': 'static_library', |
| 195 | 'dependencies': [ |
henrik.lundin@webrtc.org | d57b814 | 2014-04-24 13:19:04 +0000 | [diff] [blame] | 196 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 197 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 198 | 'neteq', |
| 199 | 'neteq_unittest_tools', |
| 200 | 'pcm16b', |
henrik.lundin@webrtc.org | d57b814 | 2014-04-24 13:19:04 +0000 | [diff] [blame] | 201 | ], |
| 202 | 'sources': [ |
minyue@webrtc.org | 2c1bcf2 | 2015-02-17 10:17:09 +0000 | [diff] [blame] | 203 | 'tools/neteq_external_decoder_test.cc', |
| 204 | 'tools/neteq_external_decoder_test.h', |
henrik.lundin@webrtc.org | d57b814 | 2014-04-24 13:19:04 +0000 | [diff] [blame] | 205 | '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.org | 9c55f0f | 2014-06-09 08:10:28 +0000 | [diff] [blame] | 213 | 'target_name': 'neteq_speed_test', |
henrik.lundin@webrtc.org | d1fc5d4 | 2013-09-17 08:38:02 +0000 | [diff] [blame] | 214 | 'type': 'executable', |
| 215 | 'dependencies': [ |
henrik.lundin@webrtc.org | d1fc5d4 | 2013-09-17 08:38:02 +0000 | [diff] [blame] | 216 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
henrik.lundin@webrtc.org | a366e81 | 2014-01-10 08:24:04 +0000 | [diff] [blame] | 217 | '<(webrtc_root)/test/test.gyp:test_support_main', |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 218 | 'neteq', |
| 219 | 'neteq_test_support', |
henrik.lundin@webrtc.org | d1fc5d4 | 2013-09-17 08:38:02 +0000 | [diff] [blame] | 220 | ], |
| 221 | 'sources': [ |
| 222 | 'test/neteq_speed_test.cc', |
| 223 | ], |
| 224 | }, |
| 225 | |
| 226 | { |
minyue@webrtc.org | 8f76cd2 | 2015-03-18 20:43:40 +0000 | [diff] [blame] | 227 | 'target_name': 'neteq_opus_quality_test', |
minyue@webrtc.org | b28bfa7 | 2014-03-21 12:07:40 +0000 | [diff] [blame] | 228 | 'type': 'executable', |
| 229 | 'dependencies': [ |
minyue@webrtc.org | b28bfa7 | 2014-03-21 12:07:40 +0000 | [diff] [blame] | 230 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 231 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
| 232 | '<(webrtc_root)/test/test.gyp:test_support_main', |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 233 | 'neteq', |
| 234 | 'neteq_test_support', |
| 235 | 'webrtc_opus', |
minyue@webrtc.org | b28bfa7 | 2014-03-21 12:07:40 +0000 | [diff] [blame] | 236 | ], |
| 237 | 'sources': [ |
minyue@webrtc.org | 8f76cd2 | 2015-03-18 20:43:40 +0000 | [diff] [blame] | 238 | 'test/neteq_opus_quality_test.cc', |
minyue@webrtc.org | b28bfa7 | 2014-03-21 12:07:40 +0000 | [diff] [blame] | 239 | ], |
| 240 | }, |
| 241 | |
| 242 | { |
minyue@webrtc.org | 6568e97 | 2014-06-25 12:17:41 +0000 | [diff] [blame] | 243 | 'target_name': 'neteq_isac_quality_test', |
| 244 | 'type': 'executable', |
| 245 | 'dependencies': [ |
minyue@webrtc.org | 6568e97 | 2014-06-25 12:17:41 +0000 | [diff] [blame] | 246 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 247 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
| 248 | '<(webrtc_root)/test/test.gyp:test_support_main', |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 249 | 'isac_fix', |
| 250 | 'neteq', |
| 251 | 'neteq_test_support', |
minyue@webrtc.org | 6568e97 | 2014-06-25 12:17:41 +0000 | [diff] [blame] | 252 | ], |
| 253 | 'sources': [ |
| 254 | 'test/neteq_isac_quality_test.cc', |
| 255 | ], |
| 256 | }, |
| 257 | |
| 258 | { |
Henrik Lundin | e5ff00a | 2015-05-12 12:09:59 +0200 | [diff] [blame] | 259 | 'target_name': 'neteq_pcmu_quality_test', |
| 260 | 'type': 'executable', |
| 261 | 'dependencies': [ |
Henrik Lundin | e5ff00a | 2015-05-12 12:09:59 +0200 | [diff] [blame] | 262 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 263 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
| 264 | '<(webrtc_root)/test/test.gyp:test_support_main', |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 265 | 'g711', |
| 266 | 'neteq', |
| 267 | 'neteq_test_support', |
Henrik Lundin | e5ff00a | 2015-05-12 12:09:59 +0200 | [diff] [blame] | 268 | ], |
| 269 | 'sources': [ |
| 270 | 'test/neteq_pcmu_quality_test.cc', |
| 271 | ], |
| 272 | }, |
| 273 | |
| 274 | { |
Henrik Lundin | 8171735 | 2015-05-12 15:04:34 +0200 | [diff] [blame] | 275 | 'target_name': 'neteq_ilbc_quality_test', |
| 276 | 'type': 'executable', |
| 277 | 'dependencies': [ |
Henrik Lundin | 8171735 | 2015-05-12 15:04:34 +0200 | [diff] [blame] | 278 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 279 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
| 280 | '<(webrtc_root)/test/test.gyp:test_support_main', |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 281 | 'neteq', |
| 282 | 'neteq_test_support', |
| 283 | 'ilbc', |
Henrik Lundin | 8171735 | 2015-05-12 15:04:34 +0200 | [diff] [blame] | 284 | ], |
| 285 | 'sources': [ |
| 286 | 'test/neteq_ilbc_quality_test.cc', |
| 287 | ], |
| 288 | }, |
| 289 | |
| 290 | { |
henrik.lundin@webrtc.org | 9c55f0f | 2014-06-09 08:10:28 +0000 | [diff] [blame] | 291 | 'target_name': 'neteq_test_tools', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 292 | # 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.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 299 | '<(DEPTH)/testing/gtest.gyp:gtest', |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 300 | '<(webrtc_root)/common.gyp:webrtc_common', |
| 301 | 'cng', |
| 302 | 'g711', |
| 303 | 'g722', |
| 304 | 'ilbc', |
| 305 | 'isac', |
| 306 | 'pcm16b', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 307 | ], |
| 308 | 'direct_dependent_settings': { |
| 309 | 'include_dirs': [ |
Henrik Kjellander | 7464089 | 2015-10-29 11:31:02 +0100 | [diff] [blame] | 310 | 'include', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 311 | 'test', |
pbos@webrtc.org | 57eb858 | 2013-11-11 10:20:27 +0000 | [diff] [blame] | 312 | '<(webrtc_root)', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 313 | ], |
| 314 | }, |
| 315 | 'defines': [ |
| 316 | ], |
| 317 | 'include_dirs': [ |
Henrik Kjellander | 7464089 | 2015-10-29 11:31:02 +0100 | [diff] [blame] | 318 | 'include', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 319 | 'test', |
pbos@webrtc.org | 57eb858 | 2013-11-11 10:20:27 +0000 | [diff] [blame] | 320 | '<(webrtc_root)', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 321 | ], |
| 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.org | fa53d87 | 2013-02-04 10:07:17 +0000 | [diff] [blame] | 328 | # Disable warnings to enable Win64 build, issue 1323. |
| 329 | 'msvs_disabled_warnings': [ |
| 330 | 4267, # size_t to int truncation. |
| 331 | ], |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 332 | }, |
| 333 | ], # targets |
| 334 | } |