diff options
author | Emmanuele Bassi <ebassi@gmail.com> | 2022-10-11 13:35:28 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2022-10-11 13:35:28 +0000 |
commit | 300e436fb2700eca15c8c3275e89b772f4ba38de (patch) | |
tree | 6258a3e9ae1acd16a11a28afe1939115312af4d8 | |
parent | dd400951d9372a97567d62fb61c431a5c9eba7c1 (diff) | |
parent | 31998d84cb241a4c6343c97afc06ee24e60db032 (diff) | |
download | json-glib-300e436fb2700eca15c8c3275e89b772f4ba38de.tar.gz |
Merge branch 'nls' into 'master'
Make xgettext optional
See merge request GNOME/json-glib!50
-rw-r--r-- | meson.build | 7 | ||||
-rw-r--r-- | meson_options.txt | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 7d156bb..8f7c34f 100644 --- a/meson.build +++ b/meson.build @@ -154,7 +154,12 @@ python3 = import('python').find_installation() gen_installed_test = files('build-aux/gen-installed-test.py') subdir('json-glib') -subdir('po') + +# xgettext is optional (on Windows for instance) +if find_program('xgettext', required : get_option('nls')).found() + subdir('po') +endif + subdir('doc') if not meson.is_subproject() diff --git a/meson_options.txt b/meson_options.txt index 068a03f..5a96998 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -10,3 +10,6 @@ option('man', option('tests', type: 'boolean', value: true, description: 'Build the tests') +option('nls', + type: 'feature', value: 'auto', yield: true, + description: 'Enable native language support (translations)') |