[swift-build-dev] SwiftPM - More layout options for sources/tests folders

David Owens II david at owensd.io
Thu Mar 3 11:51:11 CST 2016


Source layout shouldn't matter at all. I *think* the eventual plan is for SwiftPM to allow you to specify source locations, though not 100%.

This issue is one of the big ones for why Drew and I wrote our own build tool (based on llbuild).

-David


> On Mar 3, 2016, at 9:10 AM, bhargav gurlanka via swift-build-dev <swift-build-dev at swift.org> wrote:
> 
> Hi swift community,
> 
> The current SwiftPM supports very limited set of source directory layouts. 
> 
> Below are some of the layouts, along with their current SwiftPM support, that I think should be supported. 
> 
> layout-1
> ├── Package.swift
> └── Sources
>     └── ModuleA
>         ├── Bar.swift
>         ├── Foo.swift
>         └── Tests
>             └── ModuleATests.swift
> Current Status: Building - Tests Failing
> 
> layout-2
> ├── Foo.swift
> ├── Package.swift
> └── Tests
>     └── FooTests.swift
> Current Status: Building - Tests Failing
> 
> layout-3
> ├── Package.swift
> ├── Sources
> │   ├── Foo.swift
> │   └── ModuleA
> │       ├── Bar.swift
> │       └── Tests
> │           └── BarTests.swift
> └── Tests
>     └── FooTests.swift
> Current Status: Build Failing - Invalid Layout
> 
> layout-4
> ├── Package.swift
> ├── Sources
> │   ├── Foo.swift
> │   ├── ModuleA
> │   │   └── Bar.swift
> │   └── Tests
> │       └── FooTests.swift
> └── Tests
>     └── ModuleA
>         └── BarTests.swift
> Current Status: Build Failing - Invalid Layout
> 
> 
> Comments / thoughts?
> 
> -- 
> Bhargav Gurlanka
> _______________________________________________
> swift-build-dev mailing list
> swift-build-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-build-dev

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


More information about the swift-build-dev mailing list