-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake4.lua
44 lines (33 loc) · 1.15 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
solution "Pokuelike"
configurations { "Debug", "Release" }
platforms { "native", "x32", "x64" }
---------------------------------------
-- Static Library
project "test"
language "C++"
buildoptions { "-std=c++11" }
includedirs { "pkg/include/tcod" }
files { "code/src/**" }
targetdir "bin"
targetname "pokuelike"
---------------------------------------
-- Link static libraries and config
libdirs { "pkg/lib" }
links { "tcod", "tcodxx" }
configuration "linux"
--links { "GL", "X11", "Xrandr", "pthread", "m", "glfw" }
configuration "windows"
--links { "glfw", "opengl32" }
configuration { "native or x64" }
targetsuffix "64"
configuration "x32"
targetsuffix "32"
---------------------------------------
-- Build rules
configuration "Debug"
kind "ConsoleApp"
defines "DEBUG"
flags { "Symbols", "ExtraWarnings" }
configuration "Release"
kind "WindowedApp"
flags { "Optimize", "ExtraWarnings" }