meson: add dependency on lua 5.3

This commit is contained in:
George Kiagiadakis 2020-12-01 10:53:48 +02:00
parent a2181fc3f4
commit 404d016852
3 changed files with 25 additions and 0 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
build/
subprojects/cpptoml/
subprojects/lua-*
subprojects/packagecache/
src/config/*testsrc.node

View file

@ -40,6 +40,18 @@ gio_dep = dependency('gio-2.0', version : '== ' + gobject_dep.version())
giounix_dep = dependency('gio-unix-2.0', version : '== ' + gobject_dep.version())
pipewire_dep = dependency('libpipewire-0.3')
lua_dep = dependency('lua', version: '>= 5.3.0', required: false)
if not lua_dep.found()
lua_dep = dependency('lua5.3', version: '>= 5.3.0', required: false)
if not lua_dep.found()
lua_dep = dependency('lua-5.3', version: '>= 5.3.0', required: false)
if not lua_dep.found()
lua_proj = subproject('lua')
lua_dep = lua_proj.get_variable('lua_dep')
endif
endif
endif
gnome = import('gnome')
pkgconfig = import('pkgconfig')
gir = find_program('g-ir-scanner', required : get_option('introspection'))

11
subprojects/lua.wrap Normal file
View file

@ -0,0 +1,11 @@
[wrap-file]
directory = lua-5.3.6
source_url = https://www.lua.org/ftp/lua-5.3.6.tar.gz
source_filename = lua-5.3.6.tar.gz
source_hash = fc5fd69bb8736323f026672b1b7235da613d7177e72558893a0bdcd320466d60
patch_url = https://wrapdb.mesonbuild.com/v1/projects/lua/5.3.6/1/get_zip
patch_filename = lua-5.3.6-1-wrap.zip
patch_hash = dd045301a56c7c1fb8d4545cadb93981fe95c44c9526cb58cc75a1b74a2c5116
[provides]
lua-5.3 = lua_dep