Files
Liu ce47e50ed3 fix: keep example tests in the console subsystem on Windows
win.sdk.application was added globally in examples/xmake.lua, so doc-viewer-tests inherited the GUI subsystem and failed to link with WinMain. Scope the rule to the GUI example targets instead.
2026-11-19 22:39:49 +08:00

13 lines
337 B
Lua

target("hello")
set_default(false)
set_group("lcui-examples")
set_prefixdir("hello", {bindir = "."})
set_kind("binary")
set_rundir("app")
add_deps("lcui")
add_files("src/*.c")
add_installfiles("app/*")
if is_plat("windows") and is_mode("release") then
add_rules("win.sdk.application")
end