Mesa (master): meson: wire up selinux

Eric Engeström eric_engestrom at kemper.freedesktop.org
Fri Oct 27 11:01:17 UTC 2017


Module: Mesa
Branch: master
Commit: 4b9421d45da41955947f4c75be033ec1bc1d18f5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4b9421d45da41955947f4c75be033ec1bc1d18f5

Author: Eric Engestrom <eric.engestrom at imgtec.com>
Date:   Thu Oct 26 16:19:41 2017 +0100

meson: wire up selinux

Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>

---

 meson.build       | 5 ++++-
 meson_options.txt | 6 ++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 1da1bb0679..49a0ef6d40 100644
--- a/meson.build
+++ b/meson.build
@@ -694,8 +694,11 @@ endif
 prog_bison = find_program('bison', required : with_any_opengl)
 prog_flex = find_program('flex', required : with_any_opengl)
 
-# TODO: selinux
 dep_selinux = []
+if get_option('selinux')
+  dep_selinux = dependency('libselinux')
+  pre_args += '-DMESA_SELINUX'
+endif
 
 # TODO: llvm-prefix and llvm-shared-libs
 
diff --git a/meson_options.txt b/meson_options.txt
index 3a6ad1014a..b6af507bb5 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -160,3 +160,9 @@ option(
   value : false,
   description : 'Enable floating point textures and renderbuffers. This option may be patent encumbered, please read docs/patents.txt and consult with your lawyer before turning this on.'
 )
+option(
+  'selinux',
+  type : 'boolean',
+  value : false,
+  description : 'Build an SELinux-aware Mesa'
+)




More information about the mesa-commit mailing list