[Libreoffice-commits] .: android/CustomTarget_sdremote.mk android/Makefile android/Module_android.mk Makefile.top Module_tail_build.mk

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Aug 21 04:07:33 PDT 2012


 Makefile.top                     |    1 +
 Module_tail_build.mk             |    1 +
 android/CustomTarget_sdremote.mk |   19 +++++++++++++++++++
 android/Makefile                 |   13 +++++++++++++
 android/Module_android.mk        |   19 +++++++++++++++++++
 5 files changed, 53 insertions(+)

New commits:
commit fae45f59b85b46b01e6be7f35b7f60260d67e064
Author: Tor Lillqvist <tml at iki.fi>
Date:   Tue Aug 21 13:52:05 2012 +0300

    Add the android module to gbuild
    
    Just build the sdremote app for now. Note that this is a pure Java
    app with no dependencies on (native) code (or Java code, for that
    matter) from rest of LO.
    
    Probably should drop the separate android/sdremote/Makfile and just do
    what it does in android/CustomTarget_sdremote.mk instead.
    
    Adding other Android apps (well, the LibreOffice4Android one likely)
    to gbuild will require more complexity as they bundle native code, and
    thus should depend on other modules first having been built. If one
    wants to go really fancy, one could of course depend on the specific
    libraries (and other files) being bundled. Let's see...
    
    Change-Id: If10761479f348c4993eec40b7f8346edb77f0e0d

diff --git a/Makefile.top b/Makefile.top
index 1253984..071d37d 100644
--- a/Makefile.top
+++ b/Makefile.top
@@ -30,6 +30,7 @@ MathMLDTD\
 Mesa\
 UnoControls\
 accessibility\
+android\
 animations\
 apple_remote\
 autodoc\
diff --git a/Module_tail_build.mk b/Module_tail_build.mk
index ac29fda..b6a1ef4 100644
--- a/Module_tail_build.mk
+++ b/Module_tail_build.mk
@@ -26,6 +26,7 @@ $(eval $(call gb_Module_Module,tail_end))
 
 $(eval $(call gb_Module_add_moduledirs,tail_end,\
     accessibility \
+	android \
     animations \
     apple_remote \
 	autodoc \
diff --git a/android/CustomTarget_sdremote.mk b/android/CustomTarget_sdremote.mk
new file mode 100644
index 0000000..e153410
--- /dev/null
+++ b/android/CustomTarget_sdremote.mk
@@ -0,0 +1,19 @@
+# -*- 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_CustomTarget_CustomTarget,android/sdremote))
+
+sdremote_DIR := $(call gb_CustomTarget_get_workdir,android/sdremote)
+
+$(call gb_CustomTarget_get_target,android/sdremote) : $(sdremote_DIR)/done
+
+$(sdremote_DIR)/done : $(gb_Helper_PHONY)
+	$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),MAK,1)
+	cd $(SRCDIR)/android/sdremote && $(MAKE)
+
+# vim: set noet sw=4 ts=4:
diff --git a/android/Makefile b/android/Makefile
new file mode 100644
index 0000000..0c6f47b
--- /dev/null
+++ b/android/Makefile
@@ -0,0 +1,13 @@
+# -*- 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/.
+
+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/android/Module_android.mk b/android/Module_android.mk
new file mode 100644
index 0000000..2f0d76e
--- /dev/null
+++ b/android/Module_android.mk
@@ -0,0 +1,19 @@
+# -*- 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,android))
+
+ifeq ($(OS),ANDROID)
+
+$(eval $(call gb_Module_add_targets,android,\
+    CustomTarget_sdremote \
+))
+
+endif
+
+# vim: set noet sw=4 ts=4:


More information about the Libreoffice-commits mailing list