Skip to content

Commit 677812a

Browse files
committed
chore: update xmake.lua
1 parent 7fde5dc commit 677812a

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

xmake.lua

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
add_rules("mode.debug", "mode.release")
22

3-
add_repositories("levimc-repo https://github.com/LiteLDev/xmake-repo.git")
3+
add_repositories("levimc-repo " .. (get_config("levimc_repo") or "https://github.com/LiteLDev/xmake-repo.git"))
44

55
if is_config("target_type", "server") then
6-
add_requires("levilamina 1.7.0", {configs = {target_type = "server"}})
6+
add_requires("levilamina eb5a505faf11dfbc86cee806386ef135e979bace", {configs = {target_type = "server"}})
77
else
8-
add_requires("levilamina 1.7.0", {configs = {target_type = "client"}})
8+
add_requires("levilamina eb5a505faf11dfbc86cee806386ef135e979bace", {configs = {target_type = "client"}})
99
end
1010

1111
add_requires("levibuildscript")
@@ -48,6 +48,12 @@ if not has_config("vs_runtime") then
4848
set_runtimes("MD")
4949
end
5050

51+
option("levimc_repo")
52+
set_default("https://github.com/LiteLDev/xmake-repo.git")
53+
set_showmenu(true)
54+
set_description("Set the levimc-repo path or url")
55+
option_end()
56+
5157
option("publish")
5258
set_default(false)
5359
set_showmenu(true)
@@ -114,6 +120,11 @@ target("legacy-script-engine")
114120
"src/legacy",
115121
"$(builddir)/config"
116122
)
123+
if is_config("target_type", "server") then
124+
add_defines("LL_PLAT_S")
125+
else
126+
add_defines("LL_PLAT_C")
127+
end
117128
if has_config("publish") then
118129
add_defines("LSE_VERSION_PUBLISH")
119130
end

0 commit comments

Comments
 (0)