Route cpu_features to //third_party/cpu_features

All usages of //third_party/android_ndk:cpu_features are being migrated
to //third_party/cpu_features:ndk_compat. Temporarily re-route the
current usages to the final target to avoid duplicate symbols. This file
can be removed when all usages have been migrated.

Bug: 1446042
Change-Id: I18ccf4a1053a48fbbaaec02bdff4cc3fb87bbfb6
Reviewed-on: https://chromium-review.googlesource.com/c/android_ndk/+/4545474
Tested-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
diff --git a/BUILD.gn b/BUILD.gn
index 86691d4..b0cf07d 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -2,28 +2,10 @@
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
 
-config("cpu_features_include") {
-  include_dirs = [ "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 = [
-    "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",
-  ]
+# All usages of //third_party/android_ndk:cpu_features are being migrated to
+# //third_party/cpu_features:ndk_compat. Temporarily re-route the current
+# usages to the final target to avoid duplicate symbols. This file can be
+# removed when all usages have been migrated.
+group("cpu_features") {
+  public_deps = [ "//third_party/cpu_features:ndk_compat" ]
 }