From 508d3fe021c7cd659360172a15f73621e2261454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 29 Nov 2021 20:31:01 +0100 Subject: [PATCH] config: Add PACKAGE_NAME macro Part-of: --- config.h.meson | 3 +++ meson.build | 1 + 2 files changed, 4 insertions(+) diff --git a/config.h.meson b/config.h.meson index a977540d4..e6ff572f5 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 7af8a6aa7..e383be77c 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)