-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathxmake.lua
More file actions
69 lines (58 loc) · 1.49 KB
/
xmake.lua
File metadata and controls
69 lines (58 loc) · 1.49 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
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
add_rules("mode.debug", "mode.release")
add_repositories("liteldev-repo https://github.com/LiteLDev/xmake-repo.git")
add_requires("levilamina 26.10.0", {configs = {target_type = "server"}})
add_requires("levibuildscript")
add_requires("exprtk 0.0.3")
if not has_config("vs_runtime") then
set_runtimes("MD")
end
option("test")
set_default(false)
set_showmenu(true)
option_end()
rule("gen_version")
before_build(function(target)
import("scripts.gen_version")()
end)
target("TeleportSystem")
add_rules("gen_version")
add_rules("@levibuildscript/linkrule")
add_rules("@levibuildscript/modpacker")
add_cxflags(
"/EHa",
"/utf-8",
"/W4",
"/w44265",
"/w44289",
"/w44296",
"/w45263",
"/w44738",
"/w45204"
)
set_kind("shared")
set_symbols("debug")
set_languages("c++20")
set_exceptions("none") -- To avoid conflicts with /EHa.
add_includedirs("src")
add_headerfiles("src/**.h")
add_files("src/**.cc")
add_defines(
"NOMINMAX",
"UNICODE",
"_HAS_CXX23=1",
"TPS_EXPORTS",
"LL_PLAT_S"
)
add_packages(
"levilamina",
"exprtk"
)
if is_mode("debug") then
add_defines("TPS_DEBUG"--[[ , "LL_I18N_COLLECT_STRINGS" ]])
end
if has_config("test") then
add_defines("TPS_TEST")
add_includedirs("test")
add_files("test/**.cc")
end
add_defines("MOD_NAME=\"TeleportSystem\"")