forked from GroupMountain/InventoryCheck
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
44 lines (40 loc) · 1.39 KB
/
Copy pathxmake.lua
File metadata and controls
44 lines (40 loc) · 1.39 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
add_rules("mode.debug", "mode.release")
add_repositories("liteldev-repo https://github.com/LiteLDev/xmake-repo.git")
add_repositories("groupmountain-repo https://github.com/GroupMountain/xmake-repo.git")
add_requires("levilamina 26.20.0", {configs = {target_type = "server"}})
add_requires("levibuildscript")
add_requires("gmlib 26.20.0")
if not has_config("vs_runtime") then
set_runtimes("MD")
end
target("InventoryCheck")
add_rules("@levibuildscript/linkrule")
add_rules("@levibuildscript/modpacker")
add_cxflags( "/EHa", "/utf-8", "/W4", "/w44265", "/w44289", "/w44296", "/w45263", "/w44738", "/w45204")
add_cxflags(
"/EHs",
"-Wno-microsoft-cast",
"-Wno-invalid-offsetof",
"-Wno-c++2b-extensions",
"-Wno-microsoft-include",
"-Wno-overloaded-virtual",
"-Wno-ignored-qualifiers",
"-Wno-missing-field-initializers",
"-Wno-potentially-evaluated-expression",
"-Wno-pragma-system-header-outside-header",
{tools = {"clang_cl"}}
)
set_toolchains("clang-cl")
add_defines(
"NOMINMAX",
"UNICODE",
"_HAS_CXX23=1"
)
add_packages("levilamina","gmlib")
set_exceptions("none") -- To avoid conflicts with /EHa.
set_kind("shared")
set_languages("c++23")
set_symbols("debug")
add_headerfiles("src/**.h")
add_files("src/**.cpp")
add_includedirs("src")