• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2#
3#  this script is used to build a static version of the Android emulator
4#  from our distribution package.
5#
6cd $(dirname $0)
7CURDIR=$(pwd)
8
9show_help=
10TARGET=emulator
11for opt; do
12  optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
13  case "$opt" in
14  --help|-h|-\?) show_help=yes
15  ;;
16  --target=*) TARGET=$optarg
17  ;;
18  esac
19done
20
21if [ -n "$show_help" ] ; then
22    echo "usage: build-emulator [--target=FILEPATH]"
23    exit 1
24fi
25
26# directory where we'll place the temporary SDL binaries
27LOCAL=$CURDIR/local
28
29cd $CURDIR/qemu
30if ! (./android-rebuild.sh); then
31    echo "ERROR: could not build the emulator, please check the sources"
32fi
33
34cp objs/emulator $CURDIR/emulator
35