xcode4: Fix missing link of sibling project with custom targetextension
When a node category cannot be determined by extension, use the configuration kind when available. Add unit test to illustrate the case.
This commit is contained in:
parent
e0af9ba2b2
commit
1ce82af4d9
@ -198,6 +198,24 @@
|
|||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function suite.PBXFrameworksBuildPhase_ListsDependencies_OnSharedLibWithTargetExtension()
|
||||||
|
kind "SharedLib"
|
||||||
|
targetextension ".plugin"
|
||||||
|
prepare()
|
||||||
|
xcode.PBXFrameworksBuildPhase(tr)
|
||||||
|
test.capture [[
|
||||||
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
|
9FDD37564328C0885DF98D96 /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
6B7205267D294518F2973366 /* libMyProject2-d.plugin in Frameworks */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
]]
|
||||||
|
end
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
-- PBXCopyFilesBuildPhaseForEmbedFrameworks tests
|
-- PBXCopyFilesBuildPhaseForEmbedFrameworks tests
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
@ -46,6 +46,8 @@
|
|||||||
}
|
}
|
||||||
if node.isResource then
|
if node.isResource then
|
||||||
return "Resources"
|
return "Resources"
|
||||||
|
elseif node.cfg and (node.cfg.kind == p.SHAREDLIB or node.cfg.kind == p.STATICLIB) then
|
||||||
|
return "Frameworks"
|
||||||
end
|
end
|
||||||
return categories[path.getextension(node.name)]
|
return categories[path.getextension(node.name)]
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user