forked from GameJam/thegrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake4.lua
72 lines (64 loc) · 1.25 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
local platform
if os.get() == "windows" then
platform = "win32"
elseif os.get() == "macosx" then
platform = "osx"
else
error("unrecognized platform")
end
solution "TheGrid"
configurations { "Debug", "Release" }
location "build"
debugdir "working"
if platform == "win32" then
defines { "_CRT_SECURE_NO_WARNINGS", "WIN32" }
end
vpaths {
["Header Files"] = { "**.h" },
["Source Files"] = { "**.cpp" },
}
project "TheGrid"
kind "WindowedApp"
location "build"
language "C++"
files {
"src/*.h",
"src/*.cpp",
"src/" .. platform .. "/*.cpp",
"src/" .. platform .. "/*.h"
}
includedirs {
"libs/SDL/include",
"libs/FreeImage/include",
"libs/enet-1.3.6/include",
"libs/bass/include",
}
libdirs {
"libs/SDL/lib",
"libs/FreeImage/lib",
"libs/enet-1.3.6",
"libs/bass/lib",
}
links {
"SDL",
"SDLmain",
"freeimage",
"enet",
"bass",
}
if platform == "win32" then
links {
"opengl32",
"glu32",
"ws2_32",
"winmm",
}
end
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols" }
targetdir "bin/debug"
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize" }
targetdir "bin/release"