-
Notifications
You must be signed in to change notification settings - Fork 2
/
premake5.lua
81 lines (64 loc) · 2.64 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
workspace "Xenode"
configurations { "Debug", "Release_Debug", "Production" }
architecture "x64"
bin_folder = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
startproject "Xen"
--toolset "clang"
-- Vulkan SDK is used for shaderc and spirv-cross
VULKAN_SDK_PATH = os.getenv("VULKAN_SDK")
-- Paths of various resources
COMMON_RESOURCES_PATH = "%{wks.location}/resources/CommonResources"
EDITOR_RESOURCES_PATH = "%{wks.location}/resources/EditorResources"
PROJECTS_PATH = "%{wks.location}/resources/projects"
-- Dependencies:
group "Dependencies"
include "deps/glfw"
include "deps/imgui"
include "deps/yaml-cpp"
include "deps/box2d"
include "deps/lua"
group ""
IncludeDir = {}
IncludeDir["spdlog"] = "%{wks.location}/deps/spdlog/include"
IncludeDir["GLFW"] = "%{wks.location}/deps/glfw/include"
IncludeDir["glad"] = "%{wks.location}/deps/glad/include"
IncludeDir["glm"] = "%{wks.location}/deps/glm/include"
IncludeDir["stb"] = "%{wks.location}/deps/stb"
IncludeDir["ImGui"] = "%{wks.location}/deps/imgui"
IncludeDir["Taskflow"] = "%{wks.location}/deps/taskflow"
IncludeDir["entt"] = "%{wks.location}/deps/entt/include"
IncludeDir["yaml_cpp"] = "%{wks.location}/deps/yaml-cpp/include"
IncludeDir["ImGuizmo"] = "%{wks.location}/deps/ImGuizmo"
IncludeDir["ImGradientHDR"] = "%{wks.location}/deps/ImGradientHDR"
IncludeDir["Optick"] = "%{wks.location}/deps/optick/include"
IncludeDir["Box2D"] = "%{wks.location}/deps/box2d/include"
IncludeDir["Lua"] = "%{wks.location}/deps/lua/include"
IncludeDir["SHA256"] = "%{wks.location}/deps/SHA256/include"
IncludeDir["VulkanSDK"] = "%{VULKAN_SDK_PATH}/Include"
Library = {}
-- Windows only for now.
-- ShaderC
Library["ShaderC_Debug"] = "%{VULKAN_SDK_PATH}/Lib/shaderc_sharedd.lib"
Library["ShaderC_Release"] = "%{VULKAN_SDK_PATH}/Lib/shaderc_shared.lib"
-- SpirV Cross
Library["SpirVCrossCore_Debug"] = "%{VULKAN_SDK_PATH}/Lib/spirv-cross-cored.lib"
Library["SpirVCrossCore_Release"] = "%{VULKAN_SDK_PATH}/Lib/spirv-cross-core.lib"
Library["SpirVCrossGLSL_Debug"] = "%{VULKAN_SDK_PATH}/Lib/spirv-cross-glsld.lib"
Library["SpirVCrossGLSL_Release"] = "%{VULKAN_SDK_PATH}/Lib/spirv-cross-glsl.lib"
newoption {
trigger = "enable-profiling",
description = "Enables profiling support to the build."
}
-- Main projects:
group "Core"
include "core/Xenode/Xenode.premake.lua"
include "core/Xen/Xen.premake.lua"
include "core/XenodeRuntime/XenodeRuntime.premake.lua"
group ""
group "Sandbox"
include "sandbox/SandboxApp/SandboxApp.premake.lua"
group ""
group "Resources"
include "resources/Resources.premake.lua"
group ""
--include "SandboxAppAndroid/SandboxAndroidBuild.lua"