File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 11add_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
55if 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" }})
77else
8- add_requires (" levilamina 1.7.0 " , {configs = {target_type = " client" }})
8+ add_requires (" levilamina eb5a505faf11dfbc86cee806386ef135e979bace " , {configs = {target_type = " client" }})
99end
1010
1111add_requires (" levibuildscript" )
@@ -48,6 +48,12 @@ if not has_config("vs_runtime") then
4848 set_runtimes (" MD" )
4949end
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+
5157option (" 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
You can’t perform that action at this time.
0 commit comments