-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
xmake.lua
33 lines (26 loc) · 1.11 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
set_languages("cxx20")
set_xmakever("2.5.1")
add_requires("tiltedcore", "hopscotch-map", "snappy", "gamenetworkingsockets", "catch2 2.13.9", "libuv")
add_requireconfs("*.protobuf*", { build = true })
add_rules("mode.debug","mode.releasedbg", "mode.release")
add_rules("plugin.vsxmake.autoupdate")
if is_mode("release") then
add_defines("NDEBUG")
set_optimize("fastest")
end
target("TiltedConnect")
set_kind("static")
set_group("Libraries")
add_files("Code/connect/src/*.cpp")
add_includedirs("Code/connect/include/", {public = true})
add_headerfiles("Code/connect/include/*.hpp", {prefixdir = "TiltedConnect"})
add_packages("tiltedcore", "hopscotch-map", "snappy", "gamenetworkingsockets", "libuv")
add_cxflags("-fPIC")
add_defines("STEAMNETWORKINGSOCKETS_STATIC_LINK")
target("TiltedConnect_Tests")
set_kind("binary")
set_group("Tests")
add_files("Code/tests/src/*.cpp", {unity_ignored = true})
add_deps("TiltedConnect")
add_packages("catch2", "hopscotch-map", "tiltedcore", "gamenetworkingsockets", "mimalloc")
add_defines("STEAMNETWORKINGSOCKETS_STATIC_LINK")