-
Notifications
You must be signed in to change notification settings - Fork 226
/
Copy pathxmake.lua
48 lines (45 loc) · 1.05 KB
/
xmake.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
local function istable(t) return type(t) == 'table' end
add_requires("sol2 v3.3.0", {configs = {lua = "lua"}})
local function build_server()
set_kind("shared")
set_group("Server")
add_includedirs(
".",
"../../Libraries/")
set_pcxxheader("Pch.h")
add_headerfiles("**.h")
add_files("**.cpp")
if is_plat("windows") then
add_files("server.rc")
end
if is_plat("linux") then
add_cxxflags("-fvisibility=hidden")
end
add_deps(
"CommonLib",
"Console",
"Resources",
"ESLoader",
"CrashHandler",
"BaseLib",
"AdminProtocol",
"TiltedConnect"
)
add_packages(
"gamenetworkingsockets",
"spdlog",
"hopscotch-map",
"sqlite3",
"lua",
"sol2",
"glm",
"entt",
"cpp-httplib",
"tiltedcore",
"sentry-native")
end
target("SkyrimTogetherServer")
set_basename("STServer")
add_defines("TARGET_PREFIX=\"st\"")
add_deps("SkyrimEncoding")
build_server()