-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
61 lines (51 loc) · 1.39 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
workspace "Pong"
architecture "x64"
configurations
{
"Debug",
"Release"
}
project "Pong"
location "Pong"
language "C++"
cppdialect "C++20"
targetdir ("bin/%{cfg.buildcfg}-%{cfg.architecture}")
objdir ("bin/intermediates/%{cfg.buildcfg}-%{cfg.architecture}")
files
{
"%{prj.name}/src/**.cpp",
"%{prj.name}/src/**.h"
}
includedirs
{
"$(SolutionDir)/dependencies/include"
}
libdirs
{
"$(SolutionDir)/dependencies/lib"
}
links
{
"opengl32.lib",
"glew32s.lib",
"glfw3.lib",
"freetype.lib"
}
postbuildcommands
{
"{COPY} %{wks.location}dependencies/lib/freetype.dll %{cfg.targetdir}", -- Copies the freetype DLL to the build directory
"{MKDIR} %{cfg.targetdir}/fonts", -- Makes fonts folder
"{COPYDIR} %{prj.location}fonts %{cfg.targetdir}/fonts" -- Copies fonts to fonts folder
}
filter "system:windows"
systemversion "latest"
filter "configurations:Debug"
defines { "DEBUG", "GLEW_STATIC" }
symbols "On"
kind "ConsoleApp"
entrypoint "mainCRTStartup"
filter "configurations:Release"
defines { "NDEBUG", "GLEW_STATIC" }
optimize "On"
kind "WindowedApp"
entrypoint "mainCRTStartup"