forked from jaywcjlove/FFmpegKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
79 lines (74 loc) · 3.13 KB
/
Package.swift
File metadata and controls
79 lines (74 loc) · 3.13 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "FFmpegKit",
platforms: [
.macOS(.v10_15),
.iOS("12.1")
],
products: [
.library(
name: "FFmpegKitiOS",
targets: [
"ffmpegkit-ios",
"libavcodec-ios",
"libavdevice-ios",
"libavfilter-ios",
"libavformat-ios",
"libavutil-ios",
"libswresample-ios",
"libswscale-ios",
"Common",
]
),
.library(
name: "FFmpegKitmacOS",
targets: [
"ffmpegkit-macos",
"libavcodec-macos",
"libavdevice-macos",
"libavfilter-macos",
"libavformat-macos",
"libavutil-macos",
"libswresample-macos",
"libswscale-macos",
"Common",
]
),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// iOS specific frameworks
.binaryTarget(name: "ffmpegkit-ios", path: "ffmpeg-kit/ios/ffmpegkit.xcframework"),
.binaryTarget(name: "libavcodec-ios", path: "ffmpeg-kit/ios/libavcodec.xcframework"),
.binaryTarget(name: "libavdevice-ios", path: "ffmpeg-kit/ios/libavdevice.xcframework"),
.binaryTarget(name: "libavfilter-ios", path: "ffmpeg-kit/ios/libavfilter.xcframework"),
.binaryTarget(name: "libavformat-ios", path: "ffmpeg-kit/ios/libavformat.xcframework"),
.binaryTarget(name: "libavutil-ios", path: "ffmpeg-kit/ios/libavutil.xcframework"),
.binaryTarget(name: "libswresample-ios", path: "ffmpeg-kit/ios/libswresample.xcframework"),
.binaryTarget(name: "libswscale-ios", path: "ffmpeg-kit/ios/libswscale.xcframework"),
// macOS specific frameworks
.binaryTarget(name: "ffmpegkit-macos", path: "ffmpeg-kit/macos/ffmpegkit.xcframework"),
.binaryTarget(name: "libavcodec-macos", path: "ffmpeg-kit/macos/libavcodec.xcframework"),
.binaryTarget(name: "libavdevice-macos", path: "ffmpeg-kit/macos/libavdevice.xcframework"),
.binaryTarget(name: "libavfilter-macos", path: "ffmpeg-kit/macos/libavfilter.xcframework"),
.binaryTarget(name: "libavformat-macos", path: "ffmpeg-kit/macos/libavformat.xcframework"),
.binaryTarget(name: "libavutil-macos", path: "ffmpeg-kit/macos/libavutil.xcframework"),
.binaryTarget(name: "libswresample-macos", path: "ffmpeg-kit/macos/libswresample.xcframework"),
.binaryTarget(name: "libswscale-macos", path: "ffmpeg-kit/macos/libswscale.xcframework"),
// linkages
.target(
name: "Common",
linkerSettings: [
.linkedLibrary("z"),
.linkedLibrary("bz2"),
.linkedLibrary("iconv"),
.linkedLibrary("c++"),
]
),
]
)