-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
63 lines (52 loc) · 1.55 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
Solution.AddProject("GLFW", "Dependencies/GLFW")
Solution.AddProject("Glad", "Dependencies/Glad")
Solution.AddProject("ImGui", "Dependencies/ImGui")
group "Dependencies"
include (Solution.Projects["GLFW"].Path)
include (Solution.Projects["Glad"].Path)
include (Solution.Projects["ImGui"].Path)
group ""
Solution.Projects["Blackbird"].PlatformDefineName = "BLACKBIRD"
Solution.Projects["Blackbird"].Type = "StaticLib"
Solution.Projects["Blackbird"].IncludeDirs = {
"%{Solution.Projects.Blackbird.Path}/",
"%{Solution.Projects.Blackbird.Path}/src/",
"%{Solution.Projects.Blackbird.Path}/Dependencies",
"%{Solution.Projects.Blackbird.Path}/Dependencies/ImGui",
}
Solution.Projects["Blackbird"].Defines = {
"GLFW_INCLUDE_NONE"
}
Solution.Projects["Blackbird"].ProjectDependencies = {
"ProjectCore",
"LittleECS",
"GLFW",
"Glad",
"ImGui"
}
project "Blackbird"
kind (Solution.Projects["Blackbird"].Type)
language "C++"
cppdialect "C++20"
targetdir (Solution.Path.ProjectTargetDirectory)
objdir (Solution.Path.ProjectObjectDirectory)
includedirs {
"%{Solution.Projects.Blackbird.Path}/Dependencies/GLFW/include",
"%{Solution.Projects.Blackbird.Path}/Dependencies/Glad/include"
}
files {
"src/**.h",
"src/**.cpp",
"Dependencies/stb_image/**.h",
"Dependencies/stb_image/**.cpp",
"Dependencies/glm/glm/**.hpp",
"Dependencies/glm/glm/**.inl",
"Dependencies/Glad/include/glad.h",
"Dependencies/Glad/src/glad.c",
}
links {
"opengl32.lib"
}
Solution.Project("Blackbird")
filter "system:windows"
defines "_CRT_SECURE_NO_WARNINGS"