andrew@webrtc.org | f589dfe | 2012-03-27 17:05:44 +0000 | [diff] [blame] | 1 | # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 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 | { |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 10 | 'targets': [ |
| 11 | { |
| 12 | 'target_name': 'NetEq', |
| 13 | 'type': '<(library)', |
| 14 | 'dependencies': [ |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 15 | 'CNG', |
kjellander@webrtc.org | 0403ef4 | 2011-11-17 08:35:47 +0000 | [diff] [blame] | 16 | '<(webrtc_root)/common_audio/common_audio.gyp:signal_processing', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 17 | ], |
| 18 | 'defines': [ |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 19 | 'NETEQ_VOICEENGINE_CODECS', # TODO: Should create a Chrome define which |
| 20 | 'SCRATCH', # specifies a subset of codecs to support. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 21 | ], |
| 22 | 'include_dirs': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 23 | 'interface', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 24 | ], |
| 25 | 'direct_dependent_settings': { |
| 26 | 'include_dirs': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 27 | 'interface', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 28 | ], |
| 29 | }, |
| 30 | 'sources': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 31 | 'interface/webrtc_neteq.h', |
| 32 | 'interface/webrtc_neteq_help_macros.h', |
| 33 | 'interface/webrtc_neteq_internal.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 34 | 'accelerate.c', |
| 35 | 'automode.c', |
| 36 | 'automode.h', |
| 37 | 'bgn_update.c', |
| 38 | 'buffer_stats.h', |
| 39 | 'bufstats_decision.c', |
| 40 | 'cng_internal.c', |
| 41 | 'codec_db.c', |
| 42 | 'codec_db.h', |
| 43 | 'codec_db_defines.h', |
| 44 | 'correlator.c', |
| 45 | 'delay_logging.h', |
| 46 | 'dsp.c', |
| 47 | 'dsp.h', |
| 48 | 'dsp_helpfunctions.c', |
| 49 | 'dsp_helpfunctions.h', |
| 50 | 'dtmf_buffer.c', |
| 51 | 'dtmf_buffer.h', |
| 52 | 'dtmf_tonegen.c', |
| 53 | 'dtmf_tonegen.h', |
| 54 | 'expand.c', |
| 55 | 'mcu.h', |
| 56 | 'mcu_address_init.c', |
| 57 | 'mcu_dsp_common.c', |
| 58 | 'mcu_dsp_common.h', |
| 59 | 'mcu_reset.c', |
| 60 | 'merge.c', |
| 61 | 'min_distortion.c', |
| 62 | 'mix_voice_unvoice.c', |
| 63 | 'mute_signal.c', |
| 64 | 'neteq_defines.h', |
| 65 | 'neteq_error_codes.h', |
| 66 | 'neteq_statistics.h', |
| 67 | 'normal.c', |
| 68 | 'packet_buffer.c', |
| 69 | 'packet_buffer.h', |
| 70 | 'peak_detection.c', |
| 71 | 'preemptive_expand.c', |
| 72 | 'random_vector.c', |
| 73 | 'recin.c', |
| 74 | 'recout.c', |
| 75 | 'rtcp.c', |
| 76 | 'rtcp.h', |
| 77 | 'rtp.c', |
| 78 | 'rtp.h', |
| 79 | 'set_fs.c', |
| 80 | 'signal_mcu.c', |
| 81 | 'split_and_insert.c', |
| 82 | 'unmute_signal.c', |
| 83 | 'webrtc_neteq.c', |
| 84 | ], |
| 85 | }, |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 86 | ], # targets |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 87 | 'conditions': [ |
mflodman@webrtc.org | 6af9594 | 2012-05-24 13:23:35 +0000 | [diff] [blame] | 88 | ['include_tests==1', { |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 89 | 'targets': [ |
| 90 | { |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 91 | 'target_name': 'neteq_unittests', |
| 92 | 'type': 'executable', |
| 93 | 'dependencies': [ |
| 94 | 'NetEq', |
| 95 | 'NetEqTestTools', |
andrew@webrtc.org | 81cf5e4 | 2012-06-27 01:41:54 +0000 | [diff] [blame] | 96 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 97 | '<(webrtc_root)/test/test.gyp:test_support_main', |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 98 | ], |
| 99 | 'sources': [ |
henrik.lundin@webrtc.org | 0fcc2eb | 2011-11-25 13:43:42 +0000 | [diff] [blame] | 100 | 'webrtc_neteq_unittest.cc', |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 101 | ], |
| 102 | }, # neteq_unittests |
| 103 | { |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 104 | 'target_name': 'NetEqRTPplay', |
| 105 | 'type': 'executable', |
| 106 | 'dependencies': [ |
andrew@webrtc.org | f589dfe | 2012-03-27 17:05:44 +0000 | [diff] [blame] | 107 | 'NetEq', # NetEQ library defined above |
| 108 | 'NetEqTestTools', # Test helpers |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 109 | 'G711', |
| 110 | 'G722', |
| 111 | 'PCM16B', |
| 112 | 'iLBC', |
| 113 | 'iSAC', |
| 114 | 'CNG', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 115 | ], |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 116 | 'defines': [ |
| 117 | # TODO: Make codec selection conditional on definitions in target NetEq |
| 118 | 'CODEC_ILBC', |
| 119 | 'CODEC_PCM16B', |
| 120 | 'CODEC_G711', |
| 121 | 'CODEC_G722', |
| 122 | 'CODEC_ISAC', |
| 123 | 'CODEC_PCM16B_WB', |
| 124 | 'CODEC_ISAC_SWB', |
| 125 | 'CODEC_PCM16B_32KHZ', |
| 126 | 'CODEC_CNGCODEC8', |
| 127 | 'CODEC_CNGCODEC16', |
| 128 | 'CODEC_CNGCODEC32', |
| 129 | 'CODEC_ATEVENT_DECODE', |
| 130 | 'CODEC_RED', |
| 131 | ], |
| 132 | 'include_dirs': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 133 | '.', |
| 134 | 'test', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 135 | ], |
| 136 | 'sources': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 137 | 'test/NetEqRTPplay.cc', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 138 | ], |
| 139 | }, |
| 140 | { |
| 141 | 'target_name': 'RTPencode', |
| 142 | 'type': 'executable', |
| 143 | 'dependencies': [ |
| 144 | 'NetEqTestTools',# Test helpers |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 145 | 'G711', |
| 146 | 'G722', |
| 147 | 'PCM16B', |
| 148 | 'iLBC', |
| 149 | 'iSAC', |
| 150 | 'CNG', |
| 151 | '<(webrtc_root)/common_audio/common_audio.gyp:vad', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 152 | ], |
| 153 | 'defines': [ |
| 154 | # TODO: Make codec selection conditional on definitions in target NetEq |
| 155 | 'CODEC_ILBC', |
| 156 | 'CODEC_PCM16B', |
| 157 | 'CODEC_G711', |
| 158 | 'CODEC_G722', |
| 159 | 'CODEC_ISAC', |
| 160 | 'CODEC_PCM16B_WB', |
| 161 | 'CODEC_ISAC_SWB', |
| 162 | 'CODEC_PCM16B_32KHZ', |
| 163 | 'CODEC_CNGCODEC8', |
| 164 | 'CODEC_CNGCODEC16', |
| 165 | 'CODEC_CNGCODEC32', |
| 166 | 'CODEC_ATEVENT_DECODE', |
| 167 | 'CODEC_RED', |
| 168 | ], |
| 169 | 'include_dirs': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 170 | 'interface', |
| 171 | 'test', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 172 | ], |
| 173 | 'sources': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 174 | 'test/RTPencode.cc', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 175 | ], |
| 176 | }, |
| 177 | { |
| 178 | 'target_name': 'RTPjitter', |
| 179 | 'type': 'executable', |
kjellander@webrtc.org | 543c3ea | 2011-11-23 12:20:35 +0000 | [diff] [blame] | 180 | 'dependencies': [ |
andrew@webrtc.org | 81cf5e4 | 2012-06-27 01:41:54 +0000 | [diff] [blame] | 181 | '<(DEPTH)/testing/gtest.gyp:gtest', |
kjellander@webrtc.org | 543c3ea | 2011-11-23 12:20:35 +0000 | [diff] [blame] | 182 | ], |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 183 | 'sources': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 184 | 'test/RTPjitter.cc', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 185 | ], |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 186 | }, |
| 187 | { |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 188 | 'target_name': 'RTPanalyze', |
| 189 | 'type': 'executable', |
| 190 | 'dependencies': [ |
| 191 | 'NetEqTestTools', |
andrew@webrtc.org | 81cf5e4 | 2012-06-27 01:41:54 +0000 | [diff] [blame] | 192 | '<(DEPTH)/testing/gtest.gyp:gtest', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 193 | ], |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 194 | 'sources': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 195 | 'test/RTPanalyze.cc', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 196 | ], |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 197 | }, |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 198 | { |
| 199 | 'target_name': 'RTPchange', |
| 200 | 'type': 'executable', |
| 201 | 'dependencies': [ |
| 202 | 'NetEqTestTools', |
andrew@webrtc.org | 81cf5e4 | 2012-06-27 01:41:54 +0000 | [diff] [blame] | 203 | '<(DEPTH)/testing/gtest.gyp:gtest', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 204 | ], |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 205 | 'sources': [ |
| 206 | 'test/RTPchange.cc', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 207 | ], |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 208 | }, |
| 209 | { |
| 210 | 'target_name': 'RTPtimeshift', |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 211 | 'type': 'executable', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 212 | 'dependencies': [ |
| 213 | 'NetEqTestTools', |
andrew@webrtc.org | 81cf5e4 | 2012-06-27 01:41:54 +0000 | [diff] [blame] | 214 | '<(DEPTH)/testing/gtest.gyp:gtest', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 215 | ], |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 216 | 'sources': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 217 | 'test/RTPtimeshift.cc', |
| 218 | ], |
| 219 | }, |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 220 | { |
| 221 | 'target_name': 'RTPcat', |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 222 | 'type': 'executable', |
| 223 | 'dependencies': [ |
| 224 | 'NetEqTestTools', |
andrew@webrtc.org | 81cf5e4 | 2012-06-27 01:41:54 +0000 | [diff] [blame] | 225 | '<(DEPTH)/testing/gtest.gyp:gtest', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 226 | ], |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 227 | 'sources': [ |
| 228 | 'test/RTPcat.cc', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 229 | ], |
| 230 | }, |
| 231 | { |
andrew@webrtc.org | f589dfe | 2012-03-27 17:05:44 +0000 | [diff] [blame] | 232 | 'target_name': 'rtp_to_text', |
| 233 | 'type': 'executable', |
| 234 | 'dependencies': [ |
| 235 | 'NetEqTestTools', |
| 236 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
| 237 | ], |
| 238 | 'sources': [ |
| 239 | 'test/rtp_to_text.cc', |
| 240 | ], |
| 241 | }, |
| 242 | { |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 243 | 'target_name': 'NetEqTestTools', |
| 244 | # Collection of useful functions used in other tests |
| 245 | 'type': '<(library)', |
andrew@webrtc.org | f589dfe | 2012-03-27 17:05:44 +0000 | [diff] [blame] | 246 | 'variables': { |
| 247 | # Expects RTP packets without payloads when enabled. |
| 248 | 'neteq_dummy_rtp%': 0, |
| 249 | }, |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 250 | 'dependencies': [ |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 251 | 'G711', |
| 252 | 'G722', |
| 253 | 'PCM16B', |
| 254 | 'iLBC', |
| 255 | 'iSAC', |
| 256 | 'CNG', |
andrew@webrtc.org | 81cf5e4 | 2012-06-27 01:41:54 +0000 | [diff] [blame] | 257 | '<(DEPTH)/testing/gtest.gyp:gtest', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 258 | ], |
| 259 | 'direct_dependent_settings': { |
| 260 | 'include_dirs': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 261 | 'interface', |
| 262 | 'test', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 263 | ], |
| 264 | }, |
| 265 | 'defines': [ |
| 266 | # TODO: Make codec selection conditional on definitions in target NetEq |
| 267 | 'CODEC_ILBC', |
| 268 | 'CODEC_PCM16B', |
| 269 | 'CODEC_G711', |
| 270 | 'CODEC_G722', |
| 271 | 'CODEC_ISAC', |
| 272 | 'CODEC_PCM16B_WB', |
| 273 | 'CODEC_ISAC_SWB', |
| 274 | 'CODEC_PCM16B_32KHZ', |
| 275 | 'CODEC_CNGCODEC8', |
| 276 | 'CODEC_CNGCODEC16', |
| 277 | 'CODEC_CNGCODEC32', |
| 278 | 'CODEC_ATEVENT_DECODE', |
| 279 | 'CODEC_RED', |
| 280 | ], |
| 281 | 'include_dirs': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 282 | 'interface', |
| 283 | 'test', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 284 | ], |
| 285 | 'sources': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 286 | 'test/NETEQTEST_CodecClass.cc', |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 287 | 'test/NETEQTEST_CodecClass.h', |
andrew@webrtc.org | f589dfe | 2012-03-27 17:05:44 +0000 | [diff] [blame] | 288 | 'test/NETEQTEST_DummyRTPpacket.cc', |
| 289 | 'test/NETEQTEST_DummyRTPpacket.h', |
| 290 | 'test/NETEQTEST_NetEQClass.cc', |
| 291 | 'test/NETEQTEST_NetEQClass.h', |
| 292 | 'test/NETEQTEST_RTPpacket.cc', |
| 293 | 'test/NETEQTEST_RTPpacket.h', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 294 | ], |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 295 | }, |
| 296 | ], # targets |
mflodman@webrtc.org | 6af9594 | 2012-05-24 13:23:35 +0000 | [diff] [blame] | 297 | }], # include_tests |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 298 | ], # conditions |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 299 | } |