Files
LCUI/lib/ui-server/xmake.lua
T
Liu afa800dfaf 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-06-01 22:27:07 +08:00

23 lines
773 B
Lua

add_requires("libomp", {optional = true})
option("with-openmp", {showmenu = true, default = true})
target("libui-server")
set_version("0.1.0-a")
set_kind("$(kind)")
add_files("src/**.c")
add_packages("libomp")
add_options("with-openmp")
add_deps("yutil", "pandagl", "libptk", "libui", "libui-cursor")
set_configdir("include/ui_server")
add_configfiles("src/config.h.in")
add_headerfiles("include/ui_server.h", "include/(ui_server/*.h)")
if is_kind("static") then
set_configvar("LIBUI_SERVER_STATIC_BUILD", 1)
elseif is_plat("windows") then
add_defines("LIBUI_SERVER_DLL_EXPORT")
end
if has_package("libomp") and has_config("with-openmp") then
set_configvar("LIBUI_SERVER_HAS_OPENMP", 1)
end