Files
LCUI/lib/thread/xmake.lua
T
2023-05-02 14:44:41 +08:00

18 lines
472 B
Lua

set_version("0.1.0-a")
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