[swift-build-dev] Customizing location of source directory

Max Howell max.howell at apple.com
Wed Dec 23 11:03:04 CST 2015


> Hello,
> 
> I'm working on a patch to make the location of the sources configurable.
> 
> I'd like to separate the work out into two separate patches.  The first patch will allow changing the default path to a custom one.  The second patch will allow adding multiple source directories.
> 
> The reason for this is that there are existing packages that use Cocoapods or Carthage and have their source placed in various folders that are not named as the default ones in package manager.  For example, https://github.com/izqui/Taylor <https://github.com/izqui/Taylor>, is a small webserver package that placed it's sources in Taylor/ directory.
> 
> If I can pass in a custom sources location to the package manager, I can add support for this package quite easily.
> 
> I wanted to ask the group some questions about this effort:
> 
> First of, is this something that you would support?

Yes. I feel it is necessary.

> Second, looking at the code, its seems like the changes are needed only in the package manager, is that correct?

Indeed.

> Lastly, anything I should watch out for as I'm working through this?

Please just add tests and check they continue to run, otherwise I don’t think there are any gotchas.

> Thank you,

Thank *you*!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-build-dev/attachments/20151223/dcebdffd/attachment.html>


More information about the swift-build-dev mailing list