-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
48 lines (39 loc) · 970 Bytes
/
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
IncludeDirectories = {}
IncludeDirectories["engine"] = "%{wks.location}/engine"
IncludeDirectories["spdlog"] = "%{wks.location}/submodules/spdlog/include"
IncludeDirectories["vulkan"] = path.join(os.getenv("VULKAN_SDK"), "Include")
workspace "Grape-Engine"
architecture "x86_64"
startproject "Sandbox"
targetdir ".build/bin/%{cfg.system}/%{cfg.buildcfg}/%{prj.name}"
objdir ".build/obj/%{cfg.system}"
flags
{
"MultiProcessorCompile",
"FatalWarnings"
}
configurations
{
"Debug",
"Release"
}
filter "configurations:Debug"
defines "GRAPE_DEBUG"
optimize "Off"
runtime "Debug"
symbols "Full"
filter "configurations:Release"
defines "GRAPE_RELEASE"
optimize "Full"
runtime "Release"
symbols "Off"
filter "system:windows"
systemversion "latest"
staticruntime "On"
defines
{
"GRAPE_PLATFORM_WINDOWS",
"_SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS"
}
include "engine/engine.lua"
include "sandbox/sandbox.lua"