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

Unified Diff: build/config/BUILDCONFIG.gn

Issue 634403004: GN: add target_arch build arg for android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-parse-error
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/BUILDCONFIG.gn
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn
index 7994dd77f78ac7470c173718d9219cf9417e0ece..b83ebce60917964095c7857c4fc61165504f6f47 100644
--- a/build/config/BUILDCONFIG.gn
+++ b/build/config/BUILDCONFIG.gn
@@ -71,6 +71,11 @@ declare_args() {
# toolchains.
cros_use_custom_toolchain = false
}
+
+ if (os == "android") {
+ # Architecture of the target device.
brettw 2014/10/16 19:19:07 Can you add here something to the effect of "This
cjhopman 2014/10/16 21:29:59 Done.
+ target_arch = "arm"
+ }
}
# =============================================================================
@@ -174,6 +179,14 @@ if (is_win) {
}
}
+if (is_android) {
+ # TODO(cjhopman): enable this assert once bots are updated to not set
+ # cpu_arch.
+ #assert(cpu_arch == build_cpu_arch, "Android device target architecture should
+ # be set with 'target_arch', not 'cpu_arch'")
+ cpu_arch = target_arch
+}
+
# =============================================================================
# SOURCES FILTERS
# =============================================================================
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698