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

Unified Diff: third_party/opus/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: third_party/opus/BUILD.gn
diff --git a/third_party/opus/BUILD.gn b/third_party/opus/BUILD.gn
index 244ddcd6927fbb64850c40c665e05804c18d9384..fefba0480a075b649c132db476dbbd64755302fb 100644
--- a/third_party/opus/BUILD.gn
+++ b/third_party/opus/BUILD.gn
@@ -6,15 +6,15 @@ import("//build/config/arm.gni")
import("//testing/test.gni")
# If fixed point implementation shall be used (otherwise float).
-use_opus_fixed_point = cpu_arch == "arm" || cpu_arch == "arm64"
+use_opus_fixed_point = current_cpu == "arm" || current_cpu == "arm64"
# If ARM optimizations shall be used to accelerate performance.
-use_opus_arm_optimization = cpu_arch == "arm"
+use_opus_arm_optimization = current_cpu == "arm"
# If OPUS Run Time CPU Detections (RTCD) shall be used.
# Based on the conditions in celt/arm/armcpu.c:
# defined(_MSC_VER) || defined(__linux__).
-use_opus_rtcd = cpu_arch == "arm" && (is_win || is_android || is_linux)
+use_opus_rtcd = current_cpu == "arm" && (is_win || is_android || is_linux)
config("opus_config") {
include_dirs = [ "src/include" ]
@@ -97,7 +97,8 @@ source_set("opus") {
cflags = [ "-Wno-#pragma-messages" ]
}
- if (!is_debug && is_posix && (cpu_arch == "arm" || cpu_arch == "arm64")) {
+ if (!is_debug && is_posix &&
+ (current_cpu == "arm" || current_cpu == "arm64")) {
configs -= [ "//build/config/compiler:optimize" ]
configs += [ "//build/config/compiler:optimize_max" ]
}

Powered by Google App Engine
This is Rietveld 408576698