generated from LiteLDev/levilamina-mod-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
xmake.lua
36 lines (32 loc) · 992 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
36
add_rules("mode.release")
add_repositories("liteldev-repo https://github.com/LiteLDev/xmake-repo.git")
-- add_requires("levilamina x.x.x") for a specific version
-- add_requires("levilamina develop") to use develop version
-- please note that you should add bdslibrary yourself if using dev version
add_requires("levilamina develop")
add_requires("levibuildscript")
if not has_config("vs_runtime") then
set_runtimes("MD")
end
target("BedrockBugFixes") -- Change this to your mod name.
add_rules("@levibuildscript/linkrule")
add_rules("@levibuildscript/modpacker")
add_cxflags(
"/EHa",
"/utf-8",
"/W4",
"/w44265",
"/w44289",
"/w44296",
"/w45263",
"/w44738",
"/w45204"
)
add_defines("NOMINMAX", "UNICODE")
add_files("src/**.cpp")
add_includedirs("src")
add_packages("levilamina")
set_exceptions("none")
set_kind("shared")
set_languages("c++20")
set_symbols("debug")