[+] 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:
parent
112a98c3e1
commit
9f5fa6d8e4
@ -170,9 +170,15 @@ function JsonProcessor(info)
|
|||||||
forEach(result.actions, handleActionsForLinks, this)
|
forEach(result.actions, handleActionsForLinks, this)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local handleSourcesRel = function(source, path)
|
||||||
|
files(path .. "/" .. source)
|
||||||
|
end
|
||||||
|
|
||||||
local handleLink = function(this)
|
local handleLink = function(this)
|
||||||
dependson (this.info.name)
|
dependson (this.info.name)
|
||||||
|
|
||||||
|
forEach(result.linkSources, handleSourcesRel, info.path)
|
||||||
|
|
||||||
local erase = false;
|
local erase = false;
|
||||||
if (not _G["_linkingcur"]) then
|
if (not _G["_linkingcur"]) then
|
||||||
erase = true
|
erase = true
|
||||||
|
@ -19,13 +19,13 @@ local addDest = function(name, projectType, dest)
|
|||||||
filter {}
|
filter {}
|
||||||
else
|
else
|
||||||
filter "configurations:Debug"
|
filter "configurations:Debug"
|
||||||
projectCopyCmds(name, projectType, "debug", path)
|
projectCopyCmds(name, projectType, "debug", dest)
|
||||||
|
|
||||||
filter "configurations:Release"
|
filter "configurations:Release"
|
||||||
projectCopyCmds(name, projectType, "release", path)
|
projectCopyCmds(name, projectType, "release", dest)
|
||||||
|
|
||||||
filter "configurations:Ship"
|
filter "configurations:Ship"
|
||||||
projectCopyCmds(name, projectType, "ship", path)
|
projectCopyCmds(name, projectType, "ship", dest)
|
||||||
|
|
||||||
filter {}
|
filter {}
|
||||||
end
|
end
|
||||||
|
@ -334,6 +334,7 @@ function isWeakCircularReference(depName)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- TODO: recursion
|
||||||
for index, value in ipairs(dep.deps) do
|
for index, value in ipairs(dep.deps) do
|
||||||
if value == curName then
|
if value == curName then
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user