<html><head></head><body dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="ApplePlainTextBody"><br><blockquote type="cite">On Nov 14, 2016, at 5:05 PM, Anders Bertelrud via swift-build-dev &lt;swift-build-dev@swift.org&gt; wrote:<br><br><br>This will be extended to support product dependencies in addition to target dependencies:<br><br>let package = Package(<br> &nbsp;&nbsp;&nbsp;name: "MyClientLib",<br> &nbsp;&nbsp;&nbsp;dependencies: [<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.package(url: "<br>https://github.com/Alamofire/Alamofire<br>", majorVersion: 3),<br> &nbsp;&nbsp;&nbsp;],<br> &nbsp;&nbsp;&nbsp;targets: [<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Target(name: "MyUtils"),<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Target(name: "MyClientLib", dependencies: [<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.target(name: "MyUtils"),<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.product(name: "Alamofire", package: "Alamofire")<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;])<br> &nbsp;&nbsp;&nbsp;]<br>)<br><br></blockquote><br>Did you consider allowing the specification of dependencies as part of the target dependencies? It would be mostly useful for simple leaf packages. If we included a "default" target concept you could omit the name too. <br><br>let package = Package(<br> &nbsp;&nbsp;&nbsp;name: "MyClientLib",<br> &nbsp;&nbsp;&nbsp;targets: [<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Target(name: "MyUtils"),<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Target(name: "MyClientLib", dependencies: [<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.target(name: "MyUtils"),<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.product(name: "Alamofire", package: "Alamofire", url: "https://github.com/Alamofire/Alamofire", majorVersion: 3)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;])<br> &nbsp;&nbsp;&nbsp;]<br>)<br><br><br><br><br><br>Russ</div></body></html>