Files
LCUI/lib/thread/xmake.lua
T

16 lines
448 B
Lua

target("libthread")
set_kind("$(kind)")
add_files("src/*.c")
set_configdir("include")
add_configfiles("src/thread.h.in")
add_headerfiles("include/thread.h")
if not is_plat("windows") then
add_syslinks("pthread", "dl")
end
add_deps("yutil")
if is_kind("static") then
set_configvar("LIBTHREAD_STATIC_BUILD", 1)
elseif is_plat("windows") then
add_defines("LIBTHREAD_DLL_EXPORT")
end