-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpremake4.lua
More file actions
41 lines (32 loc) · 1.03 KB
/
premake4.lua
File metadata and controls
41 lines (32 loc) · 1.03 KB
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
solution "roguelike"
configurations { "Debug", "Release" }
flags { "ExtraWarnings", "FatalWarnings" }
--includedirs { "" }
--libdirs { "" }
-- Platform-specific options
configuration { "gmake" }
buildoptions { "-std=c99", "-pedantic" }
configuration { "windows" }
defines { "WINDOWS" }
configuration { "linux" }
defines { "LINUX" }
links { "m", "rt" }
-- Configuration-specific options
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols" }
configuration "Release"
defines { "NDEBUG","RELEASE_BUILD" }
flags { "Optimize" }
-- Client project
project "game"
kind "ConsoleApp"
language "C"
files { "src/**.h", "src/**.c" }
configuration "windows"
-- TODO: Remove hard-coded paths
libdirs { "C:/codelibs/pdcurses/lib/" }
includedirs { "C:/codelibs/pdcurses/include/" }
links { "pdcurses" }
configuration "linux"
links { "ncurses" }