iw4x-client/premake/udis86.lua

44 lines
939 B
Lua
Raw Normal View History

2017-02-21 14:03:52 -05:00
udis86 = {
settings = nil
}
function udis86.setup(settings)
if not settings.source then error("Missing source.") end
udis86.settings = settings
if not udis86.settings.defines then udis86.settings.defines = {} end
end
function udis86.import()
if not udis86.settings then error("You need to call udis86.setup first") end
links { "udis86" }
udis86.includes()
end
function udis86.includes()
if not udis86.settings then error("You need to call udis86.setup first") end
includedirs { udis86.settings.source }
defines(udis86.settings.defines)
end
function udis86.project()
if not udis86.settings then error("You need to call udis86.setup first") end
project "udis86"
language "C"
udis86.includes()
files
{
path.join(udis86.settings.source, "libudis86/*.h"),
path.join(udis86.settings.source, "libudis86/*.c"),
}
-- not our code, ignore POSIX usage warnings for now
warnings "Off"
2017-06-13 11:00:23 -04:00
kind "StaticLib"
2017-02-21 14:03:52 -05:00
end