-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
38 lines (33 loc) · 1.06 KB
/
xmake.lua
File metadata and controls
38 lines (33 loc) · 1.06 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("HanaBase")
set_warnings("all")
set_policy("build.ccache", true)
set_policy("build.warning", true)
set_policy("check.auto_ignore_flags", true)
set_policy("package.install_locally", false)
set_languages("cxx20", "c11")
add_rules("mode.debug", "mode.release", "mode.releasedbg")
if (is_os("windows")) then
add_defines("UNICODE", "NOMINMAX", "_WINDOWS", "WIN32_LEAN_AND_MEAN")
add_defines("_CRT_SECURE_NO_WARNINGS")
add_defines("_ENABLE_EXTENDED_ALIGNED_STORAGE")
add_defines("_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR")
add_defines("HANA_OS_WINDOWS")
if (is_mode("release")) then
set_runtimes("MD")
else
set_runtimes("MDd")
end
elseif (is_os("linux")) then
add_defines("HANA_OS_LINUX")
elseif (is_os("android")) then
add_defines("HANA_OS_ANDROID")
elseif (is_os("macosx")) then
add_defines("HANA_OS_MACOSX")
elseif (is_os("IOS")) then
add_defines("HANA_OS_IOS")
end
default_unity_batch = 16
includes("xmake/compile_flags.lua")
includes("modules/xmake.lua")
includes("tests/xmake.lua")
includes("samples/xmake.lua")