-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake4.lua
64 lines (53 loc) · 1.19 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
#!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",
"lua",
"lodepng",
"stdc++",
"dl",
"pthread"
}
end
if os.get() == "macosx" then
linkOptionList = { "-framework IOKit", "-framework Cocoa", "-framework CoreVideo", "-framework OpenGL" }
end
buildOptions = {"-std=c++14", "-O3"}
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" }