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

17 lines
431 B
Lua

add_requires("cairo", { optional = true })
target("fabric")
set_default(false)
set_group("lcui-examples")
set_prefixdir("fabric", {bindir = "."})
set_kind("binary")
add_files("src/*.c")
add_deps("lcui")
add_packages("cairo")
if has_package("cairo") then
add_defines("HAS_CAIRO")
end
if is_plat("windows") and is_mode("release") then
add_rules("win.sdk.application")
end