OSDN Git Service

meson: wire up selinux
authorEric Engestrom <eric.engestrom@imgtec.com>
Thu, 26 Oct 2017 15:19:41 +0000 (16:19 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Fri, 27 Oct 2017 10:57:03 +0000 (11:57 +0100)
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
meson.build
meson_options.txt

index 1da1bb0..49a0ef6 100644 (file)
@@ -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
 
index 3a6ad10..b6af507 100644 (file)
@@ -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'
+)