-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
52 lines (43 loc) · 1.63 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
51
52
workspace "Stengine"
architecture "x86_64"
startproject "Steditor"
configurations
{
"Debug",
"Release",
"Dist"
}
flags
{
"MultiProcessorCompile"
}
-- The output directory based on the configuration
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
VULKAN_SDK = "/home/sten/vulkansdk/x86_64"
IncludeDir = {}
IncludeDir["spdlog"] = "%{wks.location}/Stengine/vendor/spdlog/include"
IncludeDir["GLFW"] = "%{wks.location}/Stengine/vendor/GLFW/include"
IncludeDir["Glad"] = "%{wks.location}/Stengine/vendor/Glad/include"
IncludeDir["ImGui"] = "%{wks.location}/Stengine/vendor/imgui"
IncludeDir["ImGuizmo"] = "%{wks.location}/Stengine/vendor/ImGuizmo"
IncludeDir["Box2D"] = "%{wks.location}/Stengine/vendor/Box2D/include"
IncludeDir["glm"] = "%{wks.location}/Stengine/vendor/glm"
IncludeDir["entt"] = "%{wks.location}/Stengine/vendor/entt/include"
IncludeDir["stb_image"] = "%{wks.location}/Stengine/vendor/stb_image"
IncludeDir["yaml_cpp"] = "%{wks.location}/Stengine/vendor/yaml-cpp/include"
IncludeDir["osdialog"] = "%{wks.location}/Stengine/vendor/osdialog"
IncludeDir["VulkanSDK"] = "%{VULKAN_SDK}/include"
filter {}
-- Create a solution folder inside visual studio
group "Dependencies"
include "Stengine/vendor/GLFW"
include "Stengine/vendor/Glad"
include "Stengine/vendor/imgui"
include "Stengine/vendor/Box2D"
include "Stengine/vendor/yaml-cpp"
include "Stengine/vendor/osdialog"
group "" -- End the solution folder here
-- Include the premake5.lua files inside these project folders so that they get added to the build system
include "Stengine"
include "Steditor"
include "Sandbox"