Skip to content

Commit

Permalink
updated for 04-25 snapshot support
Browse files Browse the repository at this point in the history
  • Loading branch information
czechboy0 authored and paulofaria committed Apr 29, 2016
1 parent 4029707 commit 6de34ad
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
1 change: 1 addition & 0 deletions .swift-version
@@ -0,0 +1 @@
DEVELOPMENT-SNAPSHOT-2016-04-25-a
9 changes: 7 additions & 2 deletions Package.swift
@@ -1,5 +1,10 @@
import PackageDescription

let package = Package(
name: "COpenSSL"
)
name: "COpenSSL",
pkgConfig: "openssl",
providers: [
.Brew("openssl"),
.Apt("openssl")
]
)
21 changes: 12 additions & 9 deletions README.md
Expand Up @@ -6,35 +6,38 @@ COpenSSL
[![License MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat)](https://tldrlegal.com/license/mit-license)
[![Slack Status](https://zewo-slackin.herokuapp.com/badge.svg)](http://slack.zewo.io)

**OpenSSL** for **Swift 2.2**.
**OpenSSL** for **Swift 3.0**.

## Installation

- Install `libssl-dev`
### Linux

```bash
sudo apt-get install libssl-dev
```

### OS X

```bash
brew install openssl
brew link --force openssl
```

## Usage

- Add `COpenSSL` to your `Package.swift`

```swift
import PackageDescription

let package = Package(
dependencies: [
.Package(url: "https://github.com/Zewo/COpenSSL.git", majorVersion: 0, minor: 2)
.Package(url: "https://github.com/Zewo/COpenSSL.git", majorVersion: 0, minor: 6)
]
)

```

- OSX build command

```bash
$ swift build -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib
```

## Community

[![Slack](http://s13.postimg.org/ybwy92ktf/Slack.png)](http://slack.zewo.io)
Expand Down

0 comments on commit 6de34ad

Please sign in to comment.