Kaydet (Commit) 24b4610e authored tarafından Andrzej J.R. Hunt's avatar Andrzej J.R. Hunt Kaydeden (comit) Björn Michaelsen

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/6146Reviewed-by: 's avatarBjörn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: 's avatarBjörn Michaelsen <bjoern.michaelsen@canonical.com>
üst e587d0c9
...@@ -8,10 +8,17 @@ ...@@ -8,10 +8,17 @@
$(eval $(call gb_Module_Module,android)) $(eval $(call gb_Module_Module,android))
ifeq ($(OS),ANDROID) ifeq ($(ENABLE_SDREMOTE_ANDROID),TRUE)
$(eval $(call gb_Module_add_targets,android,\ $(eval $(call gb_Module_add_targets,android,\
CustomTarget_sdremote \ CustomTarget_sdremote \
))
endif
ifeq ($(OS),ANDROID)
$(eval $(call gb_Module_add_targets,android,\
CustomTarget_lo4android \ CustomTarget_lo4android \
CustomTarget_android_desktop \ CustomTarget_android_desktop \
)) ))
......
...@@ -160,6 +160,7 @@ export ENABLE_SCRIPTING_JAVASCRIPT=@ENABLE_SCRIPTING_JAVASCRIPT@ ...@@ -160,6 +160,7 @@ export ENABLE_SCRIPTING_JAVASCRIPT=@ENABLE_SCRIPTING_JAVASCRIPT@
export ENABLE_SDREMOTE=@ENABLE_SDREMOTE@ export ENABLE_SDREMOTE=@ENABLE_SDREMOTE@
export ENABLE_SDREMOTE_BLUETOOTH=@ENABLE_SDREMOTE_BLUETOOTH@ export ENABLE_SDREMOTE_BLUETOOTH=@ENABLE_SDREMOTE_BLUETOOTH@
export SYSTEM_BLUEZ=@SYSTEM_BLUEZ@ export SYSTEM_BLUEZ=@SYSTEM_BLUEZ@
export ENABLE_SDREMOTE_ANDROID=@ENABLE_SDREMOTE_ANDROID@
export ENABLE_SILENT_MSI=@ENABLE_SILENT_MSI@ export ENABLE_SILENT_MSI=@ENABLE_SILENT_MSI@
export ENABLE_SYMBOLS=@ENABLE_SYMBOLS@ export ENABLE_SYMBOLS=@ENABLE_SYMBOLS@
export ENABLE_SYSTRAY_GTK=@ENABLE_SYSTRAY_GTK@ export ENABLE_SYSTRAY_GTK=@ENABLE_SYSTRAY_GTK@
......
...@@ -210,7 +210,8 @@ AC_ARG_WITH(android-ndk-toolchain-version, ...@@ -210,7 +210,8 @@ AC_ARG_WITH(android-ndk-toolchain-version,
AC_ARG_WITH(android-sdk, AC_ARG_WITH(android-sdk,
AS_HELP_STRING([--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= ANDROID_NDK_HOME=
...@@ -660,19 +661,11 @@ linux-android*) ...@@ -660,19 +661,11 @@ linux-android*)
AC_MSG_ERROR([the --with-android-ndk-toolchain-version option is mandatory]) AC_MSG_ERROR([the --with-android-ndk-toolchain-version option is mandatory])
fi 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 # 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 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]) AC_MSG_ERROR([the --with-android-ndk option does not point to an Android NDK])
fi 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) AC_DEFINE(HAVE_FT_FACE_GETCHARVARIANTINDEX)
BUILD_TYPE="$BUILD_TYPE FONTCONFIG FREETYPE" BUILD_TYPE="$BUILD_TYPE FONTCONFIG FREETYPE"
;; ;;
...@@ -682,6 +675,16 @@ linux-android*) ...@@ -682,6 +675,16 @@ linux-android*)
;; ;;
esac 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 if test "$_os" = "AIX"; then
AC_PATH_PROG(GAWK, gawk) AC_PATH_PROG(GAWK, gawk)
if test -z "$GAWK"; then if test -z "$GAWK"; then
...@@ -997,7 +1000,7 @@ AC_ARG_ENABLE(packagekit, ...@@ -997,7 +1000,7 @@ AC_ARG_ENABLE(packagekit,
AC_ARG_ENABLE(sdremote, AC_ARG_ENABLE(sdremote,
AS_HELP_STRING([--disable-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) ,enable_sdremote=yes)
AC_ARG_ENABLE(sdremote-bluetooth, AC_ARG_ENABLE(sdremote-bluetooth,
...@@ -1005,6 +1008,12 @@ AC_ARG_ENABLE(sdremote-bluetooth, ...@@ -1005,6 +1008,12 @@ AC_ARG_ENABLE(sdremote-bluetooth,
[Determines whether to build sdremote with bluetooth support. [Determines whether to build sdremote with bluetooth support.
Requires dbus on Linux.])) 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, AC_ARG_ENABLE(gconf,
AS_HELP_STRING([--disable-gconf], AS_HELP_STRING([--disable-gconf],
[Determines whether to use the GConf support.]), [Determines whether to use the GConf support.]),
...@@ -10116,6 +10125,17 @@ AC_SUBST(ENABLE_SDREMOTE) ...@@ -10116,6 +10125,17 @@ AC_SUBST(ENABLE_SDREMOTE)
AC_SUBST(ENABLE_SDREMOTE_BLUETOOTH) AC_SUBST(ENABLE_SDREMOTE_BLUETOOTH)
AC_SUBST(SYSTEM_BLUEZ) 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 ===================================================================
dnl Check whether the gtk 2.0 libraries are available. dnl Check whether the gtk 2.0 libraries are available.
dnl =================================================================== dnl ===================================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment