meson: add src/util to the drirc search path
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 9 Mar 2023 07:52:33 +0000 (08:52 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 16 Oct 2023 07:59:38 +0000 (07:59 +0000)
With this, we pick up new in-tree defaults for driconfig variables
when using meson devenv. This is useful for testing new config
variables.

Reviewed-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21808>

src/util/meson.build

index 2dec026..eb88f23 100644 (file)
@@ -336,6 +336,8 @@ idep_xmlconfig = declare_dependency(
 files_xxd = files('xxd.py')
 glsl2spirv = files('glsl2spirv.py')
 
+devenv.set('DRIRC_CONFIGDIR', meson.current_source_dir())
+
 if with_tests
   # DRI_CONF macros use designated initializers (required for union
   # initializaiton), so we need c++2a since gtest forces us to use c++