diff options
author | zhuyaliang <[email protected]> | 2023-10-04 16:12:05 +0800 |
---|---|---|
committer | mouse <[email protected]> | 2023-10-05 21:54:04 +0800 |
commit | 5e3b73e620de7d3cb1aa4285594e0a6d9a78dee6 (patch) | |
tree | 38f356c4263f9836673340da7f2eb7809ed6c88b | |
parent | e174117cb48ec90b041a2faa28016964c5a0b92b (diff) | |
download | mate-desktop-5e3b73e620de7d3cb1aa4285594e0a6d9a78dee6.tar.bz2 mate-desktop-5e3b73e620de7d3cb1aa4285594e0a6d9a78dee6.tar.xz |
Rename libmate-desktop/{mate-desktop.h => mate-desktop.h.in} add MATE_DESKTOP_VERSION marco
-rw-r--r-- | configure.ac | 1 | ||||
-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 |
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, |