This commit is contained in:
Tsubasa6848
2024-01-03 08:35:58 +08:00
Unverified
parent 810600011a
commit 5df234806a
28 changed files with 7034 additions and 2204 deletions
+36
View File
@@ -0,0 +1,36 @@
add_rules("mode.debug", "mode.release", "mode.releasedbg")
add_repositories("liteldev-repo https://github.com/LiteLDev/xmake-repo.git")
add_requires("levilamina 0.2.2") -- or add_requires("levilamina x.x.x") to specify target LeviLamina version
target("Cleaner") -- Change this to your plugin name.
add_cxflags(
"/EHa",
"/utf-8"
)
add_files(
"src/**.cpp"
)
add_includedirs(
"src"
)
add_packages(
"levilamina"
)
add_shflags(
"/DELAYLOAD:bedrock_server.dll"
)
set_exceptions("none")
set_kind("shared")
set_languages("cxx23")
after_build(function (target)
local plugin_packer = import("scripts.after_build")
local plugin_define = {
pluginName = target:name(),
pluginFile = path.filename(target:targetfile()),
}
plugin_packer.pack_plugin(target,plugin_define)
end)