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 |
| 87 | # Exclude the test target when building with chromium. |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 88 | 'conditions': [ |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 89 | ['build_with_chromium==0', { |
| 90 | 'targets': [ |
| 91 | { |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 92 | 'target_name': 'neteq_unittests', |
| 93 | 'type': 'executable', |
| 94 | 'dependencies': [ |
| 95 | 'NetEq', |
| 96 | 'NetEqTestTools', |
| 97 | '<(webrtc_root)/../testing/gtest.gyp:gtest', |
henrik.lundin@webrtc.org | 0fcc2eb | 2011-11-25 13:43:42 +0000 | [diff] [blame] | 98 | '<(webrtc_root)/../test/test.gyp:test_support_main', |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 99 | ], |
| 100 | 'sources': [ |
henrik.lundin@webrtc.org | 0fcc2eb | 2011-11-25 13:43:42 +0000 | [diff] [blame] | 101 | 'webrtc_neteq_unittest.cc', |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 102 | ], |
| 103 | }, # neteq_unittests |
| 104 | { |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 105 | 'target_name': 'NetEqRTPplay', |
| 106 | 'type': 'executable', |
| 107 | 'dependencies': [ |
andrew@webrtc.org | f589dfe | 2012-03-27 17:05:44 +0000 | [diff] [blame^] | 108 | 'NetEq', # NetEQ library defined above |
| 109 | 'NetEqTestTools', # Test helpers |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 110 | 'G711', |
| 111 | 'G722', |
| 112 | 'PCM16B', |
| 113 | 'iLBC', |
| 114 | 'iSAC', |
| 115 | 'CNG', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 116 | ], |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 117 | 'defines': [ |
| 118 | # TODO: Make codec selection conditional on definitions in target NetEq |
| 119 | 'CODEC_ILBC', |
| 120 | 'CODEC_PCM16B', |
| 121 | 'CODEC_G711', |
| 122 | 'CODEC_G722', |
| 123 | 'CODEC_ISAC', |
| 124 | 'CODEC_PCM16B_WB', |
| 125 | 'CODEC_ISAC_SWB', |
| 126 | 'CODEC_PCM16B_32KHZ', |
| 127 | 'CODEC_CNGCODEC8', |
| 128 | 'CODEC_CNGCODEC16', |
| 129 | 'CODEC_CNGCODEC32', |
| 130 | 'CODEC_ATEVENT_DECODE', |
| 131 | 'CODEC_RED', |
| 132 | ], |
| 133 | 'include_dirs': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 134 | '.', |
| 135 | 'test', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 136 | ], |
| 137 | 'sources': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 138 | 'test/NetEqRTPplay.cc', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 139 | ], |
| 140 | }, |
| 141 | { |
| 142 | 'target_name': 'RTPencode', |
| 143 | 'type': 'executable', |
| 144 | 'dependencies': [ |
| 145 | 'NetEqTestTools',# Test helpers |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 146 | 'G711', |
| 147 | 'G722', |
| 148 | 'PCM16B', |
| 149 | 'iLBC', |
| 150 | 'iSAC', |
| 151 | 'CNG', |
| 152 | '<(webrtc_root)/common_audio/common_audio.gyp:vad', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 153 | ], |
| 154 | 'defines': [ |
| 155 | # TODO: Make codec selection conditional on definitions in target NetEq |
| 156 | 'CODEC_ILBC', |
| 157 | 'CODEC_PCM16B', |
| 158 | 'CODEC_G711', |
| 159 | 'CODEC_G722', |
| 160 | 'CODEC_ISAC', |
| 161 | 'CODEC_PCM16B_WB', |
| 162 | 'CODEC_ISAC_SWB', |
| 163 | 'CODEC_PCM16B_32KHZ', |
| 164 | 'CODEC_CNGCODEC8', |
| 165 | 'CODEC_CNGCODEC16', |
| 166 | 'CODEC_CNGCODEC32', |
| 167 | 'CODEC_ATEVENT_DECODE', |
| 168 | 'CODEC_RED', |
| 169 | ], |
| 170 | 'include_dirs': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 171 | 'interface', |
| 172 | 'test', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 173 | ], |
| 174 | 'sources': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 175 | 'test/RTPencode.cc', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 176 | ], |
| 177 | }, |
| 178 | { |
| 179 | 'target_name': 'RTPjitter', |
| 180 | 'type': 'executable', |
kjellander@webrtc.org | 543c3ea | 2011-11-23 12:20:35 +0000 | [diff] [blame] | 181 | 'dependencies': [ |
| 182 | '<(webrtc_root)/../testing/gtest.gyp:gtest', |
| 183 | ], |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 184 | 'sources': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 185 | 'test/RTPjitter.cc', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 186 | ], |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 187 | }, |
| 188 | { |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 189 | 'target_name': 'RTPanalyze', |
| 190 | 'type': 'executable', |
| 191 | 'dependencies': [ |
| 192 | 'NetEqTestTools', |
kjellander@webrtc.org | 543c3ea | 2011-11-23 12:20:35 +0000 | [diff] [blame] | 193 | '<(webrtc_root)/../testing/gtest.gyp:gtest', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 194 | ], |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 195 | 'sources': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 196 | 'test/RTPanalyze.cc', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 197 | ], |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 198 | }, |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 199 | { |
| 200 | 'target_name': 'RTPchange', |
| 201 | 'type': 'executable', |
| 202 | 'dependencies': [ |
| 203 | 'NetEqTestTools', |
kjellander@webrtc.org | 543c3ea | 2011-11-23 12:20:35 +0000 | [diff] [blame] | 204 | '<(webrtc_root)/../testing/gtest.gyp:gtest', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 205 | ], |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 206 | 'sources': [ |
| 207 | 'test/RTPchange.cc', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 208 | ], |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 209 | }, |
| 210 | { |
| 211 | 'target_name': 'RTPtimeshift', |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 212 | 'type': 'executable', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 213 | 'dependencies': [ |
| 214 | 'NetEqTestTools', |
kjellander@webrtc.org | 543c3ea | 2011-11-23 12:20:35 +0000 | [diff] [blame] | 215 | '<(webrtc_root)/../testing/gtest.gyp:gtest', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 216 | ], |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 217 | 'sources': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 218 | 'test/RTPtimeshift.cc', |
| 219 | ], |
| 220 | }, |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 221 | { |
| 222 | 'target_name': 'RTPcat', |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 223 | 'type': 'executable', |
| 224 | 'dependencies': [ |
| 225 | 'NetEqTestTools', |
kjellander@webrtc.org | 543c3ea | 2011-11-23 12:20:35 +0000 | [diff] [blame] | 226 | '<(webrtc_root)/../testing/gtest.gyp:gtest', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 227 | ], |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 228 | 'sources': [ |
| 229 | 'test/RTPcat.cc', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 230 | ], |
| 231 | }, |
| 232 | { |
andrew@webrtc.org | f589dfe | 2012-03-27 17:05:44 +0000 | [diff] [blame^] | 233 | 'target_name': 'rtp_to_text', |
| 234 | 'type': 'executable', |
| 235 | 'dependencies': [ |
| 236 | 'NetEqTestTools', |
| 237 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
| 238 | ], |
| 239 | 'sources': [ |
| 240 | 'test/rtp_to_text.cc', |
| 241 | ], |
| 242 | }, |
| 243 | { |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 244 | 'target_name': 'NetEqTestTools', |
| 245 | # Collection of useful functions used in other tests |
| 246 | 'type': '<(library)', |
andrew@webrtc.org | f589dfe | 2012-03-27 17:05:44 +0000 | [diff] [blame^] | 247 | 'variables': { |
| 248 | # Expects RTP packets without payloads when enabled. |
| 249 | 'neteq_dummy_rtp%': 0, |
| 250 | }, |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 251 | 'dependencies': [ |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 252 | 'G711', |
| 253 | 'G722', |
| 254 | 'PCM16B', |
| 255 | 'iLBC', |
| 256 | 'iSAC', |
| 257 | 'CNG', |
kjellander@webrtc.org | 543c3ea | 2011-11-23 12:20:35 +0000 | [diff] [blame] | 258 | '<(webrtc_root)/../testing/gtest.gyp:gtest', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 259 | ], |
| 260 | 'direct_dependent_settings': { |
| 261 | 'include_dirs': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 262 | 'interface', |
| 263 | 'test', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 264 | ], |
| 265 | }, |
| 266 | 'defines': [ |
| 267 | # TODO: Make codec selection conditional on definitions in target NetEq |
| 268 | 'CODEC_ILBC', |
| 269 | 'CODEC_PCM16B', |
| 270 | 'CODEC_G711', |
| 271 | 'CODEC_G722', |
| 272 | 'CODEC_ISAC', |
| 273 | 'CODEC_PCM16B_WB', |
| 274 | 'CODEC_ISAC_SWB', |
| 275 | 'CODEC_PCM16B_32KHZ', |
| 276 | 'CODEC_CNGCODEC8', |
| 277 | 'CODEC_CNGCODEC16', |
| 278 | 'CODEC_CNGCODEC32', |
| 279 | 'CODEC_ATEVENT_DECODE', |
| 280 | 'CODEC_RED', |
| 281 | ], |
| 282 | 'include_dirs': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 283 | 'interface', |
| 284 | 'test', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 285 | ], |
| 286 | 'sources': [ |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 287 | 'test/NETEQTEST_CodecClass.cc', |
kjellander@webrtc.org | bf48384 | 2011-11-07 16:05:19 +0000 | [diff] [blame] | 288 | 'test/NETEQTEST_CodecClass.h', |
andrew@webrtc.org | f589dfe | 2012-03-27 17:05:44 +0000 | [diff] [blame^] | 289 | 'test/NETEQTEST_DummyRTPpacket.cc', |
| 290 | 'test/NETEQTEST_DummyRTPpacket.h', |
| 291 | 'test/NETEQTEST_NetEQClass.cc', |
| 292 | 'test/NETEQTEST_NetEQClass.h', |
| 293 | 'test/NETEQTEST_RTPpacket.cc', |
| 294 | 'test/NETEQTEST_RTPpacket.h', |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 295 | ], |
xians@google.com | f67f197 | 2011-08-08 12:56:26 +0000 | [diff] [blame] | 296 | }, |
| 297 | ], # targets |
| 298 | }], # build_with_chromium |
| 299 | ], # conditions |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 300 | } |