Files
LCUI/lib/thread/xmake.lua
T

18 lines
472 B
Lua
Raw Normal View History

2023-03-04 22:21:39 +08:00
set_version("0.1.0-a")
2022-02-20 22:12:44 +08:00
target("libthread")
set_kind("$(kind)")
2022-02-03 14:26:20 +08:00
add_files("src/*.c")
2023-04-29 23:38:26 +08:00
set_configdir("include")
add_configfiles("src/thread.h.in")
add_headerfiles("include/thread.h")
2022-02-03 14:26:20 +08:00
if not is_plat("windows") then
2021-07-31 21:11:20 +08:00
add_syslinks("pthread", "dl")
end
2022-02-20 22:12:44 +08:00
add_deps("yutil")
2023-04-29 23:38:26 +08:00
if is_kind("static") then
set_configvar("LIBTHREAD_STATIC_BUILD", 1)
elseif is_plat("windows") then
add_defines("LIBTHREAD_DLL_EXPORT")
end