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

Misha Manulis michael at manulis.com
Sun Dec 27 17:37:32 CST 2015


Hi Max,

Question on compiling.  So far, I've been using my local install of Swift,
that comes with XCode.

The instructions in the README suggest using the latest master for Swift
itself and building package manager as part of that.  I haven't been able
to find instructions for how to compile package manager as part of Swift
though.

I've set up the XCode project, but I can't find any CLI switches or docs on
enabling building other components.  Is documented somewhere or can someone
provide basic instructions and I'm happy to write up a How-To doc.

Thank you

Misha Manulis

On Wed, Dec 23, 2015 at 9:03 AM, Max Howell <max.howell at apple.com> wrote:

> 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, 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/20151227/29be57d4/attachment.html>


More information about the swift-build-dev mailing list