-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpremake5.lua
More file actions
70 lines (56 loc) · 1.47 KB
/
premake5.lua
File metadata and controls
70 lines (56 loc) · 1.47 KB
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
assert(_ACTION ~= nil, "no action (vs20**, gmake or xcode for example) provided!")
-- Clean Function --
newaction {
trigger = "clean",
description = "clean the software",
execute = function()
print("Cleaning project")
os.rmdir("./limbo")
end
}
if (_ACTION ~= "vs2022" and _ACTION ~= "clean") then
error("The only supported compilation platform for this project (limbo) on Windows is Visual Studio 2022.")
end
workspace "limbo"
language "C++"
cppdialect "C++20"
systemversion "latest"
toolset "clang"
kind "ConsoleApp"
targetextension ".exe"
location "limbo"
objdir "limbo/intermediate"
flags { "NoPCH", "MultiProcessorCompile", "NoManifest" }
defines {
"_CRT_NONSTDC_NO_WARNINGS",
"_CRT_SECURE_NO_WARNINGS",
"STRICT"
}
vectorextensions "AVX2"
configurations { "Release", "Debug" }
architecture "x86_64"
exceptionhandling "SEH"
filter "configurations:Release"
symbols "Off"
optimize "Speed"
floatingpoint "Fast"
omitframepointer "On"
flags { "LinkTimeOptimization" }
defines "NDEBUG"
targetdir "limbo/release"
filter "configurations:Debug"
symbols "Full"
optimize "Debug"
defines { "DEBUG", "_DEBUG" }
targetdir "limbo/debug"
filter {}
project "limbo"
files { "source/**.h", "source/**.hpp", "source/**.c", "source/**.cpp" }
vpaths {
["Header Files/*"] = { "source/**.h", "source/**.hpp" },
["Source Files/*"] = { "source/**.c", "source/**.cpp" }
}
includedirs {
"source",
"source/limbo",
}