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

Unified Diff: media/base/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: merge to #317214 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: media/base/BUILD.gn
diff --git a/media/base/BUILD.gn b/media/base/BUILD.gn
index 0fb3b1ceca87944fc4d8eec687999c87e7598f2e..4a327bfafd26231bf6b199fd0f1288c440cc8ed7 100644
--- a/media/base/BUILD.gn
+++ b/media/base/BUILD.gn
@@ -242,7 +242,7 @@ source_set("base") {
defines += [ "DISABLE_USER_INPUT_MONITOR" ]
}
- if (cpu_arch == "x86" || cpu_arch == "x64") {
+ if (current_cpu == "x86" || current_cpu == "x64") {
sources += [ "simd/convert_yuv_to_rgb_x86.cc" ]
deps += [
":media_yasm",
@@ -373,7 +373,7 @@ source_set("unittests") {
deps += [ "//ui/gl" ]
}
- if (cpu_arch == "x86" || cpu_arch == "x64") {
+ if (current_cpu == "x86" || current_cpu == "x64") {
sources += [ "simd/convert_rgb_to_yuv_unittest.cc" ]
}
}
@@ -405,7 +405,7 @@ source_set("perftests") {
}
}
-if (cpu_arch == "x86" || cpu_arch == "x64") {
+if (current_cpu == "x86" || current_cpu == "x64") {
source_set("media_sse2") {
sources = [
"simd/convert_rgb_to_yuv_sse2.cc",
@@ -452,9 +452,9 @@ if (cpu_arch == "x86" || cpu_arch == "x64") {
"simd/scale_yuv_to_rgb_mmx.inc",
]
- if (cpu_arch == "x86") {
+ if (current_cpu == "x86") {
yasm_flags += [ "-DARCH_X86_32" ]
- } else if (cpu_arch == "x64") {
+ } else if (current_cpu == "x64") {
yasm_flags += [ "-DARCH_X86_64" ]
sources += [
"simd/linear_scale_yuv_to_rgb_mmx_x64.asm",
@@ -470,7 +470,7 @@ if (cpu_arch == "x86" || cpu_arch == "x64") {
} else {
if (is_posix) {
yasm_flags += [ "-DELF" ]
- if (cpu_arch == "x64") {
+ if (current_cpu == "x64") {
# TODO(ajwong): Why isn't this true in mac?
yasm_flags += [ "-DPIC" ]
}
« no previous file with comments | « media/BUILD.gn ('k') | mojo/nacl/BUILD.gn » ('j') | third_party/widevine/cdm/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698