@ -4,7 +4,7 @@ import PackageDescription
|
||||
let package = Package(
|
||||
name: "FFmpegKit",
|
||||
defaultLocalization: "en",
|
||||
platforms: [.macOS(.v10_15), .macCatalyst(.v14), .iOS(.v13), .tvOS(.v13),
|
||||
platforms: [.macOS(.v10_15), .macCatalyst(.v14), .iOS(.v16), .tvOS(.v13),
|
||||
.visionOS(.v1)],
|
||||
products: [
|
||||
.library(
|
||||
@ -18,18 +18,6 @@ let package = Package(
|
||||
.library(name: "Libavutil", targets: ["Libavutil"]),
|
||||
.library(name: "Libswresample", targets: ["Libswresample"]),
|
||||
.library(name: "Libswscale", targets: ["Libswscale"]),
|
||||
// Crypto/TLS libraries exposed for consumers that link Libav*
|
||||
// individually without the full FFmpegKit target
|
||||
.library(name: "gmp", targets: ["gmp"]),
|
||||
.library(name: "nettle", targets: ["nettle"]),
|
||||
.library(name: "hogweed", targets: ["hogweed"]),
|
||||
.library(name: "gnutls", targets: ["gnutls"]),
|
||||
.library(name: "libass", targets: ["libfreetype", "libfribidi", "libharfbuzz", "libass"]),
|
||||
.library(name: "libmpv", targets: ["FFmpegKit", "libass", "libmpv"]),
|
||||
.executable(name: "ffmpeg", targets: ["ffmpeg"]),
|
||||
.executable(name: "ffplay", targets: ["ffplay"]),
|
||||
.executable(name: "ffprobe", targets: ["ffprobe"]),
|
||||
.plugin(name: "BuildFFmpeg", targets: ["BuildFFmpeg"]),
|
||||
],
|
||||
dependencies: [
|
||||
// Dependencies declare other packages that this package depends on.
|
||||
@ -80,42 +68,6 @@ let package = Package(
|
||||
.linkedLibrary("z"),
|
||||
]
|
||||
),
|
||||
.executableTarget(
|
||||
name: "ffplay",
|
||||
dependencies: [
|
||||
"fftools",
|
||||
"SDL2",
|
||||
]
|
||||
),
|
||||
.executableTarget(
|
||||
name: "ffprobe",
|
||||
dependencies: [
|
||||
"fftools",
|
||||
]
|
||||
),
|
||||
.executableTarget(
|
||||
name: "ffmpeg",
|
||||
dependencies: [
|
||||
"fftools",
|
||||
]
|
||||
),
|
||||
.target(
|
||||
name: "fftools",
|
||||
dependencies: [
|
||||
"FFmpegKit",
|
||||
]
|
||||
),
|
||||
.systemLibrary(
|
||||
name: "SDL2",
|
||||
pkgConfig: "sdl2",
|
||||
providers: [
|
||||
.brew(["sdl2"]),
|
||||
]
|
||||
),
|
||||
// .target(
|
||||
// name: "libavutil",
|
||||
// cSettings: [.headerSearchPath("../")]
|
||||
// ),
|
||||
// .executableTarget(
|
||||
// name: "BuildFFmpegPlugin",
|
||||
// path: "Plugins/BuildFFmpeg"
|
||||
|
||||
Reference in New Issue
Block a user