diff options
author | David 'Digit' Turner <digit@android.com> | 2010-05-18 17:02:33 -0700 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2010-05-18 17:02:33 -0700 |
commit | 34d165185730eac6ddc4e7a23d192d22aa3d4dfb (patch) | |
tree | 8f65fdba4ae95ef1f4e96e5492943d581637cbce /android/build/common.sh | |
parent | 54808b6e68ab5be7d2a10b772f1ae4f569d542a1 (diff) | |
download | external_qemu-34d165185730eac6ddc4e7a23d192d22aa3d4dfb.zip external_qemu-34d165185730eac6ddc4e7a23d192d22aa3d4dfb.tar.gz external_qemu-34d165185730eac6ddc4e7a23d192d22aa3d4dfb.tar.bz2 |
Build SDL from sources directly.
This removes the requirement to build the SDL library before the rest
of the emulator. The prebuilt SDL library and installation is now optional
and is only kept for the full Android build on Linux (mainly to avoid having
to install many dev libraries on build servers).
This patch affects both the Android and standalone build systems.
The script android-configure.sh will not use a prebuilt SDL installation
unless you explicitely use --sdl-config=<script>.
Tested for linux-x86 / darwin-x86 / cygwin / linux-mingw builds.
Change-Id: If973b2ad199f06aeeff43aec387d1ac629487529
Diffstat (limited to 'android/build/common.sh')
-rw-r--r-- | android/build/common.sh | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/android/build/common.sh b/android/build/common.sh index 93ffba7..289e74a 100644 --- a/android/build/common.sh +++ b/android/build/common.sh @@ -134,6 +134,21 @@ esac # define HOST_ARCH as the $CPU HOST_ARCH=$CPU +# define HOST_TAG +# special case: windows-x86 => windows +compute_host_tag () +{ + case $HOST_OS-$HOST_ARCH in + cygwin-x86|windows-x86) + HOST_TAG=windows + ;; + *) + HOST_TAG=$HOST_OS-$HOST_ARCH + ;; + esac +} +compute_host_tag + #### Toolchain support #### @@ -170,6 +185,7 @@ force_32bit_binaries () esac HOST_ARCH=x86 CPU=x86 + compute_host_tag log "Check32Bits: Forcing generation of 32-bit binaries (--try-64 to disable)" fi } @@ -504,6 +520,6 @@ add_android_config_mk () { echo "" >> $config_mk echo "TARGET_ARCH := arm" >> $config_mk - echo "HOST_PREBUILT_TAG := $ANDROID_PREBUILT_HOST_TAG" >> $config_mk + echo "HOST_PREBUILT_TAG := $HOST_TAG" >> $config_mk echo "PREBUILT := $ANDROID_PREBUILT" >> $config_mk } |