-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
41 lines (39 loc) · 1.13 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
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "MPVUI",
platforms: [
.iOS(.v15),
.macOS(.v10_15)
],
products: [
.library(
name: "MPVUI",
targets: ["MPVUI"]),
],
dependencies: [
.package(url: "https://github.com/cxfksword/MPVKit", branch: "main"),
],
targets: [
.target(
name: "MPVUI",
dependencies: [
"MPVKit",
]
),
.plugin(
name: "GenerateCommands",
capability: .command(
intent: .custom(
verb: "generate-commands",
description: "Generates the command enum for MPV commands"
),
permissions: [
.writeToPackageDirectory(reason: "To output generated source code"),
.allowNetworkConnections(scope: .all(), reason: "To download necessary MPV source files")
]
)
),
]
)