forked from SanderMertens/bake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
46 lines (32 loc) · 1.06 KB
/
premake5.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
workspace "bake"
configurations { "debug", "release" }
location ("build")
filter { "action:gmake" }
buildoptions { "-std=c99", "-fPIC", "-D_XOPEN_SOURCE=600"}
project "bake"
kind "ConsoleApp"
language "C"
targetdir "."
files { "include/*.h", "src/*.c", "util/src/*.c", "util/include/*.h",
"util/include/bake-util/*.h"
}
includedirs { "include", "util/include" }
objdir (".bake_cache")
defines { "BAKE_IMPL" }
filter { "action:gmake" }
files { "util/src/posix/*.c", "util/include/bake-util/posix/*.h" }
filter { "action:gmake2" }
files { "util/src/win/*.c", "util/include/bake-util/win/*.h" }
filter "debug"
defines { "DEBUG" }
symbols "On"
filter "release"
defines { "NDEBUG" }
optimize "On"
filter { "system:macosx", "action:gmake"}
toolset "clang"
links { "dl", "pthread" }
filter { "system:linux", "action:gmake"}
links { "rt", "dl", "pthread", "m" }
filter { "action:gmake2" }
links { "shlwapi", "imagehlp", "dbghelp", "ws2_32" }