-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
42 lines (35 loc) · 938 Bytes
/
premake5.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
workspace "DepTest"
location "build"
configurations { "Debug", "Release" }
targetdir "out"
flags { "StaticRuntime" }
targetprefix ""
buildoptions "/std:c++latest"
symbols "On"
characterset "Unicode"
pic "On"
systemversion "10.0.15063.0"
if CI_BUILD then
filter {}
defines { "CI_BUILD=1" }
end
filter "configurations:Release"
optimize "Speed"
-- Disable deprecation warnings and errors
filter "action:vs*"
defines
{
"_CRT_SECURE_NO_WARNINGS",
"_CRT_SECURE_NO_DEPRECATE",
"_CRT_NONSTDC_NO_WARNINGS",
"_CRT_NONSTDC_NO_DEPRECATE",
"_SCL_SECURE_NO_WARNINGS",
"_SCL_SECURE_NO_DEPRECATE",
"_WINSOCK_DEPRECATED_NO_WARNINGS"
}
include "code"
-- Cleanup
if _ACTION == "clean" then
os.rmdir("Bin");
os.rmdir("Build");
end