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

Unified Diff: build/android/envsetup_functions.sh

Issue 12317098: Android: allow host OS to be passed to envsetup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update usage Created 7 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
« no previous file with comments | « build/android/envsetup.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/envsetup_functions.sh
diff --git a/build/android/envsetup_functions.sh b/build/android/envsetup_functions.sh
index b6cff269becbd6a63a23bb6277ebe19fb3833fe2..7c7557aa5a44ab850dcc9cd9f22a7f6b977c37c3 100755
--- a/build/android/envsetup_functions.sh
+++ b/build/android/envsetup_functions.sh
@@ -158,6 +158,7 @@ common_gyp_vars() {
print_usage() {
echo "usage: ${0##*/} [--target-arch=value] [--help]" >& 2
echo "--target-arch=value target CPU architecture (arm=default, x86)" >& 2
+ echo "--host-os=value override host OS detection (linux, mac)" >&2
echo "--try-32bit-host try building a 32-bit host architecture" >&2
echo "--help this help" >& 2
}
@@ -169,12 +170,16 @@ print_usage() {
# --help Prints out help message.
################################################################################
process_options() {
+ host_os=$(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')
try_32bit_host_build=
while [[ $1 ]]; do
case "$1" in
--target-arch=*)
target_arch="$(echo "$1" | sed 's/^[^=]*=//')"
;;
+ --host-os=*)
+ host_os="$(echo "$1" | sed 's/^[^=]*=//')"
+ ;;
--try-32bit-host)
try_32bit_host_build=true
;;
« no previous file with comments | « build/android/envsetup.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698