mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00
Bug 1667192 - patch 3 - For Android, package the uncompiled versions of hyphenation files. r=heycam
This reduces the APK size by about 1.4MB. Differential Revision: https://phabricator.services.mozilla.com/D91411
This commit is contained in:
parent
cd89a36f08
commit
fa5281d662
@ -4,6 +4,14 @@
|
||||
# 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/.
|
||||
|
||||
# For Android, we ship hyphenation files in uncompiled format to minimize
|
||||
# the package size; for other products, ship precompiled files to eliminate
|
||||
# the cost of compilation on first use.
|
||||
if CONFIG['MOZ_BUILD_APP'] == 'mobile/android':
|
||||
hyphenation_ext = ".dic"
|
||||
else:
|
||||
hyphenation_ext = ".hyf"
|
||||
|
||||
locales = [
|
||||
'af',
|
||||
'bg',
|
||||
@ -42,7 +50,7 @@ locales = [
|
||||
'tr',
|
||||
'uk',
|
||||
]
|
||||
filename = '{locale}/hyphenation/hyph_{locale}.hyf'
|
||||
filename = '{locale}/hyphenation/hyph_{locale}' + hyphenation_ext
|
||||
FINAL_TARGET_FILES.hyphenation += [filename.format(locale=locale) for locale in locales]
|
||||
# en-US is a special case: the dic file is named like en_US.
|
||||
FINAL_TARGET_FILES.hyphenation += ['en-US/hyphenation/hyph_en_US.hyf']
|
||||
FINAL_TARGET_FILES.hyphenation += ['en-US/hyphenation/hyph_en_US' + hyphenation_ext]
|
||||
|
Loading…
x
Reference in New Issue
Block a user