Remove indirection of cpufeatures.gypi.

Now that android_webview_build is no longer supported, the extra level
of indirection of including cpufeatures.gypi instead of directly
depending on the cpufeatures target is not necessary. Remove the cases
in the Chromium tree. Other references appear in projects pulled in via
DEPS that will have to be fixed separately before cpufeatures.gypi can
be entirely deleted.

BUG=440793

Review URL: https://codereview.chromium.org/1045123005

Cr-Original-Commit-Position: refs/heads/master@{#324117}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9845b890dd38f0b88b0304f3bd6c437a7c6f8f8d
This commit is contained in:
torne 2015-04-07 14:02:54 -07:00 коммит произвёл Commit bot
Родитель fdf53635e4
Коммит f57c00ce92
2 изменённых файлов: 8 добавлений и 25 удалений

Просмотреть файл

@ -2,30 +2,13 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Depend on the Android NDK's cpu feature detection. The WebView build is part
# of the system and the library already exists; for the normal build there is a
# gyp file in the checked-in NDK to build it.
# Depend on the Android NDK's cpu feature detection. This additional level of
# abstraction is no longer necessary and targets can depend directly on
# build/android/ndk.gyp:cpu_features instead.
# TODO(torne): delete this once all DEPS have been rolled to not use it.
# http://crbug.com/440793
{
'conditions': [
['android_webview_build == 1', {
# This is specified twice intentionally: Android provides include paths
# to targets automatically if they depend on libraries, so we add this
# library to every target that includes this .gypi to make the headers
# available, then also add it to targets that link those targets via
# link_settings to ensure it ends up being linked even if the main target
# doesn't include this .gypi.
'libraries': [
'cpufeatures.a',
],
'link_settings': {
'libraries': [
'cpufeatures.a',
],
},
}, {
'dependencies': [
'<(DEPTH)/build/android/ndk.gyp:cpu_features',
],
}],
'dependencies': [
'<(DEPTH)/build/android/ndk.gyp:cpu_features',
],
}

Просмотреть файл

@ -9,7 +9,7 @@ config("cpu_features_include") {
}
# This is the GN version of
# //build/android/cpufeatures.gypi:cpufeatures
# //build/android/ndk.gyp:cpu_features
source_set("cpu_features") {
sources = [
"ndk/sources/android/cpufeatures/cpu-features.c",