[mutter] config: Add PACKAGE_NAME macro



commit 508d3fe021c7cd659360172a15f73621e2261454
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Mon Nov 29 20:31:01 2021 +0100

    config: Add PACKAGE_NAME macro
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2164>

 config.h.meson | 3 +++
 meson.build    | 1 +
 2 files changed, 4 insertions(+)
---
diff --git a/config.h.meson b/config.h.meson
index a977540d4c..e6ff572f5f 100644
--- a/config.h.meson
+++ b/config.h.meson
@@ -4,6 +4,9 @@
 /* Version number of package */
 #mesondefine VERSION
 
+/* Name of package */
+#mesondefine PACKAGE_NAME
+
 /* Version number of package */
 #mesondefine PACKAGE_VERSION
 
diff --git a/meson.build b/meson.build
index 7af8a6aa74..e383be77c1 100644
--- a/meson.build
+++ b/meson.build
@@ -486,6 +486,7 @@ cc.compiles('void main (void) { __builtin_ffsl (0); __builtin_popcountl (0); }')
 cdata = configuration_data()
 cdata.set_quoted('GETTEXT_PACKAGE', gettext_package)
 cdata.set_quoted('VERSION', meson.project_version())
+cdata.set_quoted('PACKAGE_NAME', meson.project_name())
 cdata.set_quoted('PACKAGE_VERSION', meson.project_version())
 
 cdata.set('HAVE_EGL', have_egl)


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