From 0dc53687f42ea3c0d520119e47898338d7bfc922 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 11 May 2022 13:09:17 +0100 Subject: [PATCH] tools: Move glib-gettextize.in to tools directory This tidies up the root directory a bit more. Signed-off-by: Philip Withnall --- meson.build | 16 +--------------- glib-gettextize.in => tools/glib-gettextize.in | 0 tools/meson.build | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 15 deletions(-) rename glib-gettextize.in => tools/glib-gettextize.in (100%) create mode 100644 tools/meson.build diff --git a/meson.build b/meson.build index 1619cfa2e..3a5276e9f 100644 --- a/meson.build +++ b/meson.build @@ -2377,27 +2377,13 @@ subdir('fuzzing') if build_tests subdir('tests') endif +subdir('tools') # xgettext is optional (on Windows for instance) if find_program('xgettext', required : get_option('nls')).found() subdir('po') endif -# Install glib-gettextize executable, if a UNIX-style shell is found -if have_sh - # These should not contain " quotes around the values - gettextize_conf = configuration_data() - gettextize_conf.set('PACKAGE', 'glib') - gettextize_conf.set('VERSION', meson.project_version()) - gettextize_conf.set('prefix', glib_prefix) - gettextize_conf.set('datarootdir', glib_datadir) - gettextize_conf.set('datadir', glib_datadir) - configure_file(input : 'glib-gettextize.in', - install_dir : glib_bindir, - output : 'glib-gettextize', - configuration : gettextize_conf) -endif - # Install m4 macros that other projects use install_data('m4macros/glib-2.0.m4', 'm4macros/glib-gettext.m4', 'm4macros/gsettings.m4', install_dir : join_paths(get_option('datadir'), 'aclocal')) diff --git a/glib-gettextize.in b/tools/glib-gettextize.in similarity index 100% rename from glib-gettextize.in rename to tools/glib-gettextize.in diff --git a/tools/meson.build b/tools/meson.build new file mode 100644 index 000000000..f77ccc860 --- /dev/null +++ b/tools/meson.build @@ -0,0 +1,14 @@ +# Install glib-gettextize executable, if a UNIX-style shell is found +if have_sh + # These should not contain " quotes around the values + gettextize_conf = configuration_data() + gettextize_conf.set('PACKAGE', 'glib') + gettextize_conf.set('VERSION', meson.project_version()) + gettextize_conf.set('prefix', glib_prefix) + gettextize_conf.set('datarootdir', glib_datadir) + gettextize_conf.set('datadir', glib_datadir) + configure_file(input : 'glib-gettextize.in', + install_dir : glib_bindir, + output : 'glib-gettextize', + configuration : gettextize_conf) +endif