mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-19 08:37:54 +01:00

This clarifies the dependencies of utility/ a lot (spoiler: there are very few) and makes it easier to separate the build targets for aecm and aec2. Bug: webrtc:9488 Change-Id: If916f86e80c19d1b650d0908fbe8343ea7c47bd7 Reviewed-on: https://webrtc-review.googlesource.com/87141 Reviewed-by: Alex Loiko <aleloi@webrtc.org> Commit-Queue: Sam Zackrisson <saza@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23860}
119 lines
2.8 KiB
Text
119 lines
2.8 KiB
Text
# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license
|
|
# that can be found in the LICENSE file in the root of the source
|
|
# tree. An additional intellectual property rights grant can be found
|
|
# in the file PATENTS. All contributing project authors may
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
import("//build/config/arm.gni")
|
|
import("../../../webrtc.gni")
|
|
|
|
rtc_source_set("block_mean_calculator") {
|
|
sources = [
|
|
"block_mean_calculator.cc",
|
|
"block_mean_calculator.h",
|
|
]
|
|
deps = [
|
|
"../../../rtc_base:checks",
|
|
"../../../rtc_base:rtc_base_approved",
|
|
]
|
|
}
|
|
|
|
rtc_source_set("legacy_delay_estimator") {
|
|
sources = [
|
|
"delay_estimator.cc",
|
|
"delay_estimator.h",
|
|
"delay_estimator_internal.h",
|
|
"delay_estimator_wrapper.cc",
|
|
"delay_estimator_wrapper.h",
|
|
]
|
|
deps = [
|
|
"../../..:typedefs",
|
|
"../../../rtc_base:checks",
|
|
]
|
|
}
|
|
|
|
rtc_source_set("ooura_fft") {
|
|
sources = [
|
|
"ooura_fft.cc",
|
|
"ooura_fft.h",
|
|
"ooura_fft_tables_common.h",
|
|
]
|
|
deps = [
|
|
"../../..:typedefs",
|
|
"../../../system_wrappers:cpu_features_api",
|
|
]
|
|
cflags = []
|
|
|
|
if (current_cpu == "x86" || current_cpu == "x64") {
|
|
sources += [
|
|
"ooura_fft_sse2.cc",
|
|
"ooura_fft_tables_neon_sse2.h",
|
|
]
|
|
if (is_posix || is_fuchsia) {
|
|
cflags += [ "-msse2" ]
|
|
}
|
|
}
|
|
|
|
if (rtc_build_with_neon) {
|
|
sources += [
|
|
"ooura_fft_neon.cc",
|
|
"ooura_fft_tables_neon_sse2.h",
|
|
]
|
|
|
|
deps += [ "../../../common_audio" ]
|
|
|
|
if (current_cpu != "arm64") {
|
|
# Enable compilation for the NEON instruction set. This is needed
|
|
# since //build/config/arm.gni only enables NEON for iOS, not Android.
|
|
# This provides the same functionality as webrtc/build/arm_neon.gypi.
|
|
suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
|
|
cflags += [ "-mfpu=neon" ]
|
|
}
|
|
|
|
# Disable LTO on NEON targets due to compiler bug.
|
|
# TODO(fdegans): Enable this. See crbug.com/408997.
|
|
if (rtc_use_lto) {
|
|
cflags -= [
|
|
"-flto",
|
|
"-ffat-lto-objects",
|
|
]
|
|
}
|
|
}
|
|
|
|
if (current_cpu == "mipsel" && mips_float_abi == "hard") {
|
|
sources += [ "ooura_fft_mips.cc" ]
|
|
}
|
|
}
|
|
|
|
if (rtc_include_tests) {
|
|
rtc_source_set("block_mean_calculator_unittest") {
|
|
testonly = true
|
|
|
|
sources = [
|
|
"block_mean_calculator_unittest.cc",
|
|
]
|
|
deps = [
|
|
":block_mean_calculator",
|
|
"../../../rtc_base:rtc_base_approved",
|
|
"../../../test:test_support",
|
|
"//testing/gtest",
|
|
]
|
|
}
|
|
|
|
rtc_source_set("legacy_delay_estimator_unittest") {
|
|
testonly = true
|
|
|
|
sources = [
|
|
"delay_estimator_unittest.cc",
|
|
]
|
|
deps = [
|
|
":legacy_delay_estimator",
|
|
"../../..:typedefs",
|
|
"../../../rtc_base:rtc_base_approved",
|
|
"../../../test:test_support",
|
|
"//testing/gtest",
|
|
]
|
|
}
|
|
}
|