Re: [swift-users] SPM & Library with bridging header

2017-01-21 Thread Rien via swift-users
== This works: == First I need openSSL from Swift, that I have done with COpenSsl: Package.swift: import PackageDescription let package = Package( name: "COpenSsl", pkgConfig: "openssl" ) m

Re: [swift-users] SPM & Library with bridging header

2017-01-21 Thread Daniel Dunbar via swift-users
What is the glue code you need? You can define a C/Obj-C target in the same Swift package, and then use it from your Swift targets. See: https://github.com/apple/swift-package-manager/blob/master/Documentation/Reference.md#source-layouts

Re: [swift-users] Announcement: Official Docker Image for Swift now available

2017-01-21 Thread Daniel Dunbar via swift-users
Awesome, thanks for pushing this forward! - Daniel > On Jan 21, 2017, at 2:10 PM, Swizzlr via swift-users > wrote: > > Hello all, > > I'm pleased to announce that with the assistance of many, many people (see > below), we have released an “official" Docker image for Swift >

[swift-users] Announcement: Official Docker Image for Swift now available

2017-01-21 Thread Swizzlr via swift-users
Hello all, I'm pleased to announce that with the assistance of many, many people (see below), we have released an “official" Docker image for Swift . The image contains everything needed to compile and run a Swift application, reliably and reproducibly. It’s b

Re: [swift-users] enum compare

2017-01-21 Thread Rien via swift-users
Oh, I am not using the correct terminology, sorry. Enum’s don’t have “instances” right? Anyhow, I guess you get my drift… Regards, Rien Site: http://balancingrock.nl Blog: http://swiftrien.blogspot.com Github: http://github.com/Swiftrien Project: http://swiftfire.nl > On 21 Jan 2017, at 14:2

Re: [swift-users] enum compare

2017-01-21 Thread Rien via swift-users
The “==“ operation can only compare concrete instances of the enum. With “type == ACType.other” the right side is not an instance. as the associated value is missing. Regards, Rien Site: http://balancingrock.nl Blog: http://swiftrien.blogspot.com Github: http://github.com/Swiftrien Project: http

[swift-users] enum compare

2017-01-21 Thread tridiak via swift-users
Been searching and trying to figure out a comparison problem. func ==(lhs : ACType, rhs : ACType) -> Bool { switch (lhs,rhs) { case (.other, .other): return true case (.other, _): return false c

Re: [swift-users] SPM & Library with bridging header

2017-01-21 Thread Rien via swift-users
The thing I was missing is the “system module”.. found it now though ;-) So far so good, I want to put that little glue code I need in its own module. However I cannot find how to specify the import search path. “swift build -I /usr/local/include/“ does not work (unknown command -I) And pkgConf