diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-14 14:31:25 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-14 17:21:19 +0300 |
commit | 0b6fb1f45a179e94bb39f49dd8f245812d753113 (patch) | |
tree | 5e697160e3c5e1cfa4a11057b2dd72c77f49f83d /i18npool/CustomTarget_breakiterator.mk | |
parent | It doesn't seem to work to use variable references for file names anyway (diff) | |
download | core-0b6fb1f45a179e94bb39f49dd8f245812d753113.tar.gz core-0b6fb1f45a179e94bb39f49dd8f245812d753113.zip |
Put the dict_ja and _zh data in files instead of code for iOS
Map the file(s) into memory on demand. The executable file of an app
needs to be as small as possible. Including additional data files in
an app bundle is fine.
Change-Id: Ife9bfe99a2cf0473d459f38f50dfa3304b39e282
Diffstat (limited to 'i18npool/CustomTarget_breakiterator.mk')
-rw-r--r-- | i18npool/CustomTarget_breakiterator.mk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/i18npool/CustomTarget_breakiterator.mk b/i18npool/CustomTarget_breakiterator.mk index dbe6ab223531..fb7f0d97ae08 100644 --- a/i18npool/CustomTarget_breakiterator.mk +++ b/i18npool/CustomTarget_breakiterator.mk @@ -11,6 +11,20 @@ $(eval $(call gb_CustomTarget_CustomTarget,i18npool/breakiterator)) i18npool_BIDIR := $(call gb_CustomTarget_get_workdir,i18npool/breakiterator) +ifeq ($(OS),IOS) + +$(call gb_CustomTarget_get_target,i18npool/breakiterator) : \ + $(i18npool_BIDIR)/dict_ja.data $(i18npool_BIDIR)/dict_zh.data $(i18npool_BIDIR)/OpenOffice_dat.c + +$(i18npool_BIDIR)/dict_%.data : \ + $(SRCDIR)/i18npool/source/breakiterator/data/%.dic \ + $(call gb_Executable_get_runtime_dependencies,gendict) \ + | $(i18npool_BIDIR)/.dir + $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),DIC,1) + $(call gb_Helper_abbreviate_dirs,\ + $(call gb_Helper_execute,gendict) $< $@ $(patsubst $(i18npool_BIDIR)/dict_%.cxx,%,$@)) +else + $(call gb_CustomTarget_get_target,i18npool/breakiterator) : \ $(i18npool_BIDIR)/dict_ja.cxx $(i18npool_BIDIR)/dict_zh.cxx $(i18npool_BIDIR)/OpenOffice_dat.c @@ -22,6 +36,8 @@ $(i18npool_BIDIR)/dict_%.cxx : \ $(call gb_Helper_abbreviate_dirs,\ $(call gb_Helper_execute,gendict) $< $@ $(patsubst $(i18npool_BIDIR)/dict_%.cxx,%,$@)) +endif + i18npool_BRKTXTS := \ char_in.brk \ char.brk \ |