-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
58 lines (47 loc) · 1.2 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// swift-tools-version: 5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "PopH264",
platforms: [
.iOS(.v15),
.macOS(.v10_15)
],
products: [
.library(
name: "PopH264",
targets: [
"PopH264"
]),
],
targets: [
.target(
name: "PopH264",
/* include all targets where .h contents need to be accessible to swift */
dependencies: ["PopH264Objc","PopH264Framework"],
path: "./PopH264Swift"
),
.binaryTarget(
name: "PopH264Framework",
//path: "Poph264.xcframework"
url: "https://github.com/NewChromantics/PopH264/releases/download/v1.3.41/PopH264.xcframework.zip",
checksum: "8a378470a2ab720f2ee6ecf4e7a5e202a3674660c31e43d95d672fe76d61d68c"
),
.target(
name: "PopH264Objc",
dependencies: [],
path: "./PopH264Objc",
//publicHeadersPath: ".", // not using include/ seems to have some errors resolving symbols? (this may before my extern c's)
cxxSettings: [
.headerSearchPath("./"), // this allows headers in same place as .cpp
]
)
,
/*
.testTarget(
name: "PopH264Tests",
dependencies: ["PopH264"]
),
*/
]
)