-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathxmake.lua
More file actions
50 lines (42 loc) · 1.42 KB
/
xmake.lua
File metadata and controls
50 lines (42 loc) · 1.42 KB
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
50
set_allowedplats("windows", "linux")
add_rules("plugin.compile_commands.autoupdate", {outputdir = "build"})
add_rules("mode.debug", "mode.release", "mode.releasedbg")
set_allowedmodes("debug", "release", "releasedbg")
set_languages("c++23")
set_encodings("utf-8")
add_requires("zasm", "gtest", "cpptrace")
target("blook")
set_kind("static")
add_files("src/*.cpp", "src/**/*.cc")
add_defines("WIN32_LEAN_AND_MEAN", "NOMINMAX")
if is_plat("windows") then
add_files("src/platform/windows/*.cpp")
elseif is_plat("linux") then
add_files("src/platform/linux/*.cpp")
end
add_includedirs("include", {public = true})
add_headerfiles("include/(**.h)")
if is_plat("windows") then
add_syslinks("advapi32")
end
add_packages("zasm", {public = true})
target("blook-dll-hijack-codegen")
set_enabled(is_plat("windows"))
set_kind("binary")
add_files("src/platform/windows/codegen/DllHijackCodegen.cpp")
target("blook-test")
set_default(false)
set_kind("binary")
if is_plat("windows") then
add_files("src/tests/test_windows.cpp")
add_files("src/tests/test_allocator.cpp")
add_files("src/tests/test_asm.asm")
elseif is_plat("linux") then
add_files("src/tests/test_linux.cpp")
end
if is_plat("windows") then
add_syslinks("user32")
end
add_packages("gtest", "cpptrace")
add_deps("blook")
add_tests("default")