[swift-users] How to define interdependent modules in a package?

Pierre Monod-Broca pierre at monod-broca.fr
Wed Dec 23 07:52:52 CST 2015


here is link with more explanation : https://github.com/apple/swift-package-manager/blob/master/Documentation/PackageManagerCommunityProposal.md#module-interdependency-determination

-- 
Pierre

> Le 23 déc. 2015 à 14:50, Pierre Monod-Broca <pierre at monod-broca.fr> a écrit :
> 
> It would be too costly to do that on each build, among other issues.
> 
> So you do have to add all imported stuff as dependencies.
> 
> If I recall correctly, SPM is planned to have an option to either list you all your imports so you can populate your dependencies, or edit the package manifest itself to add those dependencies.
> 
> -- 
> Pierre
> 
>> Le 23 déc. 2015 à 03:43, Tarun Joshi via swift-users <swift-users at swift.org <mailto:swift-users at swift.org>> a écrit :
>> 
>>> Is this in your package file?
>>> targets: [
>>>    Target(
>>>        name: "Foo",
>>>        dependencies: [.Target(name: "Bar")]),
>>>    Target(
>>>        name: "Bar")
>> 
>> No. So for each module I write, I need to specify all the imported
>> stuff as dependency?
>> Shouldn't this be automatically picked in the build phase by seeing
>> imports in a file. Am I expecting too much?
>> 
>> 
>> -- 
>> Regards,
>> `Tarun`
>> _______________________________________________
>> swift-users mailing list
>> swift-users at swift.org <mailto:swift-users at swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-users
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151223/858dee94/attachment.html>


More information about the swift-users mailing list