From ebdd4e88db2738197dd4a47903f28253cfc103e0 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Mon, 2 Sep 2024 22:55:24 -0400 Subject: added basic lua scripting added exec function to run shell commands from lua --- premake5.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'premake5.lua') diff --git a/premake5.lua b/premake5.lua index 3818236..34d98dd 100644 --- a/premake5.lua +++ b/premake5.lua @@ -7,6 +7,20 @@ kind("ConsoleApp") language("C") targetdir("bin/%{cfg.buildcfg}/lush") +local lua_inc_path = "/usr/include" +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" }) +else + links({ "lua" }) +end + +includedirs({ lua_inc_path }) +libdirs({ lua_lib_path }) + files({ "src/**.h", "src/**.c", -- cgit v1.2.3-59-g8ed1b