-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPackage.swift
More file actions
42 lines (37 loc) · 1.25 KB
/
Copy pathPackage.swift
File metadata and controls
42 lines (37 loc) · 1.25 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
// swift-tools-version: 6.0
import PackageDescription
import Foundation
let packageRoot = URL(fileURLWithPath: #filePath).deletingLastPathComponent()
let localBinaryDepsRoot = packageRoot.appendingPathComponent(".build/streamify-deps")
let localMPVKitPath = localBinaryDepsRoot.appendingPathComponent("MPVKit").path
let hasLocalMPVKit = FileManager.default.fileExists(atPath: "\(localMPVKitPath)/Package.swift")
let dependencies: [Package.Dependency] = [
hasLocalMPVKit
? .package(path: localMPVKitPath)
: .package(url: "https://github.com/edde746/MPVKit.git", revision: "93101dc1d0903c48fa3054652805acacbb75e856"),
]
let streamifyDependencies: [Target.Dependency] = [
.product(name: "MPVKit", package: "MPVKit"),
]
let package = Package(
name: "Streamify",
platforms: [
.iOS(.v15)
],
products: [
// An xtool project should contain exactly one library product,
// representing the main app.
.library(
name: "Streamify",
targets: ["Streamify"]
),
],
dependencies: dependencies,
targets: [
.target(
name: "Streamify",
dependencies: streamifyDependencies
),
],
swiftLanguageModes: [.v5]
)