[amtk/wip/swilmet/meson: 10/10] build: use localedir directly




commit d2c272b1860811008c5bc0cb5f724cdfe44b0c2f
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Sep 8 08:03:22 2020 +0200

    build: use localedir directly

 amtk/amtk-init.c | 2 +-
 meson.build      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/amtk/amtk-init.c b/amtk/amtk-init.c
index 3730c8b..006484d 100644
--- a/amtk/amtk-init.c
+++ b/amtk/amtk-init.c
@@ -35,7 +35,7 @@ get_locale_directory (void)
 
        return locale_dir;
 #else
-       return g_build_filename (DATADIR, "locale", NULL);
+       return g_strdup (AMTK_LOCALEDIR);
 #endif
 }
 
diff --git a/meson.build b/meson.build
index fe41367..fafa5ed 100644
--- a/meson.build
+++ b/meson.build
@@ -51,7 +51,7 @@ AMTK_DEPS = [
 config_data = configuration_data()
 GETTEXT_PACKAGE_NAME = 'amtk-' + AMTK_API_VERSION
 config_data.set_quoted('GETTEXT_PACKAGE', GETTEXT_PACKAGE_NAME)
-config_data.set_quoted('DATADIR', get_option('prefix') / get_option('datadir'))
+config_data.set_quoted('AMTK_LOCALEDIR', get_option('prefix') / get_option('localedir'))
 
 configure_file(
   output: 'config.h',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]