Branch libreoffice-5-0-4
[LibreOffice.git] / android / CustomTarget_android_desktop.mk
blob715fd8c6108aaf1d0e5aa06ce7f6ef66e027e19f
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 $(eval $(call gb_CustomTarget_CustomTarget,android/desktop))
11 android_desktop_DIR := $(call gb_CustomTarget_get_workdir,android/experimental/Desktop)
13 $(call gb_CustomTarget_get_target,android/desktop) : \
14 $(android_desktop_DIR)/done
16 # We want that to be built completely first,
17 # so that we can serialize Ant access to Bootstrap, which is used
18 # by several LO-android apps. We don't want one Ant to be cleaning
19 # out Bootstrap while another is building stuff that depends on it.
20 # Yeah, this sucks
22 $(android_desktop_DIR)/done : $(call gb_Postprocess_get_target,AllModulesButInstsetNative)
23 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),MAK,2)
24 cd $(SRCDIR)/android/experimental/desktop && $(MAKE) all
25 # Copy to $(BUILDDIR)/instsetoo_native as that is where the tinderbox build script
26 # still looks for the .apk, and we want fresh daily builds to be uploaded. Even if
27 # the apps as such are mostly useless.
28 # Us "foo" instead of the old INPATH
29 mkdir -p $(BUILDDIR)/instsetoo_native/foo/bin; \
30 cp $(SRCDIR)/android/experimental/desktop/bin/*.apk $(BUILDDIR)/instsetoo_native/foo/bin
32 $(call gb_CustomTarget_get_clean_target,android/desktop) :
33 $(call gb_Output_announce,$(subst $(WORKDIR)/Clean/,,$@),$(false),MAK,2)
34 cd $(SRCDIR)/android/experimental/desktop && $(MAKE) clean
36 # vim: set noet sw=4 ts=4: