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