-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
154 lines (127 loc) · 2.94 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
workspace "PhysicsEngine"
architecture "x86_64"
startproject "PhysicsEngine"
configurations
{
"Debug",
"Release",
"Distrib"
}
flags
{
"MultiProcessorCompile"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
IncludeDir = {}
IncludeDir["GLFW"] = "Eis/Eis/vendor/GLFW/include"
IncludeDir["Glad"] = "Eis/Eis/vendor/Glad/include"
IncludeDir["ImGui"] = "Eis/Eis/vendor/imgui"
IncludeDir["glm"] = "Eis/Eis/vendor/glm"
IncludeDir["stb_image"] = "Eis/Eis/vendor/stb_image"
IncludeDir["stb_image_resize"] = "Eis/Eis/vendor/stb_image_resize"
IncludeDir["stb_image_write"] = "Eis/Eis/vendor/stb_image_write"
group "Dependencies"
include "Eis/Eis/vendor/GLFW"
include "Eis/Eis/vendor/Glad"
include "Eis/Eis/vendor/imgui"
group ""
project "Eis"
location "Eis/Eis"
kind "StaticLib"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
pchheader "Eispch.h"
pchsource "Eis/Eis/src/Eispch.cpp"
files
{
"Eis/%{prj.name}/src/**.h",
"Eis/%{prj.name}/src/**.cpp",
"Eis/%{prj.name}/vendor/stb_image/**.h",
"Eis/%{prj.name}/vendor/stb_image/**.cpp",
"Eis/%{prj.name}/vendor/stb_image_resize/**.h",
"Eis/%{prj.name}/vendor/stb_image_resize/**.cpp",
"Eis/%{prj.name}/vendor/stb_image_write/**.h",
"Eis/%{prj.name}/vendor/stb_image_write/**.cpp",
"Eis/%{prj.name}/vendor/glm/glm/**.hpp",
"Eis/%{prj.name}/vendor/glm/glm/**.inl"
}
includedirs
{
"Eis/%{prj.name}/src",
"Eis/%{prj.name}/vendor/spdlog/include",
"%{IncludeDir.GLFW}",
"%{IncludeDir.Glad}",
"%{IncludeDir.ImGui}",
"%{IncludeDir.glm}",
"%{IncludeDir.stb_image}",
"%{IncludeDir.stb_image_resize}",
"%{IncludeDir.stb_image_write}"
}
links
{
"GLFW",
"Glad",
"ImGui",
"opengl32.lib"
}
filter "system:windows"
systemversion "latest"
defines
{
"GLFW_INCLUDE_NONE"
}
filter "configurations:Debug"
defines "EIS_DEBUG"
runtime "Debug"
symbols "on"
filter "configurations:Release"
defines "EIS_RELEASE"
runtime "Release"
optimize "on"
filter "configurations:Distrib"
defines "EIS_DISTRIB"
runtime "Release"
optimize "on"
project "PhysicsEngine"
location "PhysicsEngine"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files
{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp",
"%{prj.name}/src/**.hpp"
}
includedirs
{
"Eis/Eis/src",
"Eis/Eis/vendor/spdlog/include",
"Eis/Eis/vendor/imgui",
"%{IncludeDir.glm}",
"%{prj.name}/src"
}
links
{
"Eis"
}
filter "system:windows"
systemversion "latest"
filter "configurations:Debug"
defines "EIS_DEBUG"
runtime "Debug"
symbols "on"
filter "configurations:Release"
defines "EIS_RELEASE"
runtime "Release"
optimize "on"
filter "configurations:Distrib"
defines "EIS_DISTRIB"
runtime "Release"
optimize "on"