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.
13 lines
337 B
Lua
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
|