forked from tiltedphoques/TiltedHooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmake.lua
27 lines (21 loc) · 853 Bytes
/
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
set_languages("cxx17")
set_xmakever("2.5.1")
add_requires("tiltedcore", "hopscotch-map", "catch2 2.13.9", "mem")
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("TiltedHooks")
set_kind("static")
set_group("Libraries")
add_files("Code/hooks/src/*.cpp")
add_files("Code/hooks/src/DInputHook.cpp", {unity_ignored = true})
add_includedirs("Code/hooks/include/", {public = true})
add_headerfiles("Code/hooks/include/*.hpp", {prefixdir = "TiltedHooks"})
add_syslinks("dxguid", "dinput8", "d3d11")
add_packages("tiltedcore", "mimalloc", "hopscotch-map", "mem")
add_deps("TiltedReverse")