F4MP/tiltedcode/Code/server_runner/xmake.lua
Jous99 37b16f1547 code upload
codigo original de f4mp y tilted para referencias
2026-01-06 18:45:00 +01:00

46 lines
1.2 KiB
Lua

local function istable(t) return type(t) == 'table' end
local function build_runner()
after_install(function(target)
local linkdir = target:pkg("sentry-native"):get("linkdirs")
if istable(linkdir) then
linkdir = linkdir[1] -- Yes lua index starts at 1
end
local bindir = path.join(linkdir, "..", "bin")
os.cp(bindir, target:installdir())
end)
set_kind("binary")
set_group("Server")
set_symbols("debug", "hidden")
add_includedirs(
".",
"../",
"../../Libraries/")
add_headerfiles("**.h")
add_files(
"**.cpp")
if is_plat("windows") then
add_files("server_runner.rc")
end
add_deps(
"CommonLib",
"Console",
"BaseLib")
add_packages(
"tiltedcore",
"spdlog",
"hopscotch-map",
"sentry-native",
"libuv")
add_defines("SPDLOG_HEADER_ONLY")
end
target("SkyrimServerRunner")
set_basename("SkyrimTogetherServer")
add_defines("TARGET_PREFIX=\"st\"")
-- we want uniform names for both runner and dll under windows for
-- scripting/ux reasons
build_runner()
-- core dll
add_deps("SkyrimTogetherServer")