diff options
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.build | 15 |
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, |