-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmake.lua
38 lines (24 loc) · 827 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
27
28
29
30
31
32
33
34
35
-- set_config("toolchain","clang-cl")
-- set_config("lsp","clangd")
set_allowedarchs("windows|x64")
add_rules("mode.debug", "mode.release")
add_rules("plugin.vsxmake.autoupdate")
-- 更新compile_commands.json
add_rules("plugin.compile_commands.autoupdate", {outputdir = ".vscode"})
set_languages("cxx20")
includes("**/xmake.lua")
-- meet some bug, but dependency is right
-- set_policy("package.requires_lock", true)
-- Global settings
after_build(
function (target)
os.trycp("$(projectdir)/lib/*.dll", "$(buildir)/$(plat)/$(arch)/$(mode)/")
os.trycp("$(projectdir)/Configs/*","$(buildir)/$(plat)/$(arch)/$(mode)/")
end
)
after_clean(
function (target)
os.tryrm("$(projectdir)/bin/$(mode)/Shaders/")
print("cleaned:" .. "$(projectdir)/bin/$(mode)/Shaders")
end
)