mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
versions.json is now the single source of truth; scripts/sync-versions.mjs keeps xmake descriptors, tracked version headers and package.json in sync. Sub-library versions are aligned with the published 1.0.0 packages. C11 is set at the project level, and _GNU_SOURCE is defined on POSIX so strict C11 still exposes clock_gettime, strdup and recursive pthread mutexes.
24 lines
808 B
Lua
24 lines
808 B
Lua
add_requires("libomp", {optional = true})
|
|
|
|
option("with-openmp", {showmenu = true, default = true})
|
|
|
|
target("libui-server")
|
|
set_version("1.0.0")
|
|
set_kind("$(kind)")
|
|
add_files("src/**.c")
|
|
add_packages("libomp")
|
|
add_options("with-openmp")
|
|
add_deps("yutil", "pandagl", "libptk", "libcss", "libui")
|
|
set_configdir("include/ui_server")
|
|
add_configfiles("src/config.h.in")
|
|
add_headerfiles("include/ui_server.h", "include/ui_cursor.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
|