2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-12-27 20:41:49 +00:00

chore: restructure Linker and Unlinker for system testing

This commit is contained in:
Jan Laupetin
2025-12-23 12:49:22 +01:00
parent fd9c57e15a
commit a1693b2eb8
32 changed files with 1089 additions and 982 deletions

49
src/LinkerCli.lua Normal file
View File

@@ -0,0 +1,49 @@
LinkerCli = {}
function LinkerCli:include(includes)
if includes:handle(self:name()) then
includedirs {
path.join(ProjectFolder(), "LinkerCli")
}
end
end
function LinkerCli:link(links)
end
function LinkerCli:use()
dependson(self:name())
end
function LinkerCli:name()
return "LinkerCli"
end
function LinkerCli:project()
local folder = ProjectFolder()
local includes = Includes:create()
local links = Links:create()
project(self:name())
targetdir(TargetDirectoryBin)
targetname "Linker"
location "%{wks.location}/src/%{prj.name}"
kind "ConsoleApp"
language "C++"
files {
path.join(folder, "LinkerCli/**.h"),
path.join(folder, "LinkerCli/**.cpp")
}
self:include(includes)
Utils:include(includes)
Linking:include(includes)
Raw:use()
links:linkto(Utils)
links:linkto(Linking)
links:linkall()
end