[Mesa-dev] [RFC PATCH mesa 4/5] meson: store the result of whether we have gallium-extra-hud and lmsensors

Eric Engestrom eric.engestrom at imgtec.com
Fri Feb 23 18:08:47 UTC 2018


Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
 meson.build | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meson.build b/meson.build
index 6c22601f9e8864f08e08..770fdc7e50653bcfa7c2 100644
--- a/meson.build
+++ b/meson.build
@@ -1187,15 +1187,19 @@ if with_platform_x11
   endif
 endif
 
+with_gallium_extra_hud = false
 if get_option('gallium-extra-hud')
   pre_args += '-DHAVE_GALLIUM_EXTRA_HUD=1'
+  with_gallium_extra_hud = true
 endif
 
 _sensors = get_option('lmsensors')
+with_lmsensors = false
 if _sensors != 'false'
   dep_lmsensors = cc.find_library('libsensors', required : _sensors == 'true')
   if dep_lmsensors.found()
     pre_args += '-DHAVE_LIBSENSORS=1'
+    with_lmsensors = true
   endif
 else
   dep_lmsensors = []
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list