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
View File
@@ -1,4 +0,0 @@
#include "astal/wireplumber/audio.h"
#include "astal/wireplumber/endpoint.h"
#include "astal/wireplumber/wp.h"
+14
View File
@@ -0,0 +1,14 @@
#ifndef WP_H
#define WP_H
#include "astal/wireplumber/audio.h"
#include "astal/wireplumber/endpoint.h"
#include "astal/wireplumber/wp.h"
#define ASTAL_WP_MAJOR_VERSION @MAJOR_VERSION@
#define ASTAL_WP_MINOR_VERSION @MINOR_VERSION@
#define ASTAL_WP_MICRO_VERSION @MICRO_VERSION@
#define ASTAL_WP_VERSION "@VERSION@"
#endif // WP_H
+13 -3
View File
@@ -1,8 +1,18 @@
astal_wireplumber_inc = include_directories('.', 'astal/wireplumber', 'private')
astal_wireplumber_headers = files(
'astal-wp.h',
config = configure_file(
input: 'astal-wp.h.in',
output: 'astal-wp.h',
configuration: {
'VERSION': meson.project_version(),
'MAJOR_VERSION': version_split[0],
'MINOR_VERSION': version_split[1],
'MICRO_VERSION': version_split[2],
},
)
astal_wireplumber_inc = include_directories('.', 'astal/wireplumber', 'private')
astal_wireplumber_headers = config
install_headers(astal_wireplumber_headers)
subdir('astal/wireplumber')