meson: Only use fallback for Lua if building freedreno tools

This keeps the allow_fallback behavior for Lua dependency when freedreno
tools are used, like it used to be.  But will disable the fallback
mechanism otherwise.

For Intel, the dependency is optional and the tool that uses is
skipped when Lua is not available, so it is fine we don't use fallback
there.

Reviewed-by: Dylan Baker <dylan.c.baker@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30693>
This commit is contained in:
Caio Oliveira
2024-08-16 09:31:50 -07:00
committed by Marge Bot
parent 71a45e4e0f
commit 30ecaf6689

View File

@@ -1957,7 +1957,8 @@ endif
dep_lua = dependency('lua54', 'lua5.4', 'lua-5.4',
'lua53', 'lua5.3', 'lua-5.3',
'lua', required: false,
allow_fallback: true, version: '>=5.3')
allow_fallback: with_tools.contains('freedreno'),
version: '>=5.3')
# Be explicit about only using this lib on Windows, to avoid picking
# up random libs with the generic name 'libversion'