--- a/meson.build Fri Dec 01 00:18:15 2023 -0600
+++ b/meson.build Fri Dec 01 00:29:38 2023 -0600
@@ -4,6 +4,11 @@
meson_version : '>=1.0.0',
+toplevel_inc = include_directories('.') +############################################################################### +############################################################################### parts = meson.project_version().split('-')
@@ -24,6 +29,9 @@
version_config.set('XEME_EXTRA_VERSION', extra)
version_config.set('XEME_VERSION', meson.project_version())
+############################################################################### +############################################################################### glib_dep = dependency('glib-2.0', version : '>=2.76.0')
gio_dep = dependency('gio-2.0')
@@ -34,15 +42,32 @@
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_76',
-toplevel_inc = include_directories('.')
+############################################################################### +############################################################################### +GETTEXT_PACKAGE = 'xeme' +LOCALE_DIR = get_option('prefix') / get_option('localedir') +add_project_arguments(f'-DLOCALEDIR="@LOCALE_DIR@"', language : 'c') +add_project_arguments(f'-DGETTEXT_PACKAGE="@GETTEXT_PACKAGE@"', language : 'c') +############################################################################### +############################################################################### +############################################################################### +############################################################################### if meson.backend() == 'ninja'
- command : ['ninja', '-C', '@BUILD_ROOT@', 'all', 'test'])
+ command : ['ninja', '-C', '@BUILD_ROOT@', 'xeme-pot', 'all', 'test']) +############################################################################### +# Summarize all the things! +############################################################################### 'prefix': get_option('prefix'),
'bindir': get_option('bindir'),
@@ -51,6 +76,7 @@
}, section : 'Directories')
+ 'documentation': get_option('doc'), + 'internationalization': get_option('nls'), 'introspection': get_option('introspection'),
- 'documentation': get_option('doc'),
--- a/meson_options.txt Fri Dec 01 00:18:15 2023 -0600
+++ b/meson_options.txt Fri Dec 01 00:29:38 2023 -0600
@@ -9,3 +9,9 @@
type : 'boolean', value : true, yield : true,
description : 'Whether or not to build a GObject Introspection type library'
+ type : 'boolean', value : true, yield : true, + description : 'Install translation files'