-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
27 lines (20 loc) · 699 Bytes
/
xmake.lua
File metadata and controls
27 lines (20 loc) · 699 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
add_rules("mode.debug", "mode.release")
set_languages("c++20")
target("DllInject")
set_kind("shared")
set_targetdir("build")
add_files("src/*.cpp")
add_headerfiles("src/*.h")
-- from https://github.com/winsiderss/systeminformer
add_includedirs("S:/gits/systeminformer/sdk/include")
add_linkdirs("S:/gits/systeminformer/sdk/lib/amd64")
add_syslinks("user32", "Advapi32")
add_cxflags("/guard:cf", {force = true})
add_ldflags(
"/DELAYLOAD:user32.dll",
"/DELAYLOAD:Advapi32.dll",
{force = true}
)
-- after_build(function (target)
-- os.cp(target:targetfile(), "C:/Program Files/SystemInformer/plugins/")
-- end)