Files
LCUI/examples/doc-viewer/xmake.lua
T
Liu e87f0f1f06 feat(doc-viewer): localize and rebalance the home gallery
- add Chinese card copy with ¥ amounts and CNY as the default currency
- reorder the 4x2 card grid around Deployment, Distribute and Payout
- remove leftover item min-heights and fix title/media/action alignment
- compile generated UTF-8 page headers with MSVC /utf-8
2026-11-14 00:31:29 +08:00

24 lines
789 B
Lua

target("doc-viewer")
set_default(false)
set_group("lcui-examples")
set_prefixdir("doc-viewer", {bindir = "."})
set_kind("binary")
set_rundir("dist")
add_deps("lcui")
add_files("app/**.c")
if is_plat("windows") then
add_cxflags("/utf-8", {tools = "cl"})
end
add_installfiles("dist/(assets/*)")
after_build(function (target)
local src = path.join(os.projectdir(), "docs", "examples", "assets", "attachment")
local dst = path.join(os.projectdir(), "examples", "doc-viewer", "dist", "assets", "attachment")
if os.isdir(src) then
os.mkdir(dst)
for _, file in ipairs(os.files(path.join(src, "*"))) do
os.cp(file, dst)
end
end
end)
set_warnings("all")