GN: Introduce templates.
Defines the rtc_executable, rtc_source_set, rtc_test and
rtc_static_library templates.
These templates provide no functionality yet, but will enable common
configuration to be introduced, avoiding repetition in every target
Changes summary:
- Prepend rtc_ to test, source_set, executable and static_library targets
- Change "configs -= [" to "suppressed_configs += ["
- Include webrtc/build/webrtc.gni where it wasn't included yet
- Delete import("//testing/test.gni"), since rtc_test makes it unnecessary.
BUG=webrtc:6187
TBR=henrik.lundin@webrtc.org,tommi@webrtc.org
NOTRY=True
Review-Url: https://codereview.webrtc.org/2301053002
Cr-Commit-Position: refs/heads/master@{#14043}
This commit is contained in:
@ -11,7 +11,7 @@ import("../../build/webrtc.gni")
|
||||
|
||||
build_video_processing_sse2 = current_cpu == "x86" || current_cpu == "x64"
|
||||
|
||||
source_set("video_processing") {
|
||||
rtc_source_set("video_processing") {
|
||||
sources = [
|
||||
"frame_preprocessor.cc",
|
||||
"frame_preprocessor.h",
|
||||
@ -54,12 +54,12 @@ source_set("video_processing") {
|
||||
if (is_clang) {
|
||||
# Suppress warnings from Chrome's Clang plugins.
|
||||
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
||||
configs -= [ "//build/config/clang:find_bad_constructs" ]
|
||||
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
||||
}
|
||||
}
|
||||
|
||||
if (build_video_processing_sse2) {
|
||||
source_set("video_processing_sse2") {
|
||||
rtc_source_set("video_processing_sse2") {
|
||||
sources = [
|
||||
"util/denoiser_filter_sse2.cc",
|
||||
"util/denoiser_filter_sse2.h",
|
||||
@ -71,7 +71,7 @@ if (build_video_processing_sse2) {
|
||||
if (is_clang) {
|
||||
# Suppress warnings from Chrome's Clang plugins.
|
||||
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
||||
configs -= [ "//build/config/clang:find_bad_constructs" ]
|
||||
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
||||
}
|
||||
|
||||
if (is_posix) {
|
||||
@ -81,13 +81,13 @@ if (build_video_processing_sse2) {
|
||||
}
|
||||
|
||||
if (rtc_build_with_neon) {
|
||||
source_set("video_processing_neon") {
|
||||
rtc_source_set("video_processing_neon") {
|
||||
sources = [
|
||||
"util/denoiser_filter_neon.cc",
|
||||
"util/denoiser_filter_neon.h",
|
||||
]
|
||||
if (current_cpu != "arm64") {
|
||||
configs -= [ "//build/config/compiler:compiler_arm_fpu" ]
|
||||
suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
|
||||
cflags = [ "-mfpu=neon" ]
|
||||
}
|
||||
configs += [ "../..:common_config" ]
|
||||
|
||||
Reference in New Issue
Block a user