-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmake.lua
42 lines (31 loc) · 1.07 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
local projectName = "HLMMOClient"
add_rules("mode.debug", "mode.release")
add_requires("boost")
target(projectName)
set_kind("shared")
set_languages("cxx20")
set_exceptions("cxx")
add_packages("boost")
add_packages("msgpack")
add_includedirs(".")
add_includedirs("./include")
if is_mode("debug") then
add_defines("DEBUG")
end
add_files("dllmain.cpp", "Core/core.cpp", "Game/Game.cpp", "Networking/NetworkManager.cpp", "Game/Player.cpp" )
add_deps("UE4SS")
add_links("GameNetworkingSockets")
-- Add link search directory
add_linkdirs(".")
on_load(function (target)
import("build_configs", { rootdir = get_config("scriptsRoot") })
build_configs:set_output_dir(target)
end)
on_config(function (target)
import("build_configs", { rootdir = get_config("scriptsRoot") })
build_configs:config(target)
end)
after_clean(function (target)
import("build_configs", { rootdir = get_config("scriptsRoot") })
build_configs:clean_output_dir(target)
end)