-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
125 lines (103 loc) · 2.7 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
workspace "HuskyEngine"
architecture "x86_64"
startproject "SandboxGame"
configurations
{
"Debug",
"Release"
}
flags
{
"MultiProcessorCompile"
}
group "submodules"
include "Husky/vendor/imgui"
group ""
project "Husky"
location "Husky"
kind "StaticLib"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir "bin/%{cfg.buildcfg}/%{prj.name}"
objdir "bin-int/%{cfg.buildcfg}/%{prj.name}"
files
{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp",
"%{prj.name}/vendor/imgui_sdl/imgui_sdl.h",
"%{prj.name}/vendor/imgui_sdl/imgui_sdl.cpp"
}
includedirs
{
"%{prj.name}/src",
"%{prj.name}/vendor/SDL2/include",
"%{prj.name}/vendor/SDL2_ttf/include",
"%{prj.name}/vendor/imgui",
"%{prj.name}/vendor/imgui_sdl"
}
libdirs
{
"%{prj.name}/vendor/SDL2/lib/x64",
"%{prj.name}/vendor/SDL2_ttf/lib/x64"
}
links
{
"SDL2.lib",
"SDL2main.lib",
"SDL2_ttf.lib",
"ImGui"
}
filter "system:windows"
systemversion "latest"
postbuildcommands
{
"{COPY} %{prj.location}vendor\\SDL2\\lib\\x64\\SDL2.dll %{wks.location}bin\\%{cfg.buildcfg}\\SandboxGame",
"{COPY} %{prj.location}vendor\\SDL2_ttf\\lib\\x64\\SDL2_ttf.dll %{wks.location}bin\\%{cfg.buildcfg}\\SandboxGame",
"{COPY} %{prj.location}vendor\\SDL2_ttf\\lib\\x64\\libfreetype-6.dll %{wks.location}bin\\%{cfg.buildcfg}\\SandboxGame",
"{COPY} %{prj.location}vendor\\SDL2_ttf\\lib\\x64\\zlib1.dll %{wks.location}bin\\%{cfg.buildcfg}\\SandboxGame"
}
filter "configurations:Debug"
defines "HS_DEBUG"
runtime "Debug"
symbols "on"
filter "configurations:Release"
defines "HS_RELEASE"
runtime "Release"
optimize "on"
project "SandboxGame"
location "SandboxGame"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir "bin/%{cfg.buildcfg}/%{prj.name}"
objdir "bin-int/%{cfg.buildcfg}/%{prj.name}"
files
{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp"
}
includedirs
{
"Husky/vendor/SDL2/include",
"Husky/vendor/SDL2_ttf/include",
"Husky/src"
}
libdirs
{
"Husky/vendor/SDL2/lib/x64",
"Husky/vendor/SDL2_ttf/lib/x64"
}
links
{
"Husky"
}
filter "configurations:Debug"
defines "HS_DEBUG"
runtime "Debug"
symbols "on"
filter "configurations:Release"
defines "HS_RELEASE"
runtime "Release"
optimize "on"