install-build-deps-android.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. # Copyright (c) 2012 The Chromium Authors. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. # Script to install everything needed to build chromium on android, including
  6. # items requiring sudo privileges.
  7. # See https://www.chromium.org/developers/how-tos/android-build-instructions
  8. args="$@"
  9. if ! uname -m | egrep -q "i686|x86_64"; then
  10. echo "Only x86 architectures are currently supported" >&2
  11. exit
  12. fi
  13. # Exit if any commands fail.
  14. set -e
  15. lsb_release=$(lsb_release --codename --short)
  16. # Install first the default Linux build deps.
  17. "$(dirname "${BASH_SOURCE[0]}")/install-build-deps.sh" \
  18. --no-syms --lib32 --no-arm --no-chromeos-fonts --no-nacl --no-prompt "${args}"
  19. # Fix deps
  20. sudo apt-get -f install
  21. # common
  22. sudo apt-get -y install lib32z1 lighttpd xvfb x11-utils
  23. # Some binaries in the Android SDK require 32-bit libraries on the host.
  24. # See https://developer.android.com/sdk/installing/index.html?pkg=tools
  25. sudo apt-get -y install libncurses5:i386 libstdc++6:i386 zlib1g:i386
  26. echo "install-build-deps-android.sh complete."