-
Notifications
You must be signed in to change notification settings - Fork 0
/
FFMpegCompress.podspec
95 lines (71 loc) · 2.88 KB
/
FFMpegCompress.podspec
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#
# Be sure to run `pod spec lint FFMpegCompress.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#
Pod::Spec.new do |s|
s.name = "FFMpegCompress"
s.version = "0.0.27"
s.summary = "FFMpegCompress contain a available FFMpeg SDK for OC"
s.homepage = "https://github.com/popor/FFMpegCompress"
s.license = "MIT"
s.author = { "wangkq" => "[email protected]" }
s.platform = :ios
s.platform = :ios, "5.0"
s.source = { :git => "https://github.com/popor/FFMpegCompress.git", :tag => s.version }
s.source_files = "*.{h,m}"
# ――― Project Linking ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
# s.framework = "SomeFramework"
s.frameworks = "VideoToolbox", "AVFoundation"
# s.library = "iconv"
s.libraries = "z", "bz2", "iconv"
# arc 设置,c语言无所谓.
# s.requires_arc = true
# 这里是工程配置,这样使用者就不需要手动处理,由pod自动处理了。但是不是本pod配置文件
#s.xcconfig = { 'USER_HEADER_SEARCH_PATHS' => '$(PODS_ROOT)/FFMpegCompress/FFmpegSDK/include' } # ok的,可以直接引用了
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(PODS_ROOT)/FFMpegCompress/FFmpegSDK/include' } # ok的,可以直接引用了
# 这里可以配置.a文件
s.vendored_libraries = 'FFmpegSDK/lib/*.a'
# ――― Folder ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
s.subspec 'FFmpegSDK' do |fsdk|
fsdk.source_files = 'FFmpegSDK/*.{h,c}'
# 第一个文件夹
#fsdk.subspec 'lib' do |lib|
#lib.source_files = 'FFmpegSDK/lib/*.a'
#end
# 第二个文件夹
fsdk.subspec 'include' do |include|
# 子1
include.subspec 'libavcodec' do |libavcodec|
libavcodec.source_files = 'FFmpegSDK/include/libavcodec/*.h'
end
# 子2
include.subspec 'libavdevice' do |libavdevice|
libavdevice.source_files = 'FFmpegSDK/include/libavdevice/*.h'
end
# 子3
include.subspec 'libavfilter' do |libavfilter|
libavfilter.source_files = 'FFmpegSDK/include/libavfilter/*.h'
end
# 子4
include.subspec 'libavformat' do |libavformat|
libavformat.source_files = 'FFmpegSDK/include/libavformat/*.h'
end
# 子5
include.subspec 'libavutil' do |libavutil|
libavutil.source_files = 'FFmpegSDK/include/libavutil/*.h'
end
# 子6
include.subspec 'libswresample' do |libswresample|
libswresample.source_files = 'FFmpegSDK/include/libswresample/*.h'
end
# 子7
include.subspec 'libswscale' do |libswscale|
libswscale.source_files = 'FFmpegSDK/include/libswscale/*.h'
end
end
end
# 完毕
end