-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake5.lua
100 lines (81 loc) · 1.67 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
workspace "OpenGl Project"
location "./solution/"
startproject "OpenGl Project"
targetdir "./Build/bin/%{cfg.buildcfg}/%{cfg.platform}/"
objdir "./Build/obj/%{cfg.buildcfg}/%{cfg.platform}/"
buildlog "./Build/obj/%{cfg.platform}/%{cfg.buildcfg}/%{prj.name}.log"
largeaddressaware "on"
editandcontinue "off"
staticruntime "on"
systemversion "latest"
characterset "unicode"
warnings "extra"
flags {
"shadowedvariables",
"multiprocessorcompile",
"undefinedidentifiers",
}
platforms {
"Win32",
}
configurations {
"Release",
"Debug",
}
--x86
filter "platforms:Win32"
architecture "x86"
--end
filter "Release"
defines "NDEBUG"
optimize "full"
runtime "release"
symbols "off"
filter "Debug"
defines "DEBUG"
optimize "debug"
runtime "debug"
symbols "on"
project "OpenGL Project"
targetname "OpenGl Project"
language "c++"
cppdialect "c++20"
warnings "extra"
kind "consoleapp"
filter "platforms:Win32"
syslibdirs {
"./DevLib/SDL/lib/",
"./DevLib/SDL/dlls/",
}
filter {}
links {
"SDL2",
"SDL2main",
"SDL2_image",
"opengl32",
}
includedirs {
"./DevLib/SDL/include/",
"./OpenGL/",
}
files {
"./OpenGL/**",
"./**.md",
"./**.lua",
"./**.gitignore",
"./**.gitattributes",
"./**.txt",
}
removefiles {
"./OpenGl/**.TMP",
"./Build/**"
}
vpaths {
--["Headers"] = {"**.h", "**.hpp"},
--["Sources"] = {"**.c", "**.cpp"},
["Docs"] = {"**.txt", "**.md", "**.lua", "**.gitignore", "**.gitattributes"}
--["Shaders"] = {"**.frag", "**.vert"}
}
postbuildcommands{
{"{COPY} ../DevLib/SDL/dlls/**.dll ../Build//bin//%{cfg.buildcfg}//%{cfg.platform}//"}
}