OpenAssetTools/src/ZoneCommon.lua
2021-03-16 20:42:48 +01:00

50 lines
943 B
Lua

ZoneCommon = {}
function ZoneCommon:include(includes)
if includes:handle(self:name()) then
includedirs {
path.join(ProjectFolder(), "ZoneCommon")
}
Utils:include(includes)
Common:include(includes)
ObjCommon:include(includes)
Parser:include(includes)
Crypto:include(includes)
end
end
function ZoneCommon:link(links)
links:add(self:name())
links:linkto(Common)
links:linkto(Crypto)
links:linkto(ObjCommon)
links:linkto(Parser)
links:linkto(Utils)
end
function ZoneCommon:use()
end
function ZoneCommon:name()
return "ZoneCommon"
end
function ZoneCommon:project()
local folder = ProjectFolder()
local includes = Includes:create()
project(self:name())
targetdir(TargetDirectoryLib)
location "%{wks.location}/src/%{prj.name}"
kind "StaticLib"
language "C++"
files {
path.join(folder, "ZoneCommon/**.h"),
path.join(folder, "ZoneCommon/**.cpp")
}
self:include(includes)
end