diff options
| author | 2025-08-19 14:53:18 -0400 | |
|---|---|---|
| committer | 2025-08-19 14:53:18 -0400 | |
| commit | 810c1f8f943e9683e4d2efedba98dca0010af202 (patch) | |
| tree | 2507acdf5cad8bc65e32c037bdf436f1500c1b74 /premake5.lua | |
| parent | v0.3.2 (diff) | |
| parent | Revert to old hashmap: fixed gitmodule index (diff) | |
Merge pull request #6 from ItsMeForLua/my-feature-branch
Added Lua compat53: fixed the non-interactive mode: added .gitmodules to build.yml
Diffstat (limited to 'premake5.lua')
| -rw-r--r-- | premake5.lua | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/premake5.lua b/premake5.lua index 037cfca..1043c07 100644 --- a/premake5.lua +++ b/premake5.lua @@ -13,12 +13,17 @@ local lua_lib_path = "/usr/lib" if os.findlib("lua5.4") then lua_inc_path = "/usr/include/lua5.4" lua_lib_path = "/usr/lib/5.4" - links({ "lua5.4" }) +-- Readline for better interactive support, dl for dynamic loading, and m for the math library dependency + links({ "lua5.4", "readline", "dl", "m" }) 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,8 +31,15 @@ files({ "src/**.c", "lib/hashmap/**.h", "lib/hashmap/**.c", + "lib/compat53/c-api/compat-5.3.h", + "lib/compat53/c-api/compat-5.3.c", + "lib/compat53/lbitlib.c", + "lib/compat53/liolib.c", + "lib/compat53/lstrlib.c", + "lib/compat53/ltablib.c", + "lib/compat53/lutf8lib.c" }) -defines({ 'LUSH_VERSION="0.3.2"' }) +defines({ 'LUSH_VERSION="0.3.2"', 'COMPAT53_PREFIX=""', 'LUA_COMPAT_BITLIB' }) filter("configurations:Debug") defines({ "DEBUG" }) |
