mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-01-13 20:21:48 +00:00
chore: restructure Linker and Unlinker for system testing
This commit is contained in:
57
src/Unlinking.lua
Normal file
57
src/Unlinking.lua
Normal file
@@ -0,0 +1,57 @@
|
||||
Unlinking = {}
|
||||
|
||||
function Unlinking:include(includes)
|
||||
if includes:handle(self:name()) then
|
||||
ZoneCommon:include(includes)
|
||||
includedirs {
|
||||
path.join(ProjectFolder(), "Unlinking"),
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
function Unlinking:link(links)
|
||||
links:add(self:name())
|
||||
links:linkto(Utils)
|
||||
links:linkto(ZoneLoading)
|
||||
links:linkto(ObjLoading)
|
||||
links:linkto(ObjWriting)
|
||||
end
|
||||
|
||||
function Unlinking:use()
|
||||
|
||||
end
|
||||
|
||||
function Unlinking:name()
|
||||
return "Unlinking"
|
||||
end
|
||||
|
||||
function Unlinking: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, "Unlinking/**.h"),
|
||||
path.join(folder, "Unlinking/**.cpp")
|
||||
}
|
||||
|
||||
vpaths {
|
||||
["*"] = {
|
||||
path.join(folder, "Unlinking")
|
||||
}
|
||||
}
|
||||
|
||||
ObjCommon:use()
|
||||
useSourceTemplating("Unlinking")
|
||||
|
||||
self:include(includes)
|
||||
Utils:include(includes)
|
||||
ZoneLoading:include(includes)
|
||||
ObjLoading:include(includes)
|
||||
ObjWriting:include(includes)
|
||||
end
|
||||
Reference in New Issue
Block a user