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/.
10 include ..
/..
/config_host.mk
13 all: properties translations.done
14 mkdir
-p ..
/abs-lib
/libs
15 cp
$(ANDROID_SDK_HOME
)/extras
/android
/support
/v4
/android-support-v4.jar ..
/abs-lib
/libs
19 echo sdk.
dir=$(ANDROID_SDK_HOME
) >local.properties
20 echo sdk.
dir=$(ANDROID_SDK_HOME
) >..
/abs-lib
/local.properties
22 clean: properties translations.
clean
23 $(ANT
) -quiet
-keep-going
clean
26 $(ANDROID_SDK_HOME
)/platform-tools
/adb
install -r .
/bin
/ImpressRemote-debug.apk
28 define android_get_podir
33 $(call android_get_podir
,$(1))/strings.xml
36 define android_translation_rules
37 $(call android_get_po
,$(1)):
38 mkdir
-p res
/values-
$(1)
39 $(if
$(filter-out qtz
,$(1)), \
40 echo
$(SRCDIR
)/translations
/source
/$(1)/android
/sdremote
/res
/values.po
> translations-
$(1).db
&&\
41 $(OUTDIR_FOR_BUILD
)/bin
/stringex
-i res
/values
/strings.xml
-o res
/values-
$(1)/strings.xml
-m translations-
$(1).db
-l
$(1), \
42 $(OUTDIR_FOR_BUILD
)/bin
/stringex
-i res
/values
/strings.xml
-o res
/values-
$(1)/strings.xml
-m
-l
$(1))
46 define android_translations_rules
47 $(foreach lang
,$(1),$(call android_translation_rules
,$(lang
)))
50 define android_get_langlist
51 $(foreach lang
,$(filter-out en-US sat sid mai ast mni brx dgo nso kok
,$(WITH_LANG_LIST
)),$(subst -,-r
,$(lang
)))
54 $(eval
$(call android_translations_rules
,$(call android_get_langlist
)))
56 translations.done
: $(foreach lang
,$(call android_get_langlist
),$(call android_get_po
,$(lang
)))
57 touch translations.done
60 rm -rf
$(foreach lang
,$(call android_get_langlist
),$(call android_get_podir
,$(lang
)))
61 rm -rf
$(foreach lang
,$(call android_get_langlist
),translations-
$(lang
).db
)
62 rm -f translations.done
64 # vim: set noet sw=4 ts=4: