mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 07:21:58 +00:00
137 lines
4.9 KiB
Swift
137 lines
4.9 KiB
Swift
// swift-tools-version:5.8
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "MPVKit",
|
|
platforms: [.macOS(.v11), .iOS(.v14), .tvOS(.v14)],
|
|
products: [
|
|
.library(
|
|
name: "MPVKit",
|
|
targets: ["_MPVKit"]
|
|
),
|
|
.library(
|
|
name: "MPVKit-GPL",
|
|
targets: ["_MPVKit-GPL"]
|
|
),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "_MPVKit",
|
|
dependencies: [
|
|
"Libmpv", "_FFmpeg", "Libuchardet", "Libbluray",
|
|
.target(name: "Libluajit", condition: .when(platforms: [.macOS])),
|
|
],
|
|
path: "Sources/_MPVKit",
|
|
linkerSettings: [
|
|
.linkedFramework("AVFoundation"),
|
|
.linkedFramework("CoreAudio"),
|
|
]
|
|
),
|
|
.target(
|
|
name: "_FFmpeg",
|
|
dependencies: [
|
|
"Libavcodec", "Libavdevice", "Libavfilter", "Libavformat", "Libavutil", "Libswresample", "Libswscale",
|
|
"Libssl", "Libcrypto", "Libass", "Libfreetype", "Libfribidi", "Libharfbuzz",
|
|
"MoltenVK", "Libshaderc_combined", "lcms2", "Libplacebo", "Libdovi", "Libunibreak",
|
|
"gmp", "nettle", "hogweed", "gnutls", "Libdav1d", "Libuavs3d"
|
|
],
|
|
path: "Sources/_FFmpeg",
|
|
linkerSettings: [
|
|
.linkedFramework("AudioToolbox"),
|
|
.linkedFramework("CoreVideo"),
|
|
.linkedFramework("CoreFoundation"),
|
|
.linkedFramework("CoreMedia"),
|
|
.linkedFramework("Metal"),
|
|
.linkedFramework("VideoToolbox"),
|
|
.linkedLibrary("bz2"),
|
|
.linkedLibrary("iconv"),
|
|
.linkedLibrary("expat"),
|
|
.linkedLibrary("resolv"),
|
|
.linkedLibrary("xml2"),
|
|
.linkedLibrary("z"),
|
|
.linkedLibrary("c++"),
|
|
]
|
|
),
|
|
.target(
|
|
name: "_MPVKit-GPL",
|
|
dependencies: [
|
|
"Libmpv-GPL", "_FFmpeg-GPL", "Libuchardet", "Libbluray",
|
|
.target(name: "Libluajit", condition: .when(platforms: [.macOS])),
|
|
],
|
|
path: "Sources/_MPVKit-GPL",
|
|
linkerSettings: [
|
|
.linkedFramework("AVFoundation"),
|
|
.linkedFramework("CoreAudio"),
|
|
]
|
|
),
|
|
.target(
|
|
name: "_FFmpeg-GPL",
|
|
dependencies: [
|
|
"Libavcodec-GPL", "Libavdevice-GPL", "Libavfilter-GPL", "Libavformat-GPL", "Libavutil-GPL", "Libswresample-GPL", "Libswscale-GPL",
|
|
"Libssl", "Libcrypto", "Libass", "Libfreetype", "Libfribidi", "Libharfbuzz",
|
|
"MoltenVK", "Libshaderc_combined", "lcms2", "Libplacebo", "Libdovi", "Libunibreak",
|
|
"Libsmbclient", "gmp", "nettle", "hogweed", "gnutls", "Libdav1d", "Libuavs3d"
|
|
],
|
|
path: "Sources/_FFmpeg-GPL",
|
|
linkerSettings: [
|
|
.linkedFramework("AudioToolbox"),
|
|
.linkedFramework("CoreVideo"),
|
|
.linkedFramework("CoreFoundation"),
|
|
.linkedFramework("CoreMedia"),
|
|
.linkedFramework("Metal"),
|
|
.linkedFramework("VideoToolbox"),
|
|
.linkedLibrary("bz2"),
|
|
.linkedLibrary("iconv"),
|
|
.linkedLibrary("expat"),
|
|
.linkedLibrary("resolv"),
|
|
.linkedLibrary("xml2"),
|
|
.linkedLibrary("z"),
|
|
.linkedLibrary("c++"),
|
|
]
|
|
),
|
|
|
|
.binaryTarget(
|
|
name: "Libmpv-GPL",
|
|
url: "\(Libmpv-GPL_url)",
|
|
checksum: "\(Libmpv-GPL_checksum)"
|
|
),
|
|
.binaryTarget(
|
|
name: "Libavcodec-GPL",
|
|
url: "\(Libavcodec-GPL_url)",
|
|
checksum: "\(Libavcodec-GPL_checksum)"
|
|
),
|
|
.binaryTarget(
|
|
name: "Libavdevice-GPL",
|
|
url: "\(Libavdevice-GPL_url)",
|
|
checksum: "\(Libavdevice-GPL_checksum)"
|
|
),
|
|
.binaryTarget(
|
|
name: "Libavformat-GPL",
|
|
url: "\(Libavformat-GPL_url)",
|
|
checksum: "\(Libavformat-GPL_checksum)"
|
|
),
|
|
.binaryTarget(
|
|
name: "Libavfilter-GPL",
|
|
url: "\(Libavfilter-GPL_url)",
|
|
checksum: "\(Libavfilter-GPL_checksum)"
|
|
),
|
|
.binaryTarget(
|
|
name: "Libavutil-GPL",
|
|
url: "\(Libavutil-GPL_url)",
|
|
checksum: "\(Libavutil-GPL_checksum)"
|
|
),
|
|
.binaryTarget(
|
|
name: "Libswresample-GPL",
|
|
url: "\(Libswresample-GPL_url)",
|
|
checksum: "\(Libswresample-GPL_checksum)"
|
|
),
|
|
.binaryTarget(
|
|
name: "Libswscale-GPL",
|
|
url: "\(Libswscale-GPL_url)",
|
|
checksum: "\(Libswscale-GPL_checksum)"
|
|
),
|
|
//AUTO_GENERATE_TARGETS_BEGIN//
|
|
//AUTO_GENERATE_TARGETS_END//
|
|
]
|
|
)
|