-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
executable file
·64 lines (53 loc) · 1.7 KB
/
Copy pathPackage.swift
File metadata and controls
executable file
·64 lines (53 loc) · 1.7 KB
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
59
60
61
62
63
64
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let local = false
let pykit_package: Package.Dependency = if local {
.package(path: "../PySwiftKit")
} else {
.package(url: "https://github.com/py-swift/PySwiftKit", from: .init(311, 0, 0))
}
let pyvideo_package: Package.Dependency =
if local {
.package(path: "../PyCoreVideo")
} else {
.package(url: "https://github.com/KivySwiftPackages/PyCoreVideo", from: .init(311, 0, 0))
}
let kivytex_package: Package.Dependency =
if local {
.package(path: "../KivyTexture")
} else {
.package(url: "https://github.com/KivySwiftPackages/KivyTexture", from: .init(311, 0, 0))
}
let pyfile_package: Package.Dependency = if local {
.package(path: "../PyFileGenerator")
} else {
.package(url: "https://github.com/py-swift/PyFileGenerator", from: .init(0, 0, 1))
}
let package_deps: [Package.Dependency] = [
pykit_package,
pyvideo_package,
//kivytex_package,
pyfile_package
]
let package = Package(
name: "PyCamera",
platforms: [.iOS(.v13), .macOS(.v11)],
products: [
.library(name: "PyCamera", targets: ["PyCamera"])
],
dependencies: [
//.package(url: "https://github.com/PythonSwiftLink/SwiftonizePlugin", from: .init(0, 0, 0))
] + package_deps,
targets: [
.target(
name: "PyCamera",
dependencies: [
.product(name: "SwiftonizeModules", package: "PySwiftKit"),
.product(name: "PyCoreVideo", package: "PyCoreVideo"),
//"KivyTexture"
]//,
//plugins: [ .plugin(name: "Swiftonize", package: "SwiftonizePlugin") ]
),
]
)