Bug 1659385 - Only build defaultagent localization file if required. r=mhowell

Keep L10n repacks from trying to include defaultagent_localized.ini when it's
not needed. Thunderbird L10n repacks fail because this file is not present.

Differential Revision: https://phabricator.services.mozilla.com/D87622
This commit is contained in:
Rob Lemley 2020-08-19 18:52:03 +00:00
Родитель b0175d3263
Коммит 8841e58687
1 изменённых файлов: 8 добавлений и 7 удалений

Просмотреть файл

@ -40,10 +40,11 @@ LOCALIZED_GENERATED_FILES += ['locale.ini']
LOCALIZED_GENERATED_FILES['locale.ini'].script = 'generate_locale_ini.py'
LOCALIZED_FILES += ['!locale.ini']
LOCALIZED_GENERATED_FILES += ['defaultagent_localized.ini']
wdba_l10n = LOCALIZED_GENERATED_FILES['defaultagent_localized.ini']
wdba_l10n.script = '/browser/locales/generate_ini.py'
wdba_l10n.inputs = [
'/browser/locales/en-US/defaultagent/defaultagent_localized.ini',
]
LOCALIZED_FILES += ['!defaultagent_localized.ini']
if CONFIG['MOZ_DEFAULT_BROWSER_AGENT']:
LOCALIZED_GENERATED_FILES += ['defaultagent_localized.ini']
wdba_l10n = LOCALIZED_GENERATED_FILES['defaultagent_localized.ini']
wdba_l10n.script = '/browser/locales/generate_ini.py'
wdba_l10n.inputs = [
'/browser/locales/en-US/defaultagent/defaultagent_localized.ini',
]
LOCALIZED_FILES += ['!defaultagent_localized.ini']