Commit 801f0550 authored by Sam Maier's avatar Sam Maier Committed by Commit Bot

Use android_ndk cpu_features target

cpu_features GN target moved from android_sdk to android_ndk

TBR: minor rename of target
Bug: 990407
Change-Id: I82e25a24716d73e17f2e19dd5e83e94b636b8b0f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1756203
Auto-Submit: Sam Maier <smaier@chromium.org>
Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/master@{#690799}
parent f5238d17
......@@ -1453,7 +1453,7 @@ jumbo_component("base") {
deps += [
":base_jni_headers",
"//third_party/android_sdk:cpu_features",
"//third_party/android_ndk:cpu_features",
"//third_party/ashmem",
]
......
......@@ -2906,8 +2906,8 @@ jumbo_split_static_library("browser") {
"//sandbox",
"//sandbox:sandbox_buildflags",
"//services/proxy_resolver:lib",
"//third_party/android_ndk:cpu_features",
"//third_party/android_opengl/etc1",
"//third_party/android_sdk:cpu_features",
"//third_party/crashpad/crashpad/client:client",
"//third_party/libaddressinput:util",
"//third_party/libphonenumber",
......
......@@ -57,7 +57,7 @@ template("implement_content_app") {
"//media/midi",
"//net",
"//skia",
"//third_party/android_sdk:cpu_features",
"//third_party/android_ndk:cpu_features",
"//ui/android",
"//ui/events",
"//ui/shell_dialogs",
......
......@@ -133,7 +133,7 @@ target(link_target_type, "child") {
]
if (is_android) {
deps += [ "//third_party/android_sdk:cpu_features" ]
deps += [ "//third_party/android_ndk:cpu_features" ]
if (notouch_build) {
configs += [ ":notouch_config" ]
}
......
......@@ -573,7 +573,7 @@ target(link_target_type, "renderer") {
set_sources_assignment_filter(sources_assignment_filter)
deps += [
"//third_party/android_sdk:cpu_features",
"//third_party/android_ndk:cpu_features",
"//third_party/libphonenumber",
]
} else {
......
......@@ -486,7 +486,7 @@ component("skia") {
if (is_android) {
deps += [
"//third_party/android_sdk:cpu_features",
"//third_party/android_ndk:cpu_features",
"//third_party/expat",
]
}
......
......@@ -4,29 +4,9 @@
import("//build/config/android/rules.gni")
config("cpu_features_include") {
include_dirs = [ "$android_ndk_root/sources/android/cpufeatures" ]
}
config("cpu_features_warnings") {
if (is_clang) {
# cpu-features.c has few unused functions on x86 b/26403333
cflags = [ "-Wno-unused-function" ]
}
}
source_set("cpu_features") {
sources = [
"$android_ndk_root/sources/android/cpufeatures/cpu-features.c",
]
public_configs = [ ":cpu_features_include" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
"//build/config/compiler:no_chromium_code",
# Must be after no_chromium_code for warning flags to be ordered correctly.
":cpu_features_warnings",
group("cpu_features") {
public_deps = [
"$android_ndk_root:cpu_features",
]
}
......
......@@ -205,7 +205,7 @@ if (enable_libaom_decoder) {
deps += [ ":libaom_intrinsics_neon" ]
}
if (is_android) {
deps += [ "//third_party/android_sdk:cpu_features" ]
deps += [ "//third_party/android_ndk:cpu_features" ]
}
public_configs = [ ":libaom_external_config" ]
}
......
......@@ -362,7 +362,7 @@ static_library("libvpx") {
deps += [ ":libvpx_intrinsics_neon" ]
}
if (is_android) {
deps += [ "//third_party/android_sdk:cpu_features" ]
deps += [ "//third_party/android_ndk:cpu_features" ]
}
if (current_cpu == "arm" && arm_assembly_sources != []) {
deps += [ ":libvpx_assembly_arm" ]
......
......@@ -180,7 +180,7 @@ static_library("libwebp_dsp") {
":libwebp_webp",
]
if (is_android) {
deps += [ "//third_party/android_sdk:cpu_features" ]
deps += [ "//third_party/android_ndk:cpu_features" ]
}
if (current_cpu == "x86" || current_cpu == "x64") {
defines = [
......
......@@ -144,7 +144,7 @@ source_set("common") {
# files replaces these using macros for "wels_..." versions of the same
# functions. We do not have access to these and use the <cpu-features.h>
# ones instead.
"//third_party/android_sdk:cpu_features",
"//third_party/android_ndk:cpu_features",
]
}
}
......
......@@ -98,7 +98,7 @@ if (use_arm_neon_optimizations) {
import("//build/config/android/config.gni")
if (defined(android_ndk_root) && android_ndk_root != "") {
deps = [
"//third_party/android_sdk:cpu_features",
"//third_party/android_ndk:cpu_features",
]
} else {
assert(false, "CPU detection requires the Android NDK")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment