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: pgpReryJXCUps.pgp
Description: PGP signature

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to