freedreno: support lua pkgconfig variants

Distributions have different naming styles, detect all of them.

Example from Alpine / postmarketOS:
Run-time dependency lua54 found: NO (tried pkgconfig and cmake)
Run-time dependency lua5.4 found: YES 5.4.7

Signed-off-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30352>
This commit is contained in:
David Heidelberg
2024-07-25 02:08:42 +09:00
committed by Marge Bot
parent 76ae27efb3
commit 5f7eb8cff6

View File

@@ -8,7 +8,10 @@ rnn_src_path = dir_source_root + '/src/freedreno/registers'
rnn_install_path = get_option('datadir') + '/freedreno/registers'
rnn_path = rnn_src_path + ':' + get_option('prefix') + '/' + rnn_install_path
dep_lua = dependency('lua54', 'lua53', 'lua52', 'lua', required: false,
dep_lua = dependency('lua54', 'lua5.4', 'lua-5.4',
'lua53', 'lua5.3', 'lua-5.3',
'lua52', 'lua5.2', 'lua-5.2',
'lua', required: false,
allow_fallback: true, version: '>=5.2')
dep_libarchive = dependency('libarchive', allow_fallback: true, required: false)