From e967f9aa838cbcb5a9fd8f99cee6dce1363ae014 Mon Sep 17 00:00:00 2001 From: "Andrew D.France" Date: Sun, 6 Jul 2025 01:13:18 -0500 Subject: [PATCH] feat: add lua-compat-5.3 dependency --- .gitmodules | 3 +++ lib/compat53 | 1 + premake5.lua | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .gitmodules create mode 160000 lib/compat53 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..4df72e1 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lib/compat53"] + path = lib/compat53 + url = https://github.com/keplerproject/lua-compat-5.3.git diff --git a/lib/compat53 b/lib/compat53 new file mode 160000 index 0000000..dfd83b4 --- /dev/null +++ b/lib/compat53 @@ -0,0 +1 @@ +Subproject commit dfd83b4930c8b85fd39d208523f7293cf469b205 diff --git a/premake5.lua b/premake5.lua index 037cfca..fca6a11 100644 --- a/premake5.lua +++ b/premake5.lua @@ -18,7 +18,7 @@ else links({ "lua" }) end -includedirs({ lua_inc_path, "lib/hashmap" }) +includedirs({ lua_inc_path, "lib/hashmap", "lib/compat53/c-api" }) libdirs({ lua_lib_path }) files({ @@ -26,6 +26,8 @@ files({ "src/**.c", "lib/hashmap/**.h", "lib/hashmap/**.c", + "lib/compat53/c-api/**.h", + "lib/compat53/c-api/**.c" }) defines({ 'LUSH_VERSION="0.3.2"' })