echo "Initializing for non-SDK build."
fi
-# Get host architecture, and abort if it is 32-bit, unless --try-32
-# is also used.
+# Get host architecture, and abort if it is 32-bit.
host_arch=$(uname -m)
case "${host_arch}" in
x86_64) # pass
;;
i?86)
- if [[ -z "${try_32bit_host_build}" ]]; then
- echo "ERROR: Android build requires a 64-bit host build machine."
- echo "If you really want to try it on this machine, use the \
---try-32bit-host flag."
- echo "Be warned that this may fail horribly at link time, due \
-very large binaries."
- return 1
- else
- echo "WARNING: 32-bit host build enabled. Here be dragons!"
- host_arch=x86
- fi
+ echo "ERROR: Android build requires a 64-bit host build machine."
+ return 1
;;
*)
echo "ERROR: Unsupported host architecture (${host_arch})."
return 1
esac
-case "${host_os}" in
- "linux")
- toolchain_dir="linux-${host_arch}"
- ;;
- "mac")
- toolchain_dir="darwin-${host_arch}"
- ;;
- *)
- echo "Host platform ${host_os} is not supported" >& 2
- return 1
-esac
-
CURRENT_DIR="$(readlink -f "${SCRIPT_DIR}/../../")"
if [[ -z "${CHROME_SRC}" ]]; then
# If $CHROME_SRC was not set, assume current directory is CHROME_SRC.
android_gyp() {
# This is just a simple wrapper of gyp_chromium, please don't add anything
# in this function.
- echo "GYP_GENERATORS set to '$GYP_GENERATORS'"
(
"${CHROME_SRC}/build/gyp_chromium" --depth="${CHROME_SRC}" --check "$@"
)