From e6fe508d6835590c6245e62e2c014808453e7d92 Mon Sep 17 00:00:00 2001 From: Jacobo Aragunde Pérez Date: Mon, 2 Feb 2015 19:49:37 +0000 Subject: Android: add ownCloud library to the build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Jacobo Aragunde Pérez --- .../ExternalProject_owncloud_android_lib.mk | 24 ++++++++++++++++++++++ external/owncloud-android-lib/Makefile | 7 +++++++ .../Module_owncloud-android-lib.mk | 17 +++++++++++++++ external/owncloud-android-lib/README | 7 +++++++ .../UnpackedTarball_owncloud_android_lib.mk | 14 +++++++++++++ 5 files changed, 69 insertions(+) create mode 100644 external/owncloud-android-lib/ExternalProject_owncloud_android_lib.mk create mode 100644 external/owncloud-android-lib/Makefile create mode 100644 external/owncloud-android-lib/Module_owncloud-android-lib.mk create mode 100644 external/owncloud-android-lib/README create mode 100644 external/owncloud-android-lib/UnpackedTarball_owncloud_android_lib.mk (limited to 'external/owncloud-android-lib') 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: -- cgit