forked from tiltedphoques/TiltedEvolution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmake.lua
57 lines (54 loc) · 1.23 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
49
50
51
52
53
54
55
56
57
local function istable(t) return type(t) == 'table' end
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",
"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_ST",
"TP_SKYRIM=1",
"TARGET_PREFIX=\"st\"")
add_deps("SkyrimEncoding")
build_server()
target("FalloutTogetherServer")
set_basename("FTServer")
add_defines(
"TARGET_FT",
"TP_FALLOUT=1",
"TARGET_PREFIX=\"ft\"")
add_deps("FalloutEncoding")
build_server()