[swift-users] How to define interdependent modules in a package?
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.
> 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: [
>> name: "Foo",
>> dependencies: [.Target(name: "Bar")]),
>> 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?
> swift-users mailing list
> swift-users at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-users