-
Notifications
You must be signed in to change notification settings - Fork 2
/
SDWebImageBPGCoder.podspec
55 lines (46 loc) · 2.22 KB
/
SDWebImageBPGCoder.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
#
# Be sure to run `pod lib lint SDWebImageBPGCoder.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'SDWebImageBPGCoder'
s.version = '0.7.2'
s.summary = 'BPG decoder for SDWebImage plugin coder.'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
A SDWebImage coder plugin to support BPG (Better Portable Graphics) format.
DESC
s.homepage = 'https://github.com/SDWebImage/SDWebImageBPGCoder'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'DreamPiggy' => 'lizhuoli1126@126.com' }
s.source = { :git => 'https://github.com/SDWebImage/SDWebImageBPGCoder.git', :tag => s.version.to_s }
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.11'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'
s.default_subspecs = 'libbpg'
s.module_map = 'SDWebImageBPGCoder/Module/SDWebImageBPGCoder.modulemap'
s.subspec 'libbpg' do |ss|
ss.dependency 'libbpg'
ss.source_files = 'SDWebImageBPGCoder/Classes/SDImageBPGCoder.{h,m}', 'SDWebImageBPGCoder/Module/SDWebImageBPGCoder.h'
ss.public_header_files = 'SDWebImageBPGCoder/Classes/SDImageBPGCoder.h', 'SDWebImageBPGCoder/Module/SDWebImageBPGCoder.h'
end
s.subspec 'bpgenc' do |ss|
ss.dependency 'SDWebImageBPGCoder/libbpg'
ss.dependency 'libx265'
ss.source_files = 'SDWebImageBPGCoder/Classes/bpgenc/*'
ss.public_header_files = 'SDWebImageBPGCoder/Classes/bpgenc/*.h'
ss.xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) USE_X265=1',
'WARNING_CFLAGS' => '$(inherited) -Wno-shorten-64-to-32 -Wno-conditional-uninitialized -Wno-unused-variable'
}
end
s.dependency 'SDWebImage/Core', '~> 5.10'
end