meson: only run the selinux restore script on meson < 0.43
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 13 Apr 2018 04:39:58 +0000 (14:39 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 13 Apr 2018 04:58:46 +0000 (14:58 +1000)
Meson handles this now, see meson commits 1826872 and follow-up c63aa037.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
meson.build

index aeb734d..fa572b6 100644 (file)
@@ -245,11 +245,13 @@ git_version_h = vcs_tag(command : ['git', 'describe'],
                        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 ############