<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 <swift-build-dev@swift.org> wrote:<br><br><br>This will be extended to support product dependencies in addition to target dependencies:<br><br>let package = Package(<br> name: "MyClientLib",<br> dependencies: [<br> .package(url: "<br>https://github.com/Alamofire/Alamofire<br>", majorVersion: 3),<br> ],<br> targets: [<br> Target(name: "MyUtils"),<br> Target(name: "MyClientLib", dependencies: [<br> .target(name: "MyUtils"),<br> .product(name: "Alamofire", package: "Alamofire")<br> ])<br> ]<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> name: "MyClientLib",<br> targets: [<br> Target(name: "MyUtils"),<br> Target(name: "MyClientLib", dependencies: [<br> .target(name: "MyUtils"),<br> .product(name: "Alamofire", package: "Alamofire", url: "https://github.com/Alamofire/Alamofire", majorVersion: 3)<br> ])<br> ]<br>)<br><br><br><br><br><br>Russ</div></body></html>