-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake4.lua
73 lines (62 loc) · 1.33 KB
/
premake4.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
#!lua
includeDirList = {
"../shared",
"../shared/include",
"../shared/gl3w",
"../shared/imgui"
}
libDirectories = {
"../lib"
}
if os.get() == "macosx" then
linkLibs = {
"cs488-framework",
"imgui",
"glfw3",
"lua",
"lodepng"
}
end
if os.get() == "linux" then
linkLibs = {
"cs488-framework",
"imgui",
"glfw3",
"lua",
"lodepng",
"GL",
"Xinerama",
"Xcursor",
"Xxf86vm",
"Xi",
"Xrandr",
"X11",
"stdc++",
"dl",
"pthread"
}
end
if os.get() == "macosx" then
linkOptionList = { "-framework IOKit", "-framework Cocoa", "-framework CoreVideo", "-framework OpenGL" }
end
buildOptions = {"-std=c++11"}
solution "CS488-Projects"
configurations { "Debug", "Release" }
project "A5"
kind "ConsoleApp"
language "C++"
location "build"
objdir "build"
targetdir "."
buildoptions (buildOptions)
libdirs (libDirectories)
links (linkLibs)
linkoptions (linkOptionList)
includedirs (includeDirList)
files { "*.cpp" }
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols" }
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize" }