1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 07:12:39 +00:00

meson: also check for generic lua.pc

Some systems have only a "lua.pc" file which contains version
information inside it. Check those as well.
This commit is contained in:
Dudemanguy 2021-11-14 18:39:25 -06:00
parent dfbaf4dd81
commit e6ce03f3ef
2 changed files with 3 additions and 2 deletions

View File

@ -701,7 +701,8 @@ lua = {
}
lua_opt = get_option('lua')
if lua_opt != 'disabled'
lua_version = [['lua52', '>= 5.2.0'],
lua_version = [['lua', ['>=5.1.0', '<5.3.0']], # generic lua.pc
['lua52', '>= 5.2.0'],
['lua5.2', '>= 5.2.0'],
['lua-5.2', '>= 5.2.0'],
['luajit', '>= 2.0.0'],

View File

@ -21,7 +21,7 @@ option('libavdevice', type: 'feature', value: 'auto', description: 'libavdevice'
option('libbluray', type: 'feature', value: 'auto', description: 'Bluray support')
option('lua',
type: 'combo',
choices: ['lua52', 'lua5.2', 'lua-5.2', 'luajit', 'lua51',
choices: ['lua', 'lua52', 'lua5.2', 'lua-5.2', 'luajit', 'lua51',
'lua5.1', 'lua-5.1', 'auto', 'enabled', 'disabled'],
value: 'auto',
description: 'Lua'