add version constants to auth, river and wireplumber libs

This commit is contained in:
kotontrion
2024-09-18 20:29:21 +02:00
parent de096e16da
commit 10b9cde328
7 changed files with 71 additions and 14 deletions
@@ -4,6 +4,12 @@
#include <gio/gio.h>
#include <glib-object.h>
#define ASTAL_AUTH_MAJOR_VERSION @MAJOR_VERSION@
#define ASTAL_AUTH_MINOR_VERSION @MINOR_VERSION@
#define ASTAL_AUTH_MICRO_VERSION @MICRO_VERSION@
#define ASTAL_AUTH_VERSION "@VERSION@"
G_BEGIN_DECLS
#define ASTAL_AUTH_TYPE_PAM (astal_auth_pam_get_type())
+16 -3
View File
@@ -1,4 +1,17 @@
astal_auth_inc = include_directories('.')
astal_auth_headers = files('astal-auth.h')
install_headers('astal-auth.h')
config = configure_file(
input: 'astal-auth.h.in',
output: 'astal-auth.h',
configuration: {
'VERSION': meson.project_version(),
'MAJOR_VERSION': version_split[0],
'MINOR_VERSION': version_split[1],
'MICRO_VERSION': version_split[2],
},
)
astal_auth_inc = include_directories('.')
astal_auth_headers = config
install_headers(astal_auth_headers)