input : 'src/libinput-git-version.h.in',
output :'libinput-git-version.h')
-# Restore the SELinux context for the libinput.so.a.b.c on install
-# meson bug https://github.com/mesonbuild/meson/issues/1967
-meson.add_install_script('src/libinput-restore-selinux-context.sh',
- join_paths(get_option('prefix'), get_option('libdir')),
- lib_libinput.full_path())
+if meson.version().version_compare('<0.4.3.0')
+ # Restore the SELinux context for the libinput.so.a.b.c on install
+ # meson bug https://github.com/mesonbuild/meson/issues/1967
+ meson.add_install_script('src/libinput-restore-selinux-context.sh',
+ join_paths(get_option('prefix'), get_option('libdir')),
+ lib_libinput.full_path())
+endif
############ documentation ############