set the base of strtoul to 10 in src/version.c
[liba.git] / lua / xmake.lua
blob5647e0514cbe8f09280774ff44e3a31936cffb7a
1 ---@diagnostic disable
2 -- option: liba-lua
3 option("liba-lua")
4 set_showmenu(true)
5 set_category("liba")
6 set_values("lua", "luajit")
7 set_description("Enable/Disable lua")
8 option_end()
10 if has_config("liba-lua") then
11 add_requires(get_config("liba-lua"))
12 target("alua")
13 set_basename("a")
14 set_kind("shared")
15 add_files("src/**.c")
16 set_prefixname("lib")
17 add_packages(get_config("liba-lua"))
18 if is_plat("windows", "mingw") then
19 set_extension(".dll")
20 end
21 add_defines("A_EXPORTS")
22 on_load(function(target)
23 local subdir = get_config("liba-lua")
24 local libdir = path.join("lib", subdir)
25 target:set("targetdir", path.join(target:targetdir(), subdir))
26 target:set("installfiles", target:targetfile(), { prefixdir = libdir })
27 end)
28 add_deps("a")
29 target_end()
30 end