forked from signalapp/libsignal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
40 lines (36 loc) · 1.03 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
35
36
37
38
39
40
// swift-tools-version:5.9
//
// Copyright 2020-2021 Signal Messenger, LLC.
// SPDX-License-Identifier: AGPL-3.0-only
//
import PackageDescription
let rustBuildDir = "../target/debug/"
let package = Package(
name: "LibSignalClient",
platforms: [
.macOS(.v10_15), .iOS(.v13),
],
products: [
.library(
name: "LibSignalClient",
targets: ["LibSignalClient"]
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.4.3"),
],
targets: [
.systemLibrary(name: "SignalFfi"),
.target(
name: "LibSignalClient",
dependencies: ["SignalFfi"],
swiftSettings: [.enableExperimentalFeature("StrictConcurrency")]
),
.testTarget(
name: "LibSignalClientTests",
dependencies: ["LibSignalClient"],
swiftSettings: [.enableExperimentalFeature("StrictConcurrency")],
linkerSettings: [.unsafeFlags(["-L\(rustBuildDir)"])]
),
]
)