[+] Linkable libraries can now ask for the dependent to compile a script

-> Consider libraries that require some kind of static initialization
  -> Used for AuroraRuntime c++ allocator overloads
[*] Fix copy by abs
This commit is contained in:
Reece Wilson 2021-07-02 06:27:32 +01:00
parent 112a98c3e1
commit 9f5fa6d8e4
3 changed files with 10 additions and 3 deletions

View File

@ -170,9 +170,15 @@ function JsonProcessor(info)
forEach(result.actions, handleActionsForLinks, this)
end
local handleSourcesRel = function(source, path)
files(path .. "/" .. source)
end
local handleLink = function(this)
dependson (this.info.name)
forEach(result.linkSources, handleSourcesRel, info.path)
local erase = false;
if (not _G["_linkingcur"]) then
erase = true

View File

@ -19,13 +19,13 @@ local addDest = function(name, projectType, dest)
filter {}
else
filter "configurations:Debug"
projectCopyCmds(name, projectType, "debug", path)
projectCopyCmds(name, projectType, "debug", dest)
filter "configurations:Release"
projectCopyCmds(name, projectType, "release", path)
projectCopyCmds(name, projectType, "release", dest)
filter "configurations:Ship"
projectCopyCmds(name, projectType, "ship", path)
projectCopyCmds(name, projectType, "ship", dest)
filter {}
end

View File

@ -334,6 +334,7 @@ function isWeakCircularReference(depName)
return
end
-- TODO: recursion
for index, value in ipairs(dep.deps) do
if value == curName then
return true