-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
54 lines (48 loc) · 1.4 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
-- premake5.lua
workspace "workspace"
configurations { "Debug", "Release" }
language "C"
flags {
"FatalWarnings",
"MultiProcessorCompile"
}
warnings "Extra"
inlining "Auto"
editAndContinue "Off"
targetdir "bin"
location "bin"
characterset "MBCS"
filter "system:windows"
platforms { "Win64" }
systemversion("latest")
filter "platforms:Win64"
defines {
"OS_WINDOWS",
"_CRT_SECURE_NO_WARNINGS"
}
includedirs "src"
staticruntime "On"
architecture "x64"
disablewarnings {
"4057", -- Slightly different base types.
"4100", -- Unused formal parameter.
"4152", -- Conversion from function pointer to void *.
"4200", -- Zero-sized array. Valid C99.
"4201", -- Nameless struct/union. Valid C11.
"4204", -- Non-constant aggregate initializer. Valid C99.
"4206", -- Translation unit is empty. Might be #ifdefed out.
"4214", -- Bool bit-fields. Valid C99.
"4221", -- Pointers to locals in initializers. Valid C99.
"4702", -- Unreachable code.
}
linkoptions { "/ignore:4099" }
filter "configurations:Debug"
defines { "DEBUG_MODE" }
symbols "On"
filter "configurations:Release"
defines { "RELEASE_MODE" }
optimize "On"
project "rasterizer"
kind "ConsoleApp"
targetname "rasterizer"
files { "src/**.h", "src/**.c" }