libyuv: Expand is_linux to is_linux || is_chromeos.

Currently is_linux is true on building Chrome OS,
but it is planned to set to false. This is the preparation.

Bug: chromium:1110266
Test: Build locally.
Change-Id: Icf3445a8a828e1e1a637360363845bcca5863aca
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/2400818
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
This commit is contained in:
Hidehiko Abe 2020-09-09 18:39:27 +09:00 committed by Frank Barchard
parent b45db3c4af
commit 165f39cd12

View File

@ -32,9 +32,7 @@ config("libyuv_config") {
# This target is built when no specific target is specified on the command line. # This target is built when no specific target is specified on the command line.
group("default") { group("default") {
testonly = true testonly = true
deps = [ deps = [ ":libyuv" ]
":libyuv",
]
if (libyuv_include_tests) { if (libyuv_include_tests) {
deps += [ deps += [
":compare", ":compare",
@ -53,13 +51,9 @@ group("libyuv") {
if (is_win && target_cpu == "x64") { if (is_win && target_cpu == "x64") {
# Compile with clang in order to get inline assembly # Compile with clang in order to get inline assembly
public_deps = [ public_deps = [ ":libyuv_internal(//build/toolchain/win:win_clang_x64)" ]
":libyuv_internal(//build/toolchain/win:win_clang_x64)",
]
} else { } else {
public_deps = [ public_deps = [ ":libyuv_internal" ]
":libyuv_internal",
]
} }
if (libyuv_use_neon) { if (libyuv_use_neon) {
@ -196,9 +190,7 @@ if (libyuv_use_neon) {
"source/scale_neon64.cc", "source/scale_neon64.cc",
] ]
deps = [ deps = [ ":libyuv_internal" ]
":libyuv_internal",
]
public_configs = [ ":libyuv_config" ] public_configs = [ ":libyuv_config" ]
@ -229,9 +221,7 @@ if (libyuv_use_msa) {
"source/scale_msa.cc", "source/scale_msa.cc",
] ]
deps = [ deps = [ ":libyuv_internal" ]
":libyuv_internal",
]
public_configs = [ ":libyuv_config" ] public_configs = [ ":libyuv_config" ]
} }
@ -247,9 +237,7 @@ if (libyuv_use_mmi) {
"source/scale_mmi.cc", "source/scale_mmi.cc",
] ]
deps = [ deps = [ ":libyuv_internal" ]
":libyuv_internal",
]
public_configs = [ ":libyuv_config" ] public_configs = [ ":libyuv_config" ]
} }
@ -309,12 +297,10 @@ if (libyuv_include_tests) {
configs += [ ":libyuv_unittest_warnings_config" ] configs += [ ":libyuv_unittest_warnings_config" ]
public_deps = [ public_deps = [ "//testing/gtest" ]
"//testing/gtest",
]
public_configs = [ ":libyuv_unittest_config" ] public_configs = [ ":libyuv_unittest_config" ]
if (is_linux) { if (is_linux || is_chromeos) {
cflags = [ "-fexceptions" ] cflags = [ "-fexceptions" ]
} }
if (is_ios) { if (is_ios) {
@ -351,10 +337,8 @@ if (libyuv_include_tests) {
# sources # sources
"util/compare.cc", "util/compare.cc",
] ]
deps = [ deps = [ ":libyuv" ]
":libyuv", if (is_linux || is_chromeos) {
]
if (is_linux) {
cflags = [ "-fexceptions" ] cflags = [ "-fexceptions" ]
} }
} }
@ -364,10 +348,8 @@ if (libyuv_include_tests) {
# sources # sources
"util/yuvconvert.cc", "util/yuvconvert.cc",
] ]
deps = [ deps = [ ":libyuv" ]
":libyuv", if (is_linux || is_chromeos) {
]
if (is_linux) {
cflags = [ "-fexceptions" ] cflags = [ "-fexceptions" ]
} }
} }
@ -379,9 +361,7 @@ if (libyuv_include_tests) {
"util/psnr_main.cc", "util/psnr_main.cc",
"util/ssim.cc", "util/ssim.cc",
] ]
deps = [ deps = [ ":libyuv" ]
":libyuv",
]
if (!is_ios && !libyuv_disable_jpeg) { if (!is_ios && !libyuv_disable_jpeg) {
defines = [ "HAVE_JPEG" ] defines = [ "HAVE_JPEG" ]
@ -403,8 +383,6 @@ if (libyuv_include_tests) {
# sources # sources
"util/cpuid.c", "util/cpuid.c",
] ]
deps = [ deps = [ ":libyuv" ]
":libyuv",
]
} }
} }