2013-09-12 05:03:46 +08:00
|
|
|
project('gettext example', 'c')
|
|
|
|
|
2018-02-13 00:30:35 +08:00
|
|
|
gettext = find_program('gettext', required: false)
|
|
|
|
if not gettext.found()
|
|
|
|
error('MESON_SKIP_TEST gettext not found.')
|
|
|
|
endif
|
|
|
|
|
2020-01-23 19:59:51 +08:00
|
|
|
xgettext = find_program('xgettext', required: false)
|
|
|
|
if not xgettext.found()
|
|
|
|
error('MESON_SKIP_TEST xgettext not found.')
|
|
|
|
endif
|
|
|
|
|
2021-07-05 05:50:41 +08:00
|
|
|
intl = dependency('intl', required: false, static: get_option('static'))
|
2021-06-16 09:31:30 +08:00
|
|
|
if not intl.found()
|
|
|
|
error('MESON_SKIP_TEST libintl/gettext functions not found.')
|
2018-02-13 00:30:35 +08:00
|
|
|
endif
|
|
|
|
|
2016-03-29 01:15:16 +08:00
|
|
|
i18n = import('i18n')
|
|
|
|
|
2013-09-12 05:03:46 +08:00
|
|
|
subdir('po')
|
|
|
|
subdir('src')
|
2016-12-03 09:21:07 +08:00
|
|
|
subdir('data')
|
2018-08-23 15:41:29 +08:00
|
|
|
subdir('data2')
|
2018-10-02 01:31:48 +08:00
|
|
|
subdir('generated')
|