Allow building with muon

This commit is contained in:
Keith Bowes 2024-01-02 16:13:31 -05:00
parent fa36852a58
commit 0294b25f27
4 changed files with 23 additions and 19 deletions

View file

@ -1,11 +1,10 @@
i18n = import('i18n')
add_project_arguments('-DGETTEXT_PACKAGE="' + meson.project_name().to_lower() + '"',
'-DLOCALEDIR="' + get_option('prefix') / get_option('localedir') + '"',
language:'c')
i18n.gettext(meson.project_name().to_lower(),
args: ['--directory=' + source_root,
'--add-comments=TRANSLATORS',
'--no-location',
'--keyword=_',
'--msgid-bugs=https://github.com/wizbright/waybox/issues']
i18n = import('i18n', required: false)
if i18n.found()
i18n.gettext(meson.project_name().to_lower(),
args: ['--directory=' + source_root,
'--add-comments=TRANSLATORS',
'--no-location',
'--keyword=_',
'--msgid-bugs=https://github.com/wizbright/waybox/issues']
)
endif