OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 import("../build/webrtc.gni") | 10 import("../build/webrtc.gni") |
| 11 import("//testing/test.gni") |
11 | 12 |
12 config("common_audio_config") { | 13 config("common_audio_config") { |
13 include_dirs = [ | 14 include_dirs = [ |
14 "resampler/include", | 15 "resampler/include", |
15 "signal_processing/include", | 16 "signal_processing/include", |
16 "vad/include", | 17 "vad/include", |
17 ] | 18 ] |
18 } | 19 } |
19 | 20 |
20 source_set("common_audio") { | 21 source_set("common_audio") { |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 configs += [ "..:common_config" ] | 242 configs += [ "..:common_config" ] |
242 public_configs = [ "..:common_inherited_config" ] | 243 public_configs = [ "..:common_inherited_config" ] |
243 | 244 |
244 if (is_clang) { | 245 if (is_clang) { |
245 # Suppress warnings from Chrome's Clang plugins. | 246 # Suppress warnings from Chrome's Clang plugins. |
246 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 247 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
247 configs -= [ "//build/config/clang:find_bad_constructs" ] | 248 configs -= [ "//build/config/clang:find_bad_constructs" ] |
248 } | 249 } |
249 } | 250 } |
250 } | 251 } |
| 252 |
| 253 if (rtc_include_tests) { |
| 254 test("common_audio_unittests") { |
| 255 testonly = true |
| 256 |
| 257 sources = [ |
| 258 "audio_converter_unittest.cc", |
| 259 "audio_ring_buffer_unittest.cc", |
| 260 "audio_util_unittest.cc", |
| 261 "blocker_unittest.cc", |
| 262 "fir_filter_unittest.cc", |
| 263 "lapped_transform_unittest.cc", |
| 264 "real_fourier_unittest.cc", |
| 265 "resampler/push_resampler_unittest.cc", |
| 266 "resampler/push_sinc_resampler_unittest.cc", |
| 267 "resampler/resampler_unittest.cc", |
| 268 "resampler/sinusoidal_linear_chirp_source.cc", |
| 269 "resampler/sinusoidal_linear_chirp_source.h", |
| 270 "ring_buffer_unittest.cc", |
| 271 "signal_processing/real_fft_unittest.cc", |
| 272 "signal_processing/signal_processing_unittest.cc", |
| 273 "sparse_fir_filter_unittest.cc", |
| 274 "vad/vad_core_unittest.cc", |
| 275 "vad/vad_filterbank_unittest.cc", |
| 276 "vad/vad_gmm_unittest.cc", |
| 277 "vad/vad_sp_unittest.cc", |
| 278 "vad/vad_unittest.cc", |
| 279 "vad/vad_unittest.h", |
| 280 "wav_file_unittest.cc", |
| 281 "wav_header_unittest.cc", |
| 282 "window_generator_unittest.cc", |
| 283 ] |
| 284 |
| 285 # Does not compile on iOS for arm: webrtc:5544. |
| 286 if (!is_ios || target_cpu != "arm" || target_cpu != "arm64") { |
| 287 sources += [ "resampler/sinc_resampler_unittest.cc" ] |
| 288 } |
| 289 |
| 290 configs += [ "..:common_config" ] |
| 291 public_configs = [ "..:common_inherited_config" ] |
| 292 |
| 293 if (rtc_use_openmax_dl) { |
| 294 defines = [ "RTC_USE_OPENMAX_DL" ] |
| 295 } |
| 296 |
| 297 if (is_clang) { |
| 298 # Suppress warnings from the Chromium Clang plugin. |
| 299 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 300 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 301 } |
| 302 |
| 303 deps = [ |
| 304 ":common_audio", |
| 305 "../test:test_support_main", |
| 306 "//testing/gmock", |
| 307 "//testing/gtest", |
| 308 ] |
| 309 |
| 310 if (is_android) { |
| 311 deps += [ "//testing/android/native_test:native_test_support" ] |
| 312 } |
| 313 } |
| 314 } |
OLD | NEW |