-
Notifications
You must be signed in to change notification settings - Fork 35
/
Package.swift.in
41 lines (39 loc) · 1.67 KB
/
Package.swift.in
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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "Python-iOS",
platforms: [.iOS(.v9)],
products: [
.library(
name: "Python-iOS",
targets: [ // order matters!
"LinkPython",
"libpython3", "libssl", "libcrypto", "libffi",
"PythonSupport",
]),
],
targets: [
.binaryTarget(name: "libpython3", url: "https://github.com/kewlbear/Python-iOS/releases/download/TAG/libpython3.xcframework.zip", checksum: "libpython3.xcframework_CHECKSUM"),
.binaryTarget(name: "libssl", url: "https://github.com/kewlbear/Python-iOS/releases/download/TAG/libssl.xcframework.zip", checksum: "libssl.xcframework_CHECKSUM"),
.binaryTarget(name: "libcrypto", url: "https://github.com/kewlbear/Python-iOS/releases/download/TAG/libcrypto.xcframework.zip", checksum: "libcrypto.xcframework_CHECKSUM"),
.binaryTarget(name: "libffi", url: "https://github.com/kewlbear/Python-iOS/releases/download/TAG/libffi.xcframework.zip", checksum: "libffi.xcframework_CHECKSUM"),
.target(name: "LinkPython",
dependencies: [
"libpython3",
"libssl",
"libcrypto",
"libffi",
],
linkerSettings: [
.linkedLibrary("z"),
.linkedLibrary("sqlite3"),
]
),
.target(name: "PythonSupport",
dependencies: ["LinkPython"],
resources: [.copy("lib")]),
.testTarget(
name: "PythonTests",
dependencies: ["PythonSupport"]),
]
)