| 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("../webrtc.gni") | 10 import("../webrtc.gni") |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 "wav_file.h", | 56 "wav_file.h", |
| 57 "wav_header.cc", | 57 "wav_header.cc", |
| 58 "wav_header.h", | 58 "wav_header.h", |
| 59 "window_generator.cc", | 59 "window_generator.cc", |
| 60 "window_generator.h", | 60 "window_generator.h", |
| 61 ] | 61 ] |
| 62 | 62 |
| 63 deps = [ | 63 deps = [ |
| 64 ":sinc_resampler", | 64 ":sinc_resampler", |
| 65 "..:webrtc_common", | 65 "..:webrtc_common", |
| 66 "../rtc_base:gtest_prod", | 66 "../base:gtest_prod", |
| 67 "../rtc_base:rtc_base_approved", | 67 "../base:rtc_base_approved", |
| 68 "../system_wrappers", | 68 "../system_wrappers", |
| 69 ] | 69 ] |
| 70 public_deps = [ | 70 public_deps = [ |
| 71 ":common_audio_c", | 71 ":common_audio_c", |
| 72 ] | 72 ] |
| 73 | 73 |
| 74 defines = [] | 74 defines = [] |
| 75 if (rtc_use_openmax_dl) { | 75 if (rtc_use_openmax_dl) { |
| 76 sources += [ | 76 sources += [ |
| 77 "real_fourier_openmax.cc", | 77 "real_fourier_openmax.cc", |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 202 |
| 203 if (is_win) { | 203 if (is_win) { |
| 204 cflags = [ "/wd4334" ] # Ignore warning on shift operator promotion. | 204 cflags = [ "/wd4334" ] # Ignore warning on shift operator promotion. |
| 205 } | 205 } |
| 206 | 206 |
| 207 public_configs = [ ":common_audio_config" ] | 207 public_configs = [ ":common_audio_config" ] |
| 208 deps = [ | 208 deps = [ |
| 209 ":common_audio_c_arm_asm", | 209 ":common_audio_c_arm_asm", |
| 210 ":common_audio_cc", | 210 ":common_audio_cc", |
| 211 "..:webrtc_common", | 211 "..:webrtc_common", |
| 212 "../rtc_base:compile_assert_c", | 212 "../base:compile_assert_c", |
| 213 "../rtc_base:rtc_base_approved", | 213 "../base:rtc_base_approved", |
| 214 "../system_wrappers:system_wrappers", | 214 "../system_wrappers:system_wrappers", |
| 215 ] | 215 ] |
| 216 } | 216 } |
| 217 | 217 |
| 218 rtc_source_set("common_audio_cc") { | 218 rtc_source_set("common_audio_cc") { |
| 219 visibility = [ ":*" ] # Only targets in this file can depend on this. | 219 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 220 sources = [ | 220 sources = [ |
| 221 "signal_processing/dot_product_with_scale.cc", | 221 "signal_processing/dot_product_with_scale.cc", |
| 222 "signal_processing/dot_product_with_scale.h", | 222 "signal_processing/dot_product_with_scale.h", |
| 223 ] | 223 ] |
| 224 | 224 |
| 225 public_configs = [ ":common_audio_config" ] | 225 public_configs = [ ":common_audio_config" ] |
| 226 deps = [ | 226 deps = [ |
| 227 "..:webrtc_common", | 227 "..:webrtc_common", |
| 228 "../rtc_base:rtc_base_approved", | 228 "../base:rtc_base_approved", |
| 229 "../system_wrappers:system_wrappers", | 229 "../system_wrappers:system_wrappers", |
| 230 ] | 230 ] |
| 231 } | 231 } |
| 232 | 232 |
| 233 rtc_source_set("sinc_resampler") { | 233 rtc_source_set("sinc_resampler") { |
| 234 sources = [ | 234 sources = [ |
| 235 "resampler/sinc_resampler.h", | 235 "resampler/sinc_resampler.h", |
| 236 ] | 236 ] |
| 237 deps = [ | 237 deps = [ |
| 238 "..:webrtc_common", | 238 "..:webrtc_common", |
| 239 "../rtc_base:gtest_prod", | 239 "../base:gtest_prod", |
| 240 "../rtc_base:rtc_base_approved", | 240 "../base:rtc_base_approved", |
| 241 "../system_wrappers", | 241 "../system_wrappers", |
| 242 ] | 242 ] |
| 243 } | 243 } |
| 244 | 244 |
| 245 if (current_cpu == "x86" || current_cpu == "x64") { | 245 if (current_cpu == "x86" || current_cpu == "x64") { |
| 246 rtc_static_library("common_audio_sse2") { | 246 rtc_static_library("common_audio_sse2") { |
| 247 # TODO(kjellander): Remove (bugs.webrtc.org/6828) | 247 # TODO(kjellander): Remove (bugs.webrtc.org/6828) |
| 248 # Enabling GN check triggers dependency cycle: | 248 # Enabling GN check triggers dependency cycle: |
| 249 # //webrtc/common_audio:common_audio -> | 249 # //webrtc/common_audio:common_audio -> |
| 250 # //webrtc/common_audio:common_audio_sse2 -> | 250 # //webrtc/common_audio:common_audio_sse2 -> |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 "-ffat-lto-objects", | 337 "-ffat-lto-objects", |
| 338 ] | 338 ] |
| 339 } | 339 } |
| 340 | 340 |
| 341 if (!build_with_chromium && is_clang) { | 341 if (!build_with_chromium && is_clang) { |
| 342 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 342 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 343 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 343 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 344 } | 344 } |
| 345 deps = [ | 345 deps = [ |
| 346 ":common_audio_c", | 346 ":common_audio_c", |
| 347 "../rtc_base:rtc_base_approved", | 347 "../base:rtc_base_approved", |
| 348 ] | 348 ] |
| 349 } | 349 } |
| 350 } | 350 } |
| 351 | 351 |
| 352 if (rtc_include_tests) { | 352 if (rtc_include_tests) { |
| 353 rtc_test("common_audio_unittests") { | 353 rtc_test("common_audio_unittests") { |
| 354 testonly = true | 354 testonly = true |
| 355 | 355 |
| 356 sources = [ | 356 sources = [ |
| 357 "audio_converter_unittest.cc", | 357 "audio_converter_unittest.cc", |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 | 394 |
| 395 if (!build_with_chromium && is_clang) { | 395 if (!build_with_chromium && is_clang) { |
| 396 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 396 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 397 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 397 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 398 } | 398 } |
| 399 | 399 |
| 400 deps = [ | 400 deps = [ |
| 401 ":common_audio", | 401 ":common_audio", |
| 402 ":sinc_resampler", | 402 ":sinc_resampler", |
| 403 "..:webrtc_common", | 403 "..:webrtc_common", |
| 404 "../rtc_base:rtc_base_approved", | 404 "../base:rtc_base_approved", |
| 405 "../rtc_base:rtc_base_tests_utils", | 405 "../base:rtc_base_tests_utils", |
| 406 "../system_wrappers", | 406 "../system_wrappers", |
| 407 "../test:test_main", | 407 "../test:test_main", |
| 408 "//testing/gmock", | 408 "//testing/gmock", |
| 409 "//testing/gtest", | 409 "//testing/gtest", |
| 410 ] | 410 ] |
| 411 | 411 |
| 412 if (is_android) { | 412 if (is_android) { |
| 413 deps += [ "//testing/android/native_test:native_test_support" ] | 413 deps += [ "//testing/android/native_test:native_test_support" ] |
| 414 | 414 |
| 415 shard_timeout = 900 | 415 shard_timeout = 900 |
| 416 } | 416 } |
| 417 } | 417 } |
| 418 } | 418 } |
| OLD | NEW |