summaryrefslogtreecommitdiff
path: root/libmate-desktop
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2023-10-04 16:12:05 +0800
committermouse <[email protected]>2023-10-05 21:54:04 +0800
commit5e3b73e620de7d3cb1aa4285594e0a6d9a78dee6 (patch)
tree38f356c4263f9836673340da7f2eb7809ed6c88b /libmate-desktop
parente174117cb48ec90b041a2faa28016964c5a0b92b (diff)
downloadmate-desktop-5e3b73e620de7d3cb1aa4285594e0a6d9a78dee6.tar.bz2
mate-desktop-5e3b73e620de7d3cb1aa4285594e0a6d9a78dee6.tar.xz
Rename libmate-desktop/{mate-desktop.h => mate-desktop.h.in} add MATE_DESKTOP_VERSION marco
Diffstat (limited to 'libmate-desktop')
-rw-r--r--libmate-desktop/mate-desktop.h.in (renamed from libmate-desktop/mate-desktop.h)2
-rw-r--r--libmate-desktop/meson.build15
2 files changed, 14 insertions, 3 deletions
diff --git a/libmate-desktop/mate-desktop.h b/libmate-desktop/mate-desktop.h.in
index 54a8e4c..3e2bc6c 100644
--- a/libmate-desktop/mate-desktop.h
+++ b/libmate-desktop/mate-desktop.h.in
@@ -40,6 +40,8 @@ G_BEGIN_DECLS
(MATE_MAJOR == (major) && MATE_MINOR == (minor) && \
MATE_MICRO >= (micro)))
+#define MATE_DESKTOP_VERSION "@PACKAGE_VERSION@"
+
G_END_DECLS
#endif /* __MATE_DESKTOP_H__ */
diff --git a/libmate-desktop/meson.build b/libmate-desktop/meson.build
index b11f242..e0e94ae 100644
--- a/libmate-desktop/meson.build
+++ b/libmate-desktop/meson.build
@@ -1,7 +1,16 @@
libmdt_inc = include_directories('.')
-headers = files(
- 'mate-desktop.h',
+version_conf = configuration_data()
+version_conf.set('PACKAGE_VERSION', matedt_version)
+
+mate_desktop_header_file = configure_file(
+ input: 'mate-desktop.h.in',
+ output: 'mate-desktop.h',
+ configuration: version_conf,
+)
+
+headers = [
+ mate_desktop_header_file,
'mate-desktop-utils.h',
'mate-desktop-item.h',
'mate-dconf.h',
@@ -18,7 +27,7 @@ headers = files(
'mate-colorsel.h',
'mate-hsv.h',
'mate-colorseldialog.h',
-)
+]
install_headers(
headers,