-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
34 lines (33 loc) · 1.21 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.7
import PackageDescription
let package = Package(
name: "SIPKit",
platforms: [
.macOS(.v11),
.iOS(.v14)
],
products: [
.library(name: "SIPKit", targets: ["SIPKit"]),
],
targets: [
.binaryTarget(name: "libpjproject", url: "https://github.com/fabricetiennette/pjLib/releases/download/v0.1.1/libpjproject.xcframework.zip", checksum: "2c069c04d447db1fd4ed4bc4eddf1337b648c47fffd2eb6f788cd46e410b7f24"),
.target(name: "Manager", dependencies: ["libpjproject"], cxxSettings: [
.define("PJ_AUTOCONF")
], linkerSettings: [
.linkedFramework("Network"),
.linkedFramework("Security"),
.linkedFramework("CoreAudio"),
.linkedFramework("AVFoundation"),
.linkedFramework("AudioToolbox")
]),
.target(name: "SIPKit", dependencies: ["Manager"], cxxSettings: [
.define("PJ_AUTOCONF")
]),
.testTarget(
name: "SIPKitTests",
dependencies: ["SIPKit"], cxxSettings: [
.define("PJ_AUTOCONF")
]),
],
cxxLanguageStandard: .cxx20
)