forked from std-microblock/blook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
48 lines (38 loc) · 1.2 KB
/
xmake.lua
File metadata and controls
48 lines (38 loc) · 1.2 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
set_xmakever("2.9.8")
set_allowedplats("windows", "linux")
add_rules("mode.debug", "mode.release", "mode.releasedbg")
set_allowedmodes("debug", "release", "releasedbg")
set_languages("c++23")
set_encodings("utf-8")
add_requires("zasm edd30ff31d5a1d5f68002a61dca0ebf6e3c10ed0")
target("blook")
set_kind("static")
add_files("src/*.cpp")
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")
elseif is_plat("linux") then
add_files("src/tests/test_linux.cpp")
end
if is_plat("windows") then
add_syslinks("user32")
end
add_deps("blook")
add_tests("default")