-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinclude_premake5.lua
More file actions
72 lines (59 loc) · 1.09 KB
/
include_premake5.lua
File metadata and controls
72 lines (59 loc) · 1.09 KB
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
if outputdir == nil then
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
end
project "Mathilda"
location "Mathilda/build"
if runIldaMainTest == nil then
kind "StaticLib"
else
kind "ConsoleApp"
end
language "C"
cdialect "C17"
staticruntime "on"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files
{
"%{prj.name}/include/**.h",
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.c"
}
includedirs
{
"%{prj.name}/include",
"%{prj.name}/src"
}
defines
{
"ILDA_HAVE_INLINE"
}
if ILDA_FORCE_LEFT_HANDED == true then
defines
{
"ILDA_FORCE_LEFT_HANDED"
}
end
removefiles { "**source.c" }
filter "configurations:Debug"
defines
{
"ILDA_DEBUG",
"ILDA_ENABLE_ASSERTS"
}
runtime "Debug"
symbols "on"
filter "configurations:Release"
defines
{
"ILDA_RELEASE",
"ILDA_ENABLE_ASSERTS"
}
runtime "Release"
optimize "on"
symbols "on"
filter "configurations:Dist"
defines "ILDA_DIST"
runtime "Release"
optimize "on"
symbols "on"