[Libreoffice-commits] core.git: configure.ac
Tor Lillqvist
tml at collabora.com
Thu Feb 26 02:37:02 PST 2015
configure.ac | 32 +++++++++++++++++++++-----------
1 file changed, 21 insertions(+), 11 deletions(-)
New commits:
commit dee6cbbc1aa16f1f51d7880d6e622146e3baf21d
Author: Tor Lillqvist <tml at collabora.com>
Date: Thu Feb 26 12:35:32 2015 +0200
Enable configuring for Android cross-compilation on OS X, too
The build fails in harfbuzz, though, some ICU problem.
Change-Id: I5071a26b1cc0f6524f6b2af8740d915209727381
diff --git a/configure.ac b/configure.ac
index 2bd85d5..bd7eba5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -365,19 +365,29 @@ if test -n "$with_android_ndk"; then
# (A 64-bit ld.gold grows to much over 10 gigabytes of virtual space when linking such a .so if
# all objects have been built with debug information.)
toolchain_system='*'
- if test $build_os = linux-gnu; then
- ANDROID_COMPILER_BIN=$ANDROID_COMPILER_DIR/prebuilt/linux-x86/bin
- ANDROID_BINUTILS_PREBUILT_ROOT=$ANDROID_BINUTILS_DIR/prebuilt/linux-x86
- if test $build_cpu = x86_64; then
- if test -d $ANDROID_COMPILER_DIR/prebuilt/linux-x86_64; then
- ANDROID_COMPILER_BIN=$ANDROID_COMPILER_DIR/prebuilt/linux-x86_64/bin
- fi
- if test -d $ANDROID_BINUTILS_DIR/prebuilt/linux-x86_64; then
- ANDROID_BINUTILS_PREBUILT_ROOT=$ANDROID_BINUTILS_DIR/prebuilt/linux-x86_64
- fi
+ case $build_os in
+ linux-gnu*)
+ ndk_build_os=linux
+ ;;
+ darwin*)
+ ndk_build_os=darwin
+ ;;
+ *)
+ AC_MSG_ERROR([We only support building for Android from Linux or OS X])
+ ;;
+ esac
+
+ ANDROID_COMPILER_BIN=$ANDROID_COMPILER_DIR/prebuilt/$ndk_build_os-x86/bin
+ ANDROID_BINUTILS_PREBUILT_ROOT=$ANDROID_BINUTILS_DIR/prebuilt/$ndk_build_os-x86
+ if test $build_cpu = x86_64; then
+ if test -d $ANDROID_COMPILER_DIR/prebuilt/$ndk_build_os-x86_64; then
+ ANDROID_COMPILER_BIN=$ANDROID_COMPILER_DIR/prebuilt/$ndk_build_os-x86_64/bin
+ fi
+ if test -d $ANDROID_BINUTILS_DIR/prebuilt/$ndk_build_os-x86_64; then
+ ANDROID_BINUTILS_PREBUILT_ROOT=$ANDROID_BINUTILS_DIR/prebuilt/$ndk_build_os-x86_64
fi
- ANDROID_BINUTILS_BIN=$ANDROID_BINUTILS_PREBUILT_ROOT/bin
fi
+ ANDROID_BINUTILS_BIN=$ANDROID_BINUTILS_PREBUILT_ROOT/bin
# This stays empty if there is just one version of the toolchain in the NDK
ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR=
More information about the Libreoffice-commits
mailing list