-
Notifications
You must be signed in to change notification settings - Fork 1
/
premake4.lua
86 lines (68 loc) · 2.34 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
74
75
76
77
78
79
80
81
82
83
84
85
86
--
-- Premake 4.x build configuration script
--
--
-- Define the project. Put the release configuration first so it will be the
-- default when folks build using the makefile. That way they don't have to
-- worry about the /scripts argument and all that.
--
solution "Eruta"
configurations { "Debug", "Release", "Static" }
project "Eruta"
targetname "eruta"
language "C"
kind "WindowedApp"
flags { "ExtraWarnings"}
includedirs { "include",
"/usr/local/include/lua", "/usr/local/include/chipmunk",
"/usr/local/include" , "/usr/local/include/allegro5" ,
"/usr/include" , "/usr/include/lua",
"/usr/include/chipmunk" , "/usr/include/allegro5",
"/usr/include/libxml2"
}
libdirs { "/usr/lib/i386-linux-gnu", "/usr/local/lib" }
links {
"allegro" , "allegro_main" ,
"allegro_font" ,
"allegro_image" , "allegro_acodec",
"allegro_primitives", "allegro_ttf" ,
"allegro_audio" , "allegro_dialog",
"allegro_memfile" , "allegro_acodec",
"allegro_color" , "allegro_physfs",
"chipmunk" , "lua" ,
"xml2" , "m"
}
files {
"*.txt", "**.lua", "include/**.h", "src/**.c",
}
configuration "Debug"
targetdir "bin"
defines "CONFIG_DEBUG"
flags { "Symbols" }
configuration "Release"
targetdir "bin"
defines "NDEBUG"
flags { "OptimizeSize" }
configuration "Static"
flags { "StaticRuntime" }
--[[
configuration "linux"
defines { "LUA_USE_POSIX", "LUA_USE_DLOPEN" }
links { "m", "dl" }
configuration "macosx"
defines { "LUA_USE_MACOSX" }
configuration { "macosx", "gmake" }
buildoptions { "-mmacosx-version-min=10.1" }
linkoptions { "-lstdc++-static", "-mmacosx-version-min=10.1" }
configuration { "not windows", "not solaris" }
linkoptions { "-rdynamic" }
configuration { "solaris" }
linkoptions { "-Wl,--export-dynamic" }
]]
--
-- A more thorough cleanup.
--
if _ACTION == "clean" then
os.rmdir("bin")
os.rmdir("build")
end