-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathxmake.lua
More file actions
29 lines (23 loc) · 770 Bytes
/
xmake.lua
File metadata and controls
29 lines (23 loc) · 770 Bytes
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
includes("VC-LTL5.lua", "YY-Thunks.lua")
add_rules("mode.debug", "mode.release")
set_warnings("more")
add_defines("WIN32", "_WIN32")
add_defines("UNICODE", "_UNICODE", "_CRT_SECURE_NO_WARNINGS", "_CRT_NONSTDC_NO_DEPRECATE")
if is_mode("release") then
add_defines("NDEBUG")
add_cxflags("/O2", "/Os", "/Gy", "/MT", "/EHsc", "/fp:precise")
add_ldflags("/DYNAMICBASE", "/LTCG")
end
add_cxflags("/utf-8")
add_links("kernel32", "user32")
target("detours")
set_kind("static")
add_files("detours/src/*.cpp|uimports.cpp")
add_includedirs("detours/src", {public=true})
target("setdll")
set_kind("binary")
set_targetdir("$(buildir)/release")
add_deps("detours")
add_links("detours")
add_files("src/*.cpp")
add_files("src/*.rc")