diff options
author | Andras Timar <andras.timar@collabora.com> | 2013-11-17 10:58:20 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2013-11-17 11:03:36 +0100 |
commit | 4c530d3d18727567d3c5ec3721dc46866b34d2e0 (patch) | |
tree | 19c1a63eb6aa7376ae11fd6b36f88cb2a4563431 /android | |
parent | 5b328e8f28b131f4ee391c66b4ae58f8193a0050 (diff) |
good-bye stringex, you served well
It will be better to handle Android Impress Remote localization
independent of the big LibreOffice source tree. Instead of
stringex, we will use android2po, a 3rd party utility for conversion
strings.xml <-> pot/po.
Change-Id: I4eae53e4f8d94c55e5564d54c5e5c214bc9569d7
Diffstat (limited to 'android')
-rw-r--r-- | android/sdremote/Makefile | 42 |
1 files changed, 2 insertions, 40 deletions
diff --git a/android/sdremote/Makefile b/android/sdremote/Makefile index c480bccc3ebe..b46df5651ed9 100644 --- a/android/sdremote/Makefile +++ b/android/sdremote/Makefile @@ -10,11 +10,7 @@ ifeq ($(BUILDDIR),) include ../../config_host.mk endif -STRINGEX_EXECUTABLE := $(WORKDIR_FOR_BUILD)/LinkTarget/Executable/stringex -STRINGEX_LDPATH := LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}$(INSTROOT_FOR_BUILD)/$(LIBO_URE_LIB_FOLDER_FOR_BUILD):$(INSTROOT_FOR_BUILD)/$(LIBO_LIB_FOLDER_FOR_BUILD) -STRINGEX_COMMAND := $(STRINGEX_LDPATH) $(STRINGEX_EXECUTABLE) - -all: properties translations.done +all: properties mkdir -p ../abs-lib/libs cp $(ANDROID_SDK_HOME)/extras/android/support/v4/android-support-v4.jar ../abs-lib/libs $(ANT) debug @@ -23,44 +19,10 @@ properties: echo sdk.dir=$(ANDROID_SDK_HOME) >local.properties echo sdk.dir=$(ANDROID_SDK_HOME) >../abs-lib/local.properties -clean: properties translations.clean +clean: properties $(ANT) -quiet -keep-going clean install: all $(ANDROID_SDK_HOME)/platform-tools/adb install -r ./bin/ImpressRemote-debug.apk -define android_get_podir -res/values-$(1) -endef - -define android_get_po -$(call android_get_podir,$(1))/strings.xml -endef - -define android_translation_rules -$(call android_get_po,$(1)): - mkdir -p res/values-$(1) - echo $(SRCDIR)/translations/source/$(1)/android/sdremote/res/values.po > translations-$(1).db &&\ - $(STRINGEX_COMMAND) -i res/values/strings.xml -o res/values-$(1)/strings.xml -m translations-$(1).db -l $(1) - -endef - -define android_translations_rules -$(foreach lang,$(1),$(call android_translation_rules,$(lang))) -endef - -define android_get_langlist -$(foreach lang,$(filter-out en-US sat sid mai ast mni brx dgo nso kok qtz,$(WITH_LANG_LIST)),$(subst -,-r,$(lang))) -endef - -$(eval $(call android_translations_rules,$(call android_get_langlist))) - -translations.done: $(foreach lang,$(call android_get_langlist),$(call android_get_po,$(lang))) - touch translations.done - -translations.clean: - rm -rf $(foreach lang,$(call android_get_langlist),$(call android_get_podir,$(lang))) - rm -rf $(foreach lang,$(call android_get_langlist),translations-$(lang).db) - rm -f translations.done - # vim: set noet sw=4 ts=4: |