-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake5.lua
76 lines (60 loc) · 1.32 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
workspace "plutonium-gsc"
startproject "plutonium-gsc"
location "./build"
objdir "%{wks.location}/obj"
targetdir "%{wks.location}/bin/%{cfg.platform}/%{cfg.buildcfg}"
configurations { "Debug", "Release" }
architecture "x86"
platforms "win32"
disablewarnings
{
"6031",
"6053",
"26495",
"26812",
}
buildoptions "/std:c++latest"
systemversion "latest"
defines { "_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS" }
configuration "windows"
defines { "_WINDOWS", "WIN32" }
staticruntime "On"
if symbols ~= nil then
symbols "On"
else
flags { "Symbols" }
end
configuration "Release"
defines { "NDEBUG" }
flags { "MultiProcessorCompile", "LinkTimeOptimization", "No64BitChecks" }
optimize "Full"
configuration "Debug"
defines { "DEBUG", "_DEBUG" }
flags { "MultiProcessorCompile", "No64BitChecks" }
optimize "Debug"
project "gsc-helper"
kind "SharedLib"
language "C++"
files
{
"./src/**.h",
"./src/**.hpp",
"./src/**.cpp",
}
includedirs
{
"%{prj.location}/src",
"./src",
}
resincludedirs
{
"$(ProjectDir)src"
}
pchheader "stdafx.hpp"
pchsource "src/stdafx.cpp"
buildoptions { "/Zm100 -Zm100" }
flags { "UndefinedIdentifiers" }
warnings "Off"
configuration "Release"
flags { "FatalCompileWarnings" }
configuration {}