-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
38 lines (27 loc) · 1.05 KB
/
xmake.lua
File metadata and controls
38 lines (27 loc) · 1.05 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
set_project( "Own-2d-Engine" )
set_version( "0.0.1", { build = "%Y%m%d", soname = true } )
add_rules( "mode.debug", "mode.release", "mode.releasedbg", "mode.minsizerel" )
add_rules( "plugin.compile_commands.autoupdate", { outputdir = ".vscode" } )
if is_plat( "windows" ) then
set_languages( "cxx20" )
add_cxflags( "/Zc:__cplusplus" )
add_cxflags( "/Zc:preprocessor" )
add_cxflags( "/permissive-" )
else
set_languages( "c++20" )
end
set_warnings( "allextra" )
-- maybe this helps for the ci?
set_policy( "build.across_targets_in_parallel", false )
add_repositories( "testing-repo https://github.com/SFGrenade/NetworkingHelpers-xmake-repo.git" )
-- preprocessor shortcuts
add_requires( "hedley" )
-- test framework, gonna be added to each test
add_requires( "gtest" )
add_requireconfs( "**", "*.**", { system = false } )
add_requireconfs( "*", { configs = { shared = get_config( "kind" ) == "shared" } } )
--includes( "configuration" )
includes( "engine" )
--includes( "logger" )
--includes( "network_messages" )
--includes( "sdl_wrapper" )