-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmake.lua
58 lines (46 loc) · 1.79 KB
/
xmake.lua
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
set_project("Fussion")
add_rules("mode.debug", "mode.release")
add_rules("plugin.vsxmake.autoupdate")
add_rules("plugin.compile_commands.autoupdate", { outputdir = ".vscode" })
set_policy("package.install_locally", true)
rule("CompilerFlags")
on_load(function (target)
target:add("cxxflags", "gcc::-Wno-changes-meaning")
target:add("cxxflags", "gcc::-Wno-attributes")
target:add("cxxflags", "clang::-Wno-changes-meaning")
target:add("cxxflags", "clang::-Wno-c++98-compat")
target:add("cxxflags", "clang_cl::-ftime-trace")
target:add("cxxflags", "clang_cl::-Wno-c++98-compat")
target:add("cxxflags", "clang_cl::-Wno-unknown-attributes")
target:add("cxxflags", "clang_cl::-Wno-missing-field-initializers")
target:add("cxxflags", "clang_cl::-Wno-microsoft-include")
target:add("cxxflags", "clang_cl::-Wno-pragma-system-header-outside-header")
target:add("cxxflags", "cl::/EHsc /permissive- /utf-8")
target:add("cxxflags", "cl::/wd4514 /wd4820 /wd5030 /wd5222")
end)
rule_end()
rule("CommonFlags")
on_load(function(target)
target:add("defines", "USE_ASSERTIONS")
end)
rule_end()
option("LivePP")
set_showmenu(true)
add_defines("FSN_LIVEPP_ENABLED")
add_ldflags("/FUNCTIONPADMIN", "/OPT:NOREF", "/OPT:NOICF", "/Z7")
option_end()
option("Tracy")
set_showmenu(true)
add_defines("TRACY_ENABLE", {public = true})
add_defines("TRACY_ON_DEMAND", {public = true})
option_end();
option("TimeTrace")
set_showmenu(true)
option_end()
includes("Vendor.lua")
includes("HeaderTool/HeaderTool.lua")
includes("Fussion/Fussion.lua")
includes("Editor/Editor.lua")
if os.exists("Sandbox/Sandbox.lua") then
includes("Sandbox/Sandbox.lua")
end