-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
36 lines (25 loc) · 780 Bytes
/
xmake.lua
File metadata and controls
36 lines (25 loc) · 780 Bytes
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
-- Build with xmake -P .
set_project("ES-RS")
set_languages("c++20")
add_rules("mode.debug", "mode.release")
if is_plat("windows") then
add_cxflags("/W4")
end
add_repositories("EngineSquaredrepo https://github.com/EngineSquared/xrepo.git")
add_requires("enginesquared 0.3.3", { debug = is_mode("debug") })
add_rules("plugin.compile_commands.autoupdate", {outputdir = ".vscode"})
target("ES-RS")
set_kind("binary")
add_packages("enginesquared")
add_files("src/**.cpp")
add_includedirs("$(projectdir)/src/")
set_rundir("$(projectdir)")
if is_mode("debug") then
add_defines("ES_DEBUG")
set_symbols("debug")
set_optimize("none")
end
if is_mode("release") then
set_optimize("fastest")
end
target_end()