-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake5.lua
67 lines (56 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
workspace "windows-timescale-hook"
location "./build"
objdir "%{wks.location}/obj"
targetdir "%{wks.location}/bin/%{cfg.architecture}/%{cfg.buildcfg}"
buildlog "%{wks.location}/obj/%{cfg.architecture}/%{cfg.buildcfg}/%{prj.name}/%{prj.name}.log"
configurations { "Debug", "Release" }
platforms { "x86", "x64" }
buildoptions { "/std:c++latest", "/utf-8", "/Zm200" }
systemversion "10.0.17763.0"
flags { "NoIncrementalLink", "NoEditAndContinue", "NoMinimalRebuild", "MultiProcessorCompile"}
configuration "windows"
defines { "_WINDOWS", "WIN32" }
configuration "Release*"
defines { "NDEBUG" }
optimize "On"
configuration "Debug*"
defines { "DEBUG", "_DEBUG" }
optimize "Debug"
if symbols ~= nil then
symbols "On"
else
flags { "Symbols" }
end
project "windows-timescale-hook"
kind "SharedLib"
language "C++"
files {
"./src/**.hpp",
"./src/**.cpp",
}
includedirs {
"%{prj.location}/src",
"./src",
}
resincludedirs {
"$(ProjectDir)src"
}
pchheader "pch.hpp"
pchsource "src/pch.cpp"
vpaths
{
["*"] = { "./src/**" },
}
flags { "UndefinedIdentifiers" }
warnings "Extra"
if symbols ~= nil then
symbols "On"
else
flags { "Symbols" }
end
configuration "Release*"
flags {
"FatalCompileWarnings",
"FatalLinkWarnings",
}
configuration {}