Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(903)

Unified Diff: content/common/BUILD.gn

Issue 913373002: Update Chomium's build files to work w/ latest GN binaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn_cpu_arch_changes
Patch Set: cleanup / review Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/BUILD.gn
diff --git a/content/common/BUILD.gn b/content/common/BUILD.gn
index f738fc50bf2ff0feede75bdd285679ec0a40ddc3..b6f89eba3d8ec1ea8e24e1e9db14170267b84967 100644
--- a/content/common/BUILD.gn
+++ b/content/common/BUILD.gn
@@ -7,7 +7,7 @@ import("//build/config/ui.gni")
import("//content/common/common.gni")
import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
-if (is_chromeos && cpu_arch != "arm") {
+if (is_chromeos && current_cpu != "arm") {
action("libva_generate_stubs") {
extra_header = "gpu/media/va_stub_header.fragment"
@@ -243,7 +243,7 @@ source_set("common") {
include_dirs += [ "//third_party/khronos" ]
configs += [ "//build/config/linux:xcomposite" ]
- if (cpu_arch != "arm" || !is_chromeos) {
+ if (current_cpu != "arm" || !is_chromeos) {
sources += [
"gpu/x_util.cc",
"gpu/x_util.h",
@@ -284,7 +284,7 @@ source_set("common") {
if (use_v4l2_codec) {
defines += [ "USE_V4L2_CODEC" ]
}
- if (cpu_arch == "arm" || (use_ozone && use_v4l2_codec)) {
+ if (current_cpu == "arm" || (use_ozone && use_v4l2_codec)) {
sources += [
"gpu/media/generic_v4l2_video_device.cc",
"gpu/media/generic_v4l2_video_device.h",
@@ -301,14 +301,14 @@ source_set("common") {
"EGL",
"GLESv2",
]
- if (cpu_arch == "arm") {
+ if (current_cpu == "arm") {
sources += [
"gpu/media/tegra_v4l2_video_device.cc",
"gpu/media/tegra_v4l2_video_device.h",
]
}
}
- if (cpu_arch != "arm") {
+ if (current_cpu != "arm") {
sources += [
"gpu/media/va_surface.h",
"gpu/media/vaapi_h264_decoder.cc",
« no previous file with comments | « components/policy/BUILD.gn ('k') | content/gpu/BUILD.gn » ('j') | ppapi/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698