Re: [swift-users] SPM: Subfolders in a Module
Ok, thank you very much! Best regards Toni > Am 16.09.2016 um 07:26 schrieb Ankit Agarwal: > > > > On Fri, Sep 16, 2016 at 12:21 AM, Toni Suter via swift-users > > wrote: > Hi everyone, > > Let's assume there's a Swift package with the following Layout: > > MyPackage/ > ├── Package.swift > └── Sources > └── MyModule > ├── SubFolder > │ └── MyClass.swift > └── main.swift > > As far as I can tell, there's still just one module called MyModule and the > subfolder doesn't create > a nested module or something like that. Is that correct? Do only top level > folders in the Sources directory > become modules? > > > Yup thats correct, in this case there will be one executable module named > `MyModule` with sources being `SubFolder/MyClass.swift` and `main.swift`. > > > -- > Ankit ___ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users
Re: [swift-users] SPM: Subfolders in a Module
On Fri, Sep 16, 2016 at 12:21 AM, Toni Suter via swift-users < swift-users@swift.org> wrote: > Hi everyone, > > Let's assume there's a Swift package with the following Layout: > > MyPackage/ > ├── Package.swift > └── Sources > └── MyModule > ├── SubFolder > │ └── MyClass.swift > └── main.swift > > As far as I can tell, there's still just one module called MyModule and > the subfolder doesn't create > a nested module or something like that. Is that correct? Do only top level > folders in the Sources directory > become modules? > Yup thats correct, in this case there will be one executable module named `MyModule` with sources being `SubFolder/MyClass.swift` and `main.swift`. -- Ankit ___ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users
[swift-users] SPM: Subfolders in a Module
Hi everyone, Let's assume there's a Swift package with the following Layout: MyPackage/ ├── Package.swift └── Sources └── MyModule ├── SubFolder │ └── MyClass.swift └── main.swift As far as I can tell, there's still just one module called MyModule and the subfolder doesn't create a nested module or something like that. Is that correct? Do only top level folders in the Sources directory become modules? Thanks and best regards, Toni___ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users