-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
104 lines (81 loc) · 2.89 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
workspace "HazelRoids"
architecture "x86_64"
startproject "HazelRoids"
configurations {
"Debug",
"Release",
"Dist"
}
flags
{
"MultiProcessorCompile",
}
outputdir = "%{cfg.buildcfg}_%{cfg.system}_%{cfg.architecture}"
IncludeDir = {}
IncludeDir["engine"] = "D:/devlib/Hazel"
IncludeDir["vendor"] = "%{IncludeDir.engine}/Hazel/vendor"
IncludeDir["glm"] = "%{IncludeDir.vendor}/glm"
IncludeDir["log"] = "%{IncludeDir.vendor}/spdlog/include"
IncludeDir["misc"] = "vendor"
group "Dependencies"
group""
project "HazelRoids"
location "HazelRoids"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "On"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin/int/" .. outputdir .. "/%{prj.name}")
--pchheader "exgpch.h"
--pchsource "HazelRoids/src/exgpch.cpp"
defines {
}
files {
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp",
}
includedirs {
"%{IncludeDir.engine}/Hazel/src",
"%{IncludeDir.glm}",
"%{IncludeDir.log}",
"%{prj.name}/src",
}
links {
"Hazel.lib",
"GLFW.lib",
"Glad.lib",
"ImGui.lib",
}
filter "system:windows"
systemversion "latest"
filter "configurations:Debug"
defines "HZ_DEBUG"
runtime "Debug"
symbols "On"
libdirs {
"%{IncludeDir.engine}/bin/Debug-windows-x86_64/Hazel",
"%{IncludeDir.vendor}/glfw/bin/Debug-windows-x86_64/GLFW",
"%{IncludeDir.vendor}/glad/bin/Debug-windows-x86_64/Glad",
"%{IncludeDir.vendor}/imgui/bin/Debug-windows-x86_64/ImGui",
}
filter "configurations:Release"
defines "HZ_RELEASE"
runtime "Release"
optimize "On"
libdirs {
"%{IncludeDir.engine}/bin/Release-windows-x86_64/Hazel/",
"%{IncludeDir.vendor}/glfw/bin/Release-windows-x86_64/GLFW",
"%{IncludeDir.vendor}/glad/bin/Release-windows-x86_64/Glad",
"%{IncludeDir.vendor}/imgui/bin/Release-windows-x86_64/ImGui",
}
filter "configurations:Dist"
defines "HZ_DIST"
runtime "Release"
optimize "On"
libdirs {
"%{IncludeDir.engine}/bin/Dist-windows-x86_64/Hazel/",
"%{IncludeDir.vendor}/glfw/bin/Dist-windows-x86_64/GLFW",
"%{IncludeDir.vendor}/glad/bin/Dist-windows-x86_64/Glad",
"%{IncludeDir.vendor}/imgui/bin/Dist-windows-x86_64/ImGui",
}