-
Notifications
You must be signed in to change notification settings - Fork 9
/
xmake.lua
49 lines (42 loc) · 1.37 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
set_languages("cxx17")
set_arch("x64")
set_xmakever("2.6.0")
-- direct dependency version pinning
add_requires(
"tiltedcore v0.2.7",
"hopscotch-map v2.3.1",
"minhook v1.3.3",
"catch2 2.13.9",
"mem 1.0.0",
"xbyak v7.06"
)
-- dependencies' dependencies version pinning
add_requireconfs("*.mimalloc", { version = "2.1.7", override = true })
add_requireconfs("*.cmake", { version = "3.30.2", override = true })
add_rules("mode.debug","mode.releasedbg", "mode.release")
add_rules("plugin.vsxmake.autoupdate")
if is_mode("release") then
add_ldflags("/LTCG", "/OPT:REF")
add_cxflags("/Ot", "/GL", "/Ob2", "/Oi", "/GS-")
add_defines("NDEBUG")
set_optimize("fastest")
end
target("TiltedReverse")
set_kind("static")
set_group("Libraries")
add_includedirs(
"Code/reverse/include/",
{public = true})
add_files("Code/reverse/src/*.cpp")
add_headerfiles(
"Code/reverse/include/*.hpp",
"Code/reverse/include/*.inl",
{prefixdir = "TiltedReverse"})
add_defines("NOMINMAX") -- stupid ass windows
add_packages("tiltedcore", "mimalloc", "hopscotch-map", "minhook", "mem", "xbyak")
target("TiltedReverse_Tests")
set_kind("binary")
set_group("Tests")
add_files("Code/tests/src/*.cpp")
add_deps("TiltedReverse")
add_packages("tiltedcore", "catch2", "hopscotch-map", "minhook", "xbyak")