Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi *,

thanks to Tor's and others (Kendy, Fridrich, Jesus and all those I
forgot) work around making LibO truly cross-buildable, there's now
Android building up to instsetoo_native again. It's not doing
anything sensible besides compiling yet.

If I get to it, I'll have a tinderbox building it - and to make
people playing with it a tad easier, what about attached patch to
configure.in (similar in spirit to the --with-macosx-sdk option),
that adds a --with-android-ndk= option?

Cheers,

-- Thorsten
diff --git a/configure.in b/configure.in
index 3224852..31c8f02 100644
--- a/configure.in
+++ b/configure.in
@@ -537,6 +537,20 @@ AC_ARG_WITH(system-graphite,
         [Use graphite library already installed on system.]),
 ,)
 
+AC_ARG_WITH(android-ndk,
+    AS_HELP_STRING([--with-android-ndk=<NDK PATH>],
+        [Specify path to Android NDK root directory.]),
+    SYSBASE=$withval/platforms/android-9/arch-arm
+    
CC=$withval/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc 
--sysroot $withval/platforms/android-9/arch-arm
+    
CXX=$withval/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-g++
 --sysroot $withval/platforms/android-9/arch-arm -I $withval/sources/cxx-stl/gnu-libstdc++/include 
-I$withval/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include 
-L$withval/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a -fexceptions -frtti
+    
AR=$withval/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-ar
+    
NM=$withval/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-nm
+    
OBJDUMP=$withval/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-objdump
+    
RANLIB=$withval/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-ranlib
+    
STRIP=$withval/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-strip
+    ,
+)
+
 AC_ARG_WITH(external-tar,
     AS_HELP_STRING([--with-external-tar=<TARFILE PATH>],
         [Specify path to tarfiles manually.]),

Attachment: pgpCX9gXAt9a6.pgp
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.