-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake4.lua
61 lines (50 loc) · 1.41 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
solution "Spielbub"
configurations { "Debug", "Release" }
includedirs { "/usr/local/include", "include" }
libdirs { "/usr/local/lib" }
flags { "FatalWarnings" }
buildoptions { "-ansi", "-std=c2x", "-Wextra", "-Wno-gnu-case-range" }
if os.get() == "linux" then
buildoptions { "-D_XOPEN_SOURCE=600"}
end
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols" }
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize" }
project "Spielbub"
kind "ConsoleApp"
language "C"
files { "src/debugger/*.c" }
links { "Spiellib" }
if os.get() == "macosx" then
links { "Cocoa.framework" }
elseif os.get() == "linux" then
links {"m"}
end
links { "SDL2" }
project "tests"
kind "ConsoleApp"
language "C"
files { "src/tests/*.c" }
links { "Spiellib", "check" }
if os.get() == "macosx" then
links { "Cocoa.framework" }
elseif os.get() == "linux" then
links { "m" }
end
links { "SDL2" }
project "Spiellib"
kind "StaticLib"
language "C"
files { "src/*.h", "src/*.c", "src/graphics/*.c" }
project "sdltest"
kind "ConsoleApp"
links { "Spiellib" }
language "C"
files "sdl.c"
if os.get() == "linux" then
links { "m" }
end
links { "SDL2" }