This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
generated from LiteLDev/liteloaderbds-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathxmake.lua
73 lines (64 loc) · 1.89 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
add_rules("mode.debug", "mode.release", "mode.releasedbg")
add_repositories("liteldev-repo https://github.com/LiteLDev/xmake-repo.git")
if not has_config("vs_runtime") then
set_runtimes("MD")
end
add_requires("zlib-ng 2.1.3")
-- Latest release
add_requires("levilamina develop")
-- Latest commit on develop
-- add_requires("levilamina develop")
-- package("levilamina")
-- add_urls("https://github.com/LiteLDev/LeviLamina.git")
--
-- add_deps("ctre 3.8.1")
-- add_deps("entt 3.12.2")
-- add_deps("fmt 10.1.1")
-- add_deps("gsl 4.0.0")
-- add_deps("leveldb 1.23")
-- add_deps("magic_enum 0.9.0")
-- add_deps("nlohmann_json 3.11.2")
-- add_deps("rapidjson 1.1.0")
-- add_deps("pcg_cpp 1.0.0")
-- add_deps("pfr 2.1.1")
-- add_deps("preloader 1.4.0")
-- add_deps("symbolprovider 1.1.0")
--
-- -- You may need to change this to the target BDS version of your choice.
-- add_deps("bdslibrary 1.20.61.01")
--
-- on_install(function (package)
-- import("package.tools.xmake").install(package)
-- end)
target("DataExtractor") -- Change this to your plugin name.
add_cxflags(
"/EHa",
"/utf-8"
)
add_defines(
"_HAS_CXX23=1" -- To enable C++23 features
)
add_files(
"src/**.cpp"
)
add_includedirs(
"src"
)
add_packages(
"levilamina",
"zlib-ng"
)
add_shflags(
"/DELAYLOAD:bedrock_server.dll" -- Magic to import symbols from BDS
)
set_exceptions("none") -- To avoid conflicts with /EHa
set_kind("shared")
set_languages("cxx20")
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)