Files
LCUI/lib/thread/xmake.lua
T
Liu 3a867040d1 build(xmake): fix package name, target naming and example install
- Remove per-lib set_project() calls that overrode the global lcui
  project name; xmake show now correctly reports the project as lcui.
- Move per-lib set_version() into the corresponding target() block so
  each sub-library keeps an independent version usable for standalone
  packaging.
- Add set_default(false) and set_group(examples) to all pandagl
  examples so they are no longer picked up by xmake package.
- Rename targets to use dashes for consistency:
    pandagl_cairo_example  -> pandagl-cairo-example
    preview_block_layout   -> preview-block-layout
    preview_flex_layout    -> preview-flex-layout
    preview_scrollbar      -> preview-scrollbar
    preview_widget_opacity -> preview-widget-opacity
- Bump yutil submodule to drop its set_project() call as well.
2026-08-05 22:41:23 +08:00

28 lines
760 B
Lua

target("libthread")
set_version("0.1.0-a")
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
target("libthread-tests")
set_default(false)
set_kind("binary")
set_group("tests")
set_rundir("tests")
add_files("tests/main.c", "tests/test_thread.c")
add_deps("ctest", "libthread")
add_rules("tests.runnable")
add_tests("default", {group = "tests"})