Files

31 lines
925 B
Lua
Raw Permalink Normal View History

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
if is_plat("windows") and is_mode("release") then
add_rules("win.sdk.application")
end
add_installfiles("dist/(assets/*)")
2026-10-24 21:44:09 +08:00
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")
target_end()
includes("tests")