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

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


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> 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
> 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/a8c651b5/attachment.html>


More information about the swift-users mailing list