-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathxmake.lua
More file actions
42 lines (34 loc) · 1.24 KB
/
xmake.lua
File metadata and controls
42 lines (34 loc) · 1.24 KB
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
add_rules("mode.debug", "mode.release")
add_repositories("levimc-repo " .. (get_config("levimc_repo") or "https://github.com/LiteLDev/xmake-repo.git"))
if is_config("target_type", "server") then
add_requires("levilamina 26.10.*", {configs = {target_type = "server"}})
else
add_requires("levilamina 26.10.*", {configs = {target_type = "client"}})
end
add_requires("levibuildscript")
if not has_config("vs_runtime") then
set_runtimes("MD")
end
option("levimc_repo")
set_default("https://github.com/LiteLDev/xmake-repo.git")
set_showmenu(true)
set_description("Set the levimc-repo path or url")
option_end()
option("target_type")
set_default("server")
set_showmenu(true)
set_values("server", "client")
option_end()
target("LegacyRemoteCall")
add_rules("@levibuildscript/linkrule")
add_rules("@levibuildscript/modpacker")
add_cxflags( "/EHa", "/utf-8", "/W4", "/w44265", "/w44289", "/w44296", "/w45263", "/w44738", "/w45204")
add_defines("NOMINMAX", "UNICODE", "REMOTE_CALL_EXPORT")
add_packages("levilamina")
set_exceptions("none")
set_kind("shared")
set_languages("c++20")
set_symbols("debug")
add_files("src/**.cpp")
add_includedirs("src")
add_headerfiles("src/RemoteCallAPI.h")