android/Module_android.mk | 9 ++++++++- config_host.mk.in | 1 + configure.ac | 40 ++++++++++++++++++++++++++++++---------- 3 files changed, 39 insertions(+), 11 deletions(-)
New commits: commit 24b4610e10a539609a6679b598de7dc7957791c0 Author: Andrzej J.R. Hunt <andr...@ahunt.org> Date: Sun Oct 6 14:45:55 2013 +0100 Separate Impress Remote from Android build. Previously the Impress Remote app could only be built within gbuild when building the entirety of LO for Android, it can now be enabled separately to be built within any LO build. (Note that the app could still be built separately without doing a full Android build of LO by using the android build tools and/or IDE.) Conflicts: config_host.mk.in Change-Id: I21d4389082a1492a3c9029d630f3fff97d9ba99a Reviewed-on: https://gerrit.libreoffice.org/6146 Reviewed-by: Björn Michaelsen <bjoern.michael...@canonical.com> Tested-by: Björn Michaelsen <bjoern.michael...@canonical.com> diff --git a/android/Module_android.mk b/android/Module_android.mk index 46326bd..da98482 100644 --- a/android/Module_android.mk +++ b/android/Module_android.mk @@ -8,10 +8,17 @@ $(eval $(call gb_Module_Module,android)) -ifeq ($(OS),ANDROID) +ifeq ($(ENABLE_SDREMOTE_ANDROID),TRUE) $(eval $(call gb_Module_add_targets,android,\ CustomTarget_sdremote \ +)) + +endif + +ifeq ($(OS),ANDROID) + +$(eval $(call gb_Module_add_targets,android,\ CustomTarget_lo4android \ CustomTarget_android_desktop \ )) diff --git a/config_host.mk.in b/config_host.mk.in index 92c6d51..49977f1 100755 --- a/config_host.mk.in +++ b/config_host.mk.in @@ -160,6 +160,7 @@ export ENABLE_SCRIPTING_JAVASCRIPT=@ENABLE_SCRIPTING_JAVASCRIPT@ export ENABLE_SDREMOTE=@ENABLE_SDREMOTE@ export ENABLE_SDREMOTE_BLUETOOTH=@ENABLE_SDREMOTE_BLUETOOTH@ export SYSTEM_BLUEZ=@SYSTEM_BLUEZ@ +export ENABLE_SDREMOTE_ANDROID=@ENABLE_SDREMOTE_ANDROID@ export ENABLE_SILENT_MSI=@ENABLE_SILENT_MSI@ export ENABLE_SYMBOLS=@ENABLE_SYMBOLS@ export ENABLE_SYSTRAY_GTK=@ENABLE_SYSTRAY_GTK@ diff --git a/configure.ac b/configure.ac index 14fdbfd..b2097424 100755 --- a/configure.ac +++ b/configure.ac @@ -210,7 +210,8 @@ AC_ARG_WITH(android-ndk-toolchain-version, AC_ARG_WITH(android-sdk, AS_HELP_STRING([--with-android-sdk], - [Specify location of the Android SDK. Mandatory when building for Android.]), + [Specify location of the Android SDK. Mandatory when building for Android, + or when building the Impress Remote Android app.]), ,) ANDROID_NDK_HOME= @@ -660,19 +661,11 @@ linux-android*) AC_MSG_ERROR([the --with-android-ndk-toolchain-version option is mandatory]) fi - if test -z "$with_android_sdk"; then - AC_MSG_ERROR([the --with-android-sdk option is mandatory]) - fi - # Verify that the NDK and SDK options are proper if test ! -f "$ANDROID_NDK_HOME/platforms/android-9/arch-arm/usr/lib/libc.a"; then AC_MSG_ERROR([the --with-android-ndk option does not point to an Android NDK]) fi - if test ! -d "$ANDROID_SDK_HOME/platforms"; then - AC_MSG_ERROR([the --with-android-sdk option does not point to an Android SDK]) - fi - AC_DEFINE(HAVE_FT_FACE_GETCHARVARIANTINDEX) BUILD_TYPE="$BUILD_TYPE FONTCONFIG FREETYPE" ;; @@ -682,6 +675,16 @@ linux-android*) ;; esac +if echo "$host_os" | grep -q linux-android || test "$enable_sdremote_android" = "yes"; then + if test -z "$with_android_sdk"; then + AC_MSG_ERROR([the --with-android-sdk option is mandatory]) + fi + + if test ! -d "$ANDROID_SDK_HOME/platforms"; then + AC_MSG_ERROR([the --with-android-sdk option does not point to an Android SDK]) + fi +fi + if test "$_os" = "AIX"; then AC_PATH_PROG(GAWK, gawk) if test -z "$GAWK"; then @@ -997,7 +1000,7 @@ AC_ARG_ENABLE(packagekit, AC_ARG_ENABLE(sdremote, AS_HELP_STRING([--disable-sdremote], - [Determines whether to enable Impress remote control.]), + [Determines whether to enable Impress remote control (i.e. the server component).]), ,enable_sdremote=yes) AC_ARG_ENABLE(sdremote-bluetooth, @@ -1005,6 +1008,12 @@ AC_ARG_ENABLE(sdremote-bluetooth, [Determines whether to build sdremote with bluetooth support. Requires dbus on Linux.])) +AC_ARG_ENABLE(sdremote-android, + AS_HELP_STRING([--enable-sdremote-android], + [Determines whether to build the Impress Remote Android app -- requires + a correctly configured android sdk. Automatically enabled if ]), +,enable_sdremote_android=no) + AC_ARG_ENABLE(gconf, AS_HELP_STRING([--disable-gconf], [Determines whether to use the GConf support.]), @@ -10116,6 +10125,17 @@ AC_SUBST(ENABLE_SDREMOTE) AC_SUBST(ENABLE_SDREMOTE_BLUETOOTH) AC_SUBST(SYSTEM_BLUEZ) +AC_MSG_CHECKING([whether to enable Impress remote control android app]) +if echo "$host_os" | grep -q linux-android || test "$enable_sdremote_android" = "yes"; then + AC_MSG_RESULT([yes]) + ENABLE_SDREMOTE_ANDROID=TRUE + AC_MSG_CHECKING([whether to enable Bluetooth support in Impress remote control]) +else + ENABLE_SDREMOTE= + AC_MSG_RESULT([no]) +fi +AC_SUBST(ENABLE_SDREMOTE_ANDROID) + dnl =================================================================== dnl Check whether the gtk 2.0 libraries are available. dnl ===================================================================
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits