mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
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.
17 lines
431 B
Lua
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
|