-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
50 lines (40 loc) · 1.07 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
workspace "hyperengine"
architecture "x86_64"
configurations { "debug", "release", "dist" }
startproject "hyperengine"
flags "MultiProcessorCompile"
language "C++"
cppdialect "C++latest"
cdialect "C17"
staticruntime "On"
stringpooling "On"
editandcontinue "Off"
kind "StaticLib"
targetdir "%{wks.location}/bin/%{cfg.system}_%{cfg.buildcfg}"
objdir "%{wks.location}/bin_obj/%{cfg.system}_%{cfg.buildcfg}"
filter "configurations:debug"
runtime "Debug"
optimize "Debug"
symbols "On"
filter "configurations:release"
runtime "Release"
optimize "Speed"
symbols "On"
filter "configurations:dist"
runtime "Release"
optimize "Speed"
symbols "Off"
flags { "LinkTimeOptimization", "NoBufferSecurityCheck" }
filter "system:windows"
systemversion "latest"
defines "NOMINMAX"
buildoptions { "/EHsc", "/Zc:preprocessor", "/Zc:__cplusplus", "/experimental:c11atomics" }
filter { "system:linux", "language:C++" }
buildoptions "-std=c++23"
filter {}
group "dependencies"
for _, matchedfile in ipairs(os.matchfiles("premake/*.lua")) do
include(matchedfile)
end
group ""
include "hyperengine/build.lua"