From c4da51e8dfa651bf08f5d6e93dbf80493d80b511 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Mon, 29 Jun 2020 15:26:00 +0200 Subject: [PATCH] Add Lua 5.2.4 as a subproject --- meson.build | 4 +++- subprojects/lua.wrap | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 subprojects/lua.wrap diff --git a/meson.build b/meson.build index e226e4f4..570eafb7 100644 --- a/meson.build +++ b/meson.build @@ -4,7 +4,9 @@ cc = meson.get_compiler('c') libm = cc.find_library('m', required : false) libdl = cc.find_library('dl', required : false) -lua_dep = dependency('lua5.2') +lua_subproject = subproject('lua', default_options: []) +lua_dep = lua_subproject.get_variable('lua_dep') + sdl_dep = dependency('sdl2', method: 'config-tool') lite_include = include_directories('src') diff --git a/subprojects/lua.wrap b/subprojects/lua.wrap new file mode 100644 index 00000000..e3f21e79 --- /dev/null +++ b/subprojects/lua.wrap @@ -0,0 +1,4 @@ +[wrap-git] +directory = lua +url = https://github.com/franko/lua +revision = v5.2.4-4