-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
72 lines (58 loc) · 2.09 KB
/
premake5.lua
File metadata and controls
72 lines (58 loc) · 2.09 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
71
72
workspace "PelicanEngine"
architecture "x86_64"
startproject "Sandbox"
configurations
{
"Debug",
"Release"
}
flags
{
"MultiProcessorCompile",
"FatalWarnings"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
local vulkanDir = os.getenv("VULKAN_SDK")
print("Vulkan is installed at " .. vulkanDir)
newoption {
trigger = "use-vld",
description = "Enable the use of VLD to check for memory leaks."
}
if (_OPTIONS["use-vld"]) then
print("VLD was enabled, memory leaks will get detected.")
end
VLDLocation = "C:/Program Files (x86)/Visual Leak Detector"
IncludeDir = {}
IncludeDir["GLFW"] = "%{wks.location}/Pelican/dependencies/GLFW/include"
IncludeDir["Glm"] = "%{wks.location}/Pelican/dependencies/glm"
IncludeDir["Logtools"] = "%{wks.location}/Pelican/dependencies/logtools/logtools/src"
IncludeDir["stb"] = "%{wks.location}/Pelican/dependencies/stb"
IncludeDir["json_hpp"] = "%{wks.location}/Pelican/dependencies/json_hpp/include"
IncludeDir["tiny_gltf"] = "%{wks.location}/Pelican/dependencies/tiny_gltf/include"
IncludeDir["Vulkan"] = (vulkanDir .. "/Include")
IncludeDir["ImGui"] = "%{wks.location}/Pelican/dependencies/imgui"
IncludeDir["entt"] = "%{wks.location}/Pelican/dependencies/entt/include"
IncludeDir["assimp"] = "%{wks.location}/Pelican/dependencies/assimp/include"
IncludeDir["assimpBuild"] = "%{wks.location}/Pelican/dependencies/assimp/build/include"
LibDir = {}
LibDir["Vulkan"] = (vulkanDir .. "/Lib")
group "Dependencies/Assimp"
externalproject "zlibstatic"
location "Pelican/dependencies/assimp/build/contrib/zlib"
uuid "0B10AC6D-B1BF-3E69-B188-19E0BA552B8A"
kind "StaticLib"
language "C++"
externalproject "assimp"
location "Pelican/dependencies/assimp/build/code"
uuid "BF5998C7-CFC7-349F-9213-B65DC300AEF6"
kind "SharedLib"
language "C++"
group "Dependencies"
include "Pelican/dependencies/glfw"
include "Pelican/dependencies/imgui"
group ""
group "Engine"
include "Pelican"
include "PelicanEd"
group ""
include "Sandbox"