-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
45 lines (37 loc) · 1.03 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
-- Thumper Editor
workspace "thumper_editor"
architecture "x86_64"
configurations { "debug", "release" }
startproject "thumper_editor"
flags "MultiProcessorCompile"
language "C++"
cppdialect "C++latest"
cdialect "C17"
staticruntime "On"
stringpooling "On"
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"
defines { "_DEBUG", "TE_DEBUG" }
filter "configurations:release"
runtime "Release"
optimize "Speed"
symbols "On"
defines { "NDEBUG", "TE_RELEASE" }
flags { "LinkTimeOptimization", "NoBufferSecurityCheck" }
filter "system:windows"
systemversion "latest"
defines { "NOMINMAX", "TE_WINDOWS" }
buildoptions { "/EHsc", "/Zc:preprocessor", "/Zc:__cplusplus", "/experimental:c11atomics" }
filter "system:linux"
defines "TE_LINUX"
group "dependencies"
for _, matchedfile in ipairs(os.matchfiles("premake/*.lua")) do
include(matchedfile)
end
group ""
include "editor/build.lua"