summaryrefslogtreecommitdiff
path: root/core/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-18 09:51:33 +0800
committerruki <[email protected]>2021-09-18 09:51:33 +0800
commit6f0f25b64487a32989cb718aa50d9bc729f46d66 (patch)
tree1f4b3d523cb591aab977363fdd241ae62b46661e /core/xmake.lua
parenteb826246511e2afca394302aecccdf18d02a297f (diff)
build lua for windows
Diffstat (limited to 'core/xmake.lua')
-rw-r--r--core/xmake.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/xmake.lua b/core/xmake.lua
index 9caedf7a9..592bc7c95 100644
--- a/core/xmake.lua
+++ b/core/xmake.lua
@@ -40,6 +40,14 @@ if is_mode("coverage") then
add_ldflags("-coverage", "-fprofile-arcs", "-ftest-coverage")
end
+-- the backend option
+option("backend")
+ set_showmenu(true)
+ set_default("luajit")
+ set_description("Use luajit or lua backend")
+ set_values("luajit", "lua")
+option_end()
+
-- the readline option
option("readline")
set_showmenu(true)
@@ -80,7 +88,7 @@ if is_plat("windows") then
end
-- add projects
-includes("src/lua-cjson", "src/lcurses", "src/sv","src/luajit", "src/tbox", "src/xmake", "src/demo")
+includes("src/lua-cjson", "src/lcurses", "src/sv","src/luajit", "src/lua", "src/tbox", "src/xmake", "src/demo")
if is_plat("windows") then
includes("src/pdcurses")
end