<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">It would be too costly to do that on each build, among other issues.</div><div class=""><br class=""></div><div class="">So you do have to add all imported stuff as dependencies.</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">-- </div><div class="">Pierre</div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">Le 23 déc. 2015 à 03:43, Tarun Joshi via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class=""><blockquote type="cite" class="">Is this in your package file?<br class="">targets: [<br class=""> Target(<br class=""> name: "Foo",<br class=""> dependencies: [.Target(name: "Bar")]),<br class=""> Target(<br class=""> name: "Bar")<br class=""></blockquote><br class="">No. So for each module I write, I need to specify all the imported<br class="">stuff as dependency?<br class="">Shouldn't this be automatically picked in the build phase by seeing<br class="">imports in a file. Am I expecting too much?<br class=""><br class=""><br class="">-- <br class="">Regards,<br class="">`Tarun`<br class="">_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></div></blockquote></div><br class=""></body></html>