summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--libmate-desktop/mate-desktop.h.in (renamed from libmate-desktop/mate-desktop.h)2
-rw-r--r--libmate-desktop/meson.build15
3 files changed, 15 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 12fd12b..7f6616a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -246,6 +246,7 @@ mate-about/Makefile
mate-about/mate-about.h
mate-about/mate-version.xml
libmate-desktop/Makefile
+libmate-desktop/mate-desktop.h
libmate-desktop/mate-desktop-2.0.pc
libmate-desktop/mate-desktop-2.0-uninstalled.pc
docs/Makefile
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,