-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpremake5.lua
More file actions
56 lines (49 loc) · 2.04 KB
/
premake5.lua
File metadata and controls
56 lines (49 loc) · 2.04 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
workspace "LNEngine"
architecture "x64"
configurations
{
"Debug",
"Release",
"Dist"
}
OutputDir = "%{cfg.buildcfg}/%{cfg.system}-%{cfg.architecture}"
IncludeDir = {}
IncludeDir["GLM"] = "%{wks.location}/LNEngine/vendor/GLM"
IncludeDir["SPDLOG"] = "%{wks.location}/LNEngine/vendor/SPDLOG/spdlog/include"
IncludeDir["GLFW"] = "%{wks.location}/LNEngine/vendor/GLFW/glfw/include"
IncludeDir["VkBootstrap"] = "%{wks.location}/LNEngine/vendor/VKBOOTSTRAP/vkbootstrap/src"
IncludeDir["VMA"] = "%{wks.location}/LNEngine/vendor/VMA"
IncludeDir["ImGui"] = "%{wks.location}/LNEngine/vendor/IMGUI"
IncludeDir["STB"] = "%{wks.location}/LNEngine/vendor/STB"
IncludeDir["enkiTS"] = "%{wks.location}/LNEngine/vendor/ENKITS"
IncludeDir["Assimp"] = "%{wks.location}/LNEngine/vendor/ASSIMP/include"
IncludeDir["Tracy"] = "%{wks.location}/LNEngine/vendor/TRACY/tracy/public"
IncludeDir["Boost"] = "%{wks.location}/LNEngine/vendor/BOOST/include"
IncludeDir["GoogleTest"] = "%{wks.location}/LNTest/vendor/GTEST/gtest/googletest/include"
IncludeDir["MeshOptimizer"] = "%{wks.location}/LNEngine/vendor/MESHOPT"
LibDir = {}
LibDir["Assimp"] = "%{wks.location}/LNEngine/vendor/ASSIMP/bin/%{cfg.buildcfg}"
function CopyDLLs()
-- Use a filter to apply settings only to Windows
filter "system:windows"
postbuildcommands
{
"{COPY} \"%{wks.location}/LNEngine/vendor/ASSIMP/bin/%{cfg.buildcfg}/assimp-vc143-mt*.dll\" \"%{cfg.targetdir}\""
}
-- Clear the filter to avoid affecting other settings
filter {}
end
group "Vendors"
include "LNEngine/vendor/GLM/glm.lua"
include "LNEngine/vendor/SPDLOG/spdlog.lua"
include "LNEngine/vendor/GLFW/glfw.lua"
include "LNEngine/vendor/VKBOOTSTRAP/vkbootstrap.lua"
include "LNEngine/vendor/IMGUI/imgui.lua"
include "LNEngine/vendor/STB/stb.lua"
include "LNEngine/vendor/ENKITS/enkiTS.lua"
include "LNTest/vendor/GTEST/gtest.lua"
include "LNEngine/vendor/MESHOPT/meshopt.lua"
group""
include "LNEngine"
include "LNApp"
include "LNTest/tests.lua"