[*] Fix array handling sourcePaths and includes (icu)

This commit is contained in:
Reece Wilson 2022-03-07 22:20:24 +00:00
parent 32a918011f
commit 2505140cb3

View File

@ -105,7 +105,9 @@ local function auBlockProjectKeyDefines(processor, value)
end
local function auBlockProjectKeyIncludes(processor, value, map, tasks, inc)
_includeDirectoryEx(processor:getMeta().path .. "/" .. value, not inc)
filterForKey(value, "value", function(value)
_includeDirectoryEx(processor:getMeta().path .. "/" .. value, not inc)
end, true)
end
local function auBlockProjectKeyFeatures(processor, value)
@ -123,17 +125,19 @@ local function auBlockProjectKeySources(processor, value)
end
local function auBlockProjectKeySourcePaths(processor, value)
local source = value
local path = processor:getMeta().path
files
{
path .. "/" .. source .. "/**.*pp",
path .. "/" .. source .. "/**.inl",
path .. "/" .. source .. "/**.c",
path .. "/" .. source .. "/**.cc",
path .. "/" .. source .. "/**.h",
path .. "/" .. source .. "/**.masm"
}
filterForKey(value, "path", function(value)
local source = value
local path = processor:getMeta().path
files
{
path .. "/" .. source .. "/**.*pp",
path .. "/" .. source .. "/**.inl",
path .. "/" .. source .. "/**.c",
path .. "/" .. source .. "/**.cc",
path .. "/" .. source .. "/**.h",
path .. "/" .. source .. "/**.masm"
}
end, true)
end
local function auBlockProjectKeyEval(processor, value, map, tasksMask)