-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathxmake.lua
More file actions
23 lines (21 loc) · 699 Bytes
/
xmake.lua
File metadata and controls
23 lines (21 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
add_rules("mode.debug", "mode.release", "mode.profile")
set_languages("c++20")
target("Physics2D")
if is_mode("debug") then
set_kind("static")
add_defines("DEBUG")
set_symbols("debug")
set_optimize("none")
end
if is_mode("release", "profile") then
set_kind("shared")
add_defines("NDEBUG")
set_symbols("hidden")
set_optimize("fastest")
end
add_headerfiles("Physics2D/include/*.h")
add_includedirs("Physics2D/include")
add_files("Physics2D/source/collision/*.cpp")
add_files("Physics2D/source/dynamics/*.cpp")
add_files("Physics2D/source/math/*.cpp")
add_files("Physics2D/source/other/*.cpp")