-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxmake.lua
51 lines (44 loc) · 1.21 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
add_rules("mode.debug", "mode.release", "mode.releasedbg")
add_repositories("liteldev-repo https://github.com/LiteLDev/xmake-repo.git")
add_repositories("groupmountain-repo https://github.com/GroupMountain/xmake-repo.git")
if not has_config("vs_runtime") then
set_runtimes("MD")
end
-- Option 1: Use the latest version of LeviLamina released on GitHub.
add_requires("levilamina")
add_requires("levibuildscript")
add_requires("gmlib")
target("Cleaner") -- Change this to your mod name.
add_cxflags(
"/EHa",
"/utf-8"
)
add_files(
"src/**.cpp"
)
add_includedirs(
"src"
)
add_packages(
"levilamina",
"gmlib"
)
add_defines(
"NOMINMAX",
"UNICODE",
"_HAS_CXX17",
"_HAS_CXX20",
"_HAS_CXX23"
)
add_rules("@levibuildscript/linkrule")
set_exceptions("none")
set_kind("shared")
set_languages("cxx23")
after_build(function (target)
local mod_packer = import("scripts.after_build")
local mod_define = {
modName = target:name(),
modFile = path.filename(target:targetfile()),
}
mod_packer.pack_mod(target,mod_define)
end)