[Libreoffice-commits] .: 2 commits - config.sub configure.in distro-configs/LibreOfficeAndroid.conf set_soenv.in

Tor Lillqvist tml at kemper.freedesktop.org
Sat May 14 17:55:47 PDT 2011


 config.sub                             |    2 +-
 configure.in                           |   26 ++++++++++++++++++++++----
 distro-configs/LibreOfficeAndroid.conf |   22 ++++++++++++++++++++++
 set_soenv.in                           |   15 +++++++++++++--
 4 files changed, 58 insertions(+), 7 deletions(-)

New commits:
commit db88ccf5e75101253a2497958de3bc489334fe65
Author: Tor Lillqvist <tml at iki.fi>
Date:   Sun May 15 03:54:06 2011 +0300

    Initial baby steps for Android cross-compilation

diff --git a/config.sub b/config.sub
index c2d1257..b3e0dd4 100755
--- a/config.sub
+++ b/config.sub
@@ -1298,7 +1298,7 @@ case $os in
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
-	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+	      | -udi* | -androideabi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
 	      | -chorusos* | -chorusrdb* | -cegcc* \
 	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
diff --git a/configure.in b/configure.in
index 10c5e36..173af84 100755
--- a/configure.in
+++ b/configure.in
@@ -1494,8 +1494,21 @@ case "$host_os" in
         PTHREAD_LIBS="-pthread"
         _os=DragonFly
         ;;
+    androideabi*)
+        build_gstreamer=no
+	test_cairo=no
+	test_cups=no
+        test_fontconfig=no
+        test_freetype=no
+        test_gtk=no
+        test_kde=no
+        test_kde4=no
+        test_randr=no
+        test_unix_quickstarter=no
+        _os=Android
+        ;;
    *)
-   AC_MSG_ERROR([$_os operating system is not suitable to build LibreOffice!])
+   AC_MSG_ERROR([$host_os operating system is not suitable to build LibreOffice!])
    ;;
 esac
 
@@ -1656,6 +1669,7 @@ if test "$cross_compiling" = "yes"; then
   tar cf - \
 	configure \
 	config.guess \
+	oowintool \
 	solenv/inc/minor.mk \
 	solenv/inc/postset.mk \
 	set_soenv.in \
@@ -1671,11 +1685,14 @@ if test "$cross_compiling" = "yes"; then
     test -n "$CXX_FOR_BUILD" && export CXX="$CXX_FOR_BUILD"
     cd $tmpdir
     sub_conf_opts=""
-    test -n $with_external_tar && sub_conf_opts="$sub_conf_opts --with-external-tar='$with_external_tar'"
+    test -n $with_ant_home && sub_conf_opts="$sub_conf_opts --with-ant-home=$with_ant_home"
+    test $with_junit = no && sub_conf_opts="$sub_conf_opts --without-junit"
     ./configure \
 	--disable-mozilla \
 	--disable-build-mozilla \
+        $sub_conf_opts \
 	2>&1 | sed -e 's/^/    /'
+    test -f ./*Env.Set.sh 2>/dev/null || exit
     . ./*Env.Set.sh
     for V in COM GUI GUIBASE OS CPU CPUNAME CC CXX GXX_INCLUDE_PATH MACOSX_DEPLOYMENT_TARGET; do
       VV='$'$V
@@ -1686,6 +1703,7 @@ if test "$cross_compiling" = "yes"; then
       fi
     done
   )
+  test -f $tmpdir/build-config || AC_MSG_ERROR([Running configure script for BUILD system failed, see $tmpdir/config.log])
   eval `cat $tmpdir/build-config`
   AC_MSG_RESULT([checking for BUILD platform configuration... done])
   rm -rf $tmpdir
@@ -5395,7 +5413,7 @@ if test "$_os" = "Darwin" -a "x$x_includes" = "xno_x_includes"; then
    echo "Do Nothing for _os = Darwin"
    dnl Mac OS X using Aqua graphics. Don't check for X11.
    :
-elif test "$_os" != "WINNT" ; then
+elif test "$_os" != "WINNT" -a "$_os" != "Android"; then
    AC_PATH_X
    AC_PATH_XTRA
    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
@@ -5445,7 +5463,7 @@ fi
 AC_SUBST(XLIB)
 AC_SUBST(XAU_LIBS)
 
-if test "$_os" != "WINNT" -a "$_os" != "Darwin"; then
+if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$_os" != "Android"; then
    dnl ===================================================================
    dnl Check for Composite.h for Mozilla plugin
    dnl ===================================================================
diff --git a/distro-configs/LibreOfficeAndroid.conf b/distro-configs/LibreOfficeAndroid.conf
new file mode 100644
index 0000000..88ec1b3
--- /dev/null
+++ b/distro-configs/LibreOfficeAndroid.conf
@@ -0,0 +1,22 @@
+--host=arm-linux-androideabi
+--disable-cairo
+--disable-cups
+--disable-fontconfig
+--disable-gconf
+--disable-gnome-vfs
+--disable-gstreamer
+--disable-lockdown
+--disable-mozilla
+--disable-nss-module
+--disable-odk
+--disable-opengl
+--disable-python
+--disable-randr
+--disable-randr-link
+--disable-systray
+--without-fonts
+--without-java
+--without-junit
+--without-ppds
+--without-stlport
+--without-system-python
diff --git a/set_soenv.in b/set_soenv.in
index 593f444..0a04b62 100755
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -583,6 +583,17 @@ elsif ( $platform =~ m/linux/ )
       $JRETHREADDIR   = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."arm".$ds."native_threads";
       $EPM_FLAGS      = "-a arm";
    }
+   elsif ($platform =~ m/^arm.*-androideabi/)
+   {  print "Setting Android ARM specific values... ";
+      $outfile        = "AndroidARMEnv.Set.sh";
+      $CPU            = "R";
+      $CPUNAME        = "ARM";
+      $OUTPATH        = "unxandr";
+      $JRELIBDIR      = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."arm";
+      $JRETOOLKITDIR  = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."arm".$ds."server";
+      $JRETHREADDIR   = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."arm".$ds."native_threads";
+      $EPM_FLAGS      = "-a arm";
+   }
    elsif ($platform =~ m/^mips/)
    {  print "Setting Linux MIPS specific values... ";
       $outfile        = "LinuxMIPSEnv.Set.sh";
commit 3a9bc13d929b7aa33b66529c8d95313b867fdd82
Author: Tor Lillqvist <tml at iki.fi>
Date:   Sun May 15 03:33:38 2011 +0300

    Rename the Windows env setting files to be in MixedCase, too

diff --git a/set_soenv.in b/set_soenv.in
index 2ea044a..593f444 100755
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -652,7 +652,7 @@ elsif ( $platform =~ m/cygwin/ )
       print "Setting Windows NT cygwin MinGW specific values... ";
       $FLIPCMD        = "slfl.pl";
       $PATH_SEPERATOR = ';';
-      $outfile        = "winmingw.set.sh";
+      $outfile        = "WindowsMinGWEnv.Set.sh";
       $COMPATH        = PathFormat('@COMPATH@/bin');
       $COMPATH        =~ s/\/bin$//i;
       $COM            = "GCC";
@@ -661,7 +661,7 @@ elsif ( $platform =~ m/cygwin/ )
       $ATL_INCLUDE = '$SOLARVER'.$ds.'$INPATH'.$ds."inc".$ds."external".$ds."mingw".$ds."include".$ds."atl". " ".'$PSDK_HOME'.$ds."include".$ds."atl";
   }
   else # The MSVC section starts here
-  {   $outfile        = "winenv.set.sh";
+  {   $outfile        = "WindowsMSVCEnv.Set.sh";
       $COMPATH        = PathFormat('@COMPATH@');
       $COM            = "MSC";
       $OUTPATH        = "wntmsci at COMEX@";


More information about the Libreoffice-commits mailing list