This repository was archived by the owner on Jun 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
78 lines (64 loc) · 1.71 KB
/
premake5.lua
File metadata and controls
78 lines (64 loc) · 1.71 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
-- Directory paths
Outputdir = "Win64-%{cfg.buildcfg}"
TargetDir = "Bin/" ..Outputdir.. "/%{prj.name}"
ObjDir = "Bin/" ..Outputdir.. "/Int/%{prj.name}"
CppDialect = "C++20"
-- Workspace
workspace "Parrot"
architecture "x64"
configurations { "Debug", "Optimized", "Dist" }
startproject "Parrot"
-- Includes
include "Parrot/Vendor/GLFW"
include "Parrot/Vendor/GLAD"
project "Parrot"
location "%{prj.name}"
kind "Staticlib"
language "C++"
staticruntime "off"
targetdir(TargetDir)
objdir(ObjDir)
cppdialect(CppDialect)
files { "%{prj.name}/Src/**", "%{prj.name}/Vendor/Stb/*"}
includedirs { "$(ProjectDir)", "$(ProjectDir)Src/" }
includedirs { "$(ProjectDir)Vendor/GLAD/Include/", "$(ProjectDir)Vendor/GLFW/Include/" }
links { "Opengl32.lib", "GLFW", "GLAD" }
pchheader "Ptpch.hpp"
pchsource "%{prj.name}/Src/Ptpch.cpp"
defines { "PT_OPENGL", "PT_GLFW" }
filter "configurations:Debug"
runtime "Debug"
symbols "on"
defines { "PT_DEBUG" }
filter "configurations:Optimized"
runtime "Release"
optimize "on"
defines { "PT_OPTIMIZED" }
filter "configurations:Dist"
runtime "Release"
optimize "on"
defines { "PT_DIST" }
project "Sandbox"
location "%{prj.name}"
kind "ConsoleApp"
language "C++"
targetdir(TargetDir)
objdir(ObjDir)
cppdialect(CppDialect)
files { "%{prj.name}/Src/**" }
includedirs { "$(ProjectDir)Src/", "Parrot/Src/"}
links { "Parrot" }
ignoredefaultlibraries { "LIBCMTD" }
defines { "PT_OPENGL" }
filter "configurations:Debug"
runtime "Debug"
symbols "on"
defines { "PT_DEBUG" }
filter "configurations:Optimized"
runtime "Release"
optimize "on"
defines { "PT_OPTIMIZED" }
filter "configurations:Dist"
runtime "Release"
optimize "on"
defines { "PT_DIST" }