-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
56 lines (48 loc) · 1.59 KB
/
premake5.lua
File metadata and controls
56 lines (48 loc) · 1.59 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
include "./vendor/premake/premake_customization/solution_items.lua"
workspace "VoicePilot"
architecture "x86_64"
startproject "VoicePilot"
--指定工作区或项目的构建配置集,例如“调试”和“发布”
configurations
{
"Debug",
"Release",
"Dist"
}
solution_items
{
".editorconfig"
}
flags
{
"MultiProcessorCompile"
}
--输出位置 eg: build-Windows-x64
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
-- Include directories relative to root folder (solution directory)
IncludeDir = {}
IncludeDir["GLFW"] = "%{wks.location}/Razel/vendor/GLFW/include"
IncludeDir["Glad"] = "%{wks.location}/Razel/vendor/Glad/include"
IncludeDir["ImGui"] = "%{wks.location}/Razel/vendor/imgui"
IncludeDir["glm"] = "%{wks.location}/Razel/vendor/glm"
IncludeDir["stb_image"] = "%{wks.location}/Razel/vendor/stb_image"
IncludeDir["entt"] = "%{wks.location}/Razel/vendor/entt/include"
IncludeDir["yaml_cpp"] = "%{wks.location}/Razel/vendor/yaml-cpp/include"
IncludeDir["ImGuizmo"] = "%{wks.location}/Razel/vendor/ImGuizmo"
IncludeDir["Box2D"] = "%{wks.location}/Razel/vendor/Box2D/include"
IncludeDir["assimp"] = "%{wks.location}/Razel/vendor/assimp/include"
filter "action:vs*"
buildoptions { "/utf-8" , "/wd4828" }
filter {}
externalwarnings "Off"
--查找并执行另一个脚本文件,也就是查找路径下的premake文件并将内容拷贝到此处(如果之前尚未运行过)
group "Dependencies"
include "vendor/premake"
include "Razel/vendor/Box2D"
include "Razel/vendor/GLFW"
include "Razel/vendor/Glad"
include "Razel/vendor/imgui"
include "Razel/vendor/yaml-cpp"
group ""
include "Razel"
include "VoicePilot"