-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
50 lines (45 loc) · 988 Bytes
/
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
47
48
49
if _ACTION == nil then
return
end
solution "objzero"
configurations { "Release", "Debug" }
if _OPTIONS["cc"] ~= nil then
location(path.join("build", _ACTION) .. "_" .. _OPTIONS["cc"])
else
location(path.join("build", _ACTION))
end
platforms { "x86_64", "x86" }
startproject "example"
filter "platforms:x86"
architecture "x86"
filter "platforms:x86_64"
architecture "x86_64"
filter "configurations:Debug*"
defines { "_DEBUG" }
optimize "Debug"
symbols "On"
filter "configurations:Release"
defines "NDEBUG"
optimize "Full"
project "objzero"
kind "StaticLib"
language "C"
cdialect "C99"
warnings "Extra"
files { "objzero.c", "objzero.h" }
project "example"
kind "ConsoleApp"
language "C"
cdialect "C99"
warnings "Extra"
files { "example.c" }
links { "objzero" }
filter "system:linux"
links { "m" }
project "tests"
kind "ConsoleApp"
language "C"
cdialect "C99"
files { "tests.c" }
filter "system:linux"
links { "m" }