diff options
author | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2015-02-02 19:49:37 +0000 |
---|---|---|
committer | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2015-06-10 07:44:56 +0000 |
commit | e6fe508d6835590c6245e62e2c014808453e7d92 (patch) | |
tree | 06300b9eca799748f25d04e11e25aab63156e36b | |
parent | f9887ea014a492b062130547e15a931868edb046 (diff) |
Android: add ownCloud library to the build.
Library code from https://github.com/jaragunde/owncloud-android-library
This patch downloads, builds and installs the library from a tarball
uploaded to http://dev-www.libreoffice.org/src/.
Change-Id: I28afaea4dabe2dab869b53b1881f4d5a6522943f
Reviewed-on: https://gerrit.libreoffice.org/16190
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
-rw-r--r-- | Makefile.fetch | 1 | ||||
-rw-r--r-- | RepositoryExternal.mk | 16 | ||||
-rw-r--r-- | android/source/Makefile | 2 | ||||
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | download.lst | 2 | ||||
-rw-r--r-- | external/Module_external.mk | 1 | ||||
-rw-r--r-- | external/owncloud-android-lib/ExternalProject_owncloud_android_lib.mk | 24 | ||||
-rw-r--r-- | external/owncloud-android-lib/Makefile | 7 | ||||
-rw-r--r-- | external/owncloud-android-lib/Module_owncloud-android-lib.mk | 17 | ||||
-rw-r--r-- | external/owncloud-android-lib/README | 7 | ||||
-rw-r--r-- | external/owncloud-android-lib/UnpackedTarball_owncloud_android_lib.mk | 14 |
11 files changed, 94 insertions, 0 deletions
diff --git a/Makefile.fetch b/Makefile.fetch index 7aee66a1435e..390d3d0d705e 100644 --- a/Makefile.fetch +++ b/Makefile.fetch @@ -189,6 +189,7 @@ $(WORKDIR)/download: $(BUILDDIR)/config_host.mk $(SRCDIR)/download.lst $(SRCDIR) $(call fetch_Optional,OPENLDAP,OPENLDAP_TARBALL) \ $(call fetch_Optional,OPENSSL,OPENSSL_TARBALL) \ $(call fetch_Optional,ORCUS,ORCUS_TARBALL) \ + $(call fetch_Optional,OWNCLOUD_ANDROID_LIB,OWNCLOUD_ANDROID_LIB_TARBALL) \ $(call fetch_Optional,PAGEMAKER,PAGEMAKER_TARBALL) \ $(call fetch_Optional,POPPLER,POPPLER_TARBALL) \ $(call fetch_Optional,POSTGRESQL,POSTGRESQL_TARBALL) \ diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index 726ef752250e..5b8b3a25753a 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -4104,4 +4104,20 @@ endef endif +ifeq (OWNCLOUD_ANDROID_LIB,$(filter OWNCLOUD_ANDROID_LIB,$(BUILD_TYPE))) + +$(eval $(call gb_Helper_register_jars,OXT,\ + owncloud-android-library \ +)) + +define gb_Jar__use_owncloud_android_lib +$(call gb_Jar_use_external_project,$(1),owncloud-android-lib) +$(call gb_Jar_use_external_jar,$(1),$(call gb_UnpackedTarball_get_dir,owncloud-android-lib)/bin/owncloud-android-library.jar) +endef +define gb_ExternalProject__use_owncloud_android_lib +$(call gb_ExternalProject_use_external_project,$(1),owncloud_android_lib) +endef + +endif + # vim: set noet sw=4 ts=4: diff --git a/android/source/Makefile b/android/source/Makefile index 3bf2c1547aac..6f70a91b7651 100644 --- a/android/source/Makefile +++ b/android/source/Makefile @@ -32,6 +32,8 @@ build-ant: android_version_setup copy-stuff prepare-appcompat link-so properties for F in unoil; do \ $(call COPYJAR,$(INSTDIR)/$(LIBO_SHARE_JAVA_FOLDER)/$${F}.jar); \ done + #ownCloud lib dependency + $(call COPYJAR,$(WORKDIR)/UnpackedTarball/owncloud_android_lib/bin/owncloud-android-library.jar) # unset JAVA_HOME && $(ANT) $(if $(VERBOSE)$(verbose),,-quiet) $(if $(ENABLE_RELEASE_BUILD),release,debug) diff --git a/configure.ac b/configure.ac index 2ebe5016e4ad..178c663c81a9 100644 --- a/configure.ac +++ b/configure.ac @@ -511,6 +511,9 @@ if test -n "$with_android_ndk"; then ;; esac fi + + # remember to download the ownCloud Android library later + BUILD_TYPE="$BUILD_TYPE OWNCLOUD_ANDROID_LIB" fi AC_SUBST(ANDROID_NDK_GDBSERVER) AC_SUBST(ANDROID_APP_ABI) diff --git a/download.lst b/download.lst index 7b4bfe4d06ed..fdb4d5c5c132 100644 --- a/download.lst +++ b/download.lst @@ -119,6 +119,8 @@ export OPENLDAP_TARBALL := 804c6cb5698db30b75ad0ff1c25baefd-openldap-2.4.31.tgz export OPENSSL_MD5SUM := a06c547dac9044161a477211049f60ef export OPENSSL_TARBALL := openssl-1.0.2a.tar.gz export ORCUS_TARBALL := 18814358772ed7bb476e04b0384af082-liborcus-0.9.1.tar.gz +export OWNCLOUD_ANDROID_LIB_MD5SUM := 593f0aa47bf2efc0efda2d28fae063b2 +export OWNCLOUD_ANDROID_LIB_TARBALL := owncloud-android-library-0.9.4-no-binary-deps.tar.gz export PAGEMAKER_MD5SUM := 795cc7a59ace4db2b12586971d668671 export PAGEMAKER_TARBALL := libpagemaker-0.0.2.tar.bz2 export PIXMAN_TARBALL := c63f411b3ad147db2bcce1bf262a0e02-pixman-0.24.4.tar.bz2 diff --git a/external/Module_external.mk b/external/Module_external.mk index 6d38fd583939..8b4fb6c58ccf 100644 --- a/external/Module_external.mk +++ b/external/Module_external.mk @@ -80,6 +80,7 @@ $(eval $(call gb_Module_add_moduledirs,external,\ $(call gb_Helper_optional,OPENLDAP,openldap) \ $(call gb_Helper_optional,OPENSSL,openssl) \ $(call gb_Helper_optional,ORCUS,liborcus) \ + $(call gb_Helper_optional,OWNCLOUD_ANDROID_LIB,owncloud-android-lib) \ $(call gb_Helper_optional,PAGEMAKER,libpagemaker) \ $(call gb_Helper_optional,POPPLER,poppler) \ $(call gb_Helper_optional,POSTGRESQL,postgresql) \ diff --git a/external/owncloud-android-lib/ExternalProject_owncloud_android_lib.mk b/external/owncloud-android-lib/ExternalProject_owncloud_android_lib.mk new file mode 100644 index 000000000000..21081c40a9f9 --- /dev/null +++ b/external/owncloud-android-lib/ExternalProject_owncloud_android_lib.mk @@ -0,0 +1,24 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_ExternalProject_ExternalProject,owncloud_android_lib)) + +$(eval $(call gb_ExternalProject_register_targets,owncloud_android_lib,\ + build \ +)) + +$(call gb_ExternalProject_get_state_target,owncloud_android_lib,build) : + $(call gb_ExternalProject_run,build,\ + $(ICECREAM_RUN) "$(ANT)" \ + -q \ + -f build.xml \ + release \ + ) + +# vim: set noet sw=4 ts=4: diff --git a/external/owncloud-android-lib/Makefile b/external/owncloud-android-lib/Makefile new file mode 100644 index 000000000000..e4968cf85fb6 --- /dev/null +++ b/external/owncloud-android-lib/Makefile @@ -0,0 +1,7 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- + +module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) + +include $(module_directory)/../../solenv/gbuild/partial_build.mk + +# vim: set noet sw=4 ts=4: diff --git a/external/owncloud-android-lib/Module_owncloud-android-lib.mk b/external/owncloud-android-lib/Module_owncloud-android-lib.mk new file mode 100644 index 000000000000..486ed4053829 --- /dev/null +++ b/external/owncloud-android-lib/Module_owncloud-android-lib.mk @@ -0,0 +1,17 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_Module_Module,owncloud_android_lib)) + +$(eval $(call gb_Module_add_targets,owncloud_android_lib, \ + ExternalProject_owncloud_android_lib \ + UnpackedTarball_owncloud_android_lib \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/owncloud-android-lib/README b/external/owncloud-android-lib/README new file mode 100644 index 000000000000..921619d630cc --- /dev/null +++ b/external/owncloud-android-lib/README @@ -0,0 +1,7 @@ +Library required to access ownCloud servers from Android. + +Code from https://github.com/jaragunde/owncloud-android-library, release 0.9.4. +Notice it is a fork from the official repository at +https://github.com/owncloud/android-library, the test and example projects have +been removed and the binary jars have been replaced with the sources of the +required libraries. diff --git a/external/owncloud-android-lib/UnpackedTarball_owncloud_android_lib.mk b/external/owncloud-android-lib/UnpackedTarball_owncloud_android_lib.mk new file mode 100644 index 000000000000..0866f6f504e2 --- /dev/null +++ b/external/owncloud-android-lib/UnpackedTarball_owncloud_android_lib.mk @@ -0,0 +1,14 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_UnpackedTarball_UnpackedTarball,owncloud_android_lib)) + +$(eval $(call gb_UnpackedTarball_set_tarball,owncloud_android_lib,$(OWNCLOUD_ANDROID_LIB_TARBALL))) + +# vim: set noet sw=4 ts=4: |