-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
34 lines (32 loc) · 1.16 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "SecureSockets",
platforms: [.macOS(.v10_10), .iOS(.v8)],
products: [
.library(name: "SecureSockets", targets: ["SecureSockets"]),
.library(name: "Copenssl", targets: ["Copenssl"]),
.library(name: "CopensslGlue", targets: ["CopensslGlue"])
],
dependencies: [
.package(url: "https://github.com/Balancingrock/SwifterSockets", from: "1.1.1")
],
targets: [
.systemLibrary(name: "Copenssl"),
.target(name: "CopensslGlue"),
.target(
name: "SecureSockets",
dependencies: ["SwifterSockets", "Copenssl", "CopensslGlue"]
//
// When building SecureSockets as stand alone, select one of the following
// Note: The comma in front is necessary!
//
// For macOS
//, swiftSettings: [.unsafeFlags(["-Iopenssl/v1_1_1g-macos_10_15/include"])]
//
// For Linux (Mint 19.3)
//, swiftSettings: [.unsafeFlags(["-Iopenssl/v1_1_1g-mint_19_3/include"])]
)
],
swiftLanguageVersions: [.v4, .v4_2, .v5]
)