Add the CocoaPods spec files for libwebp, update to v1.0.1

This commit is contained in:
DreamPiggy 2019-05-15 14:24:29 +08:00
parent 194f4ad51d
commit 5b113d0401
2 changed files with 63 additions and 1 deletions

@ -1 +1 @@
Subproject commit 698b8844e38a0c5ca50bb20f866e71291bfc3b36
Subproject commit e85d3313d6d52b1e9c6c181b488fc0831a747de8

62
libwebp.podspec Normal file
View File

@ -0,0 +1,62 @@
Pod::Spec.new do |s|
s.name = 'libwebp'
s.version = '1.0.1'
s.summary = 'Library to encode and decode images in WebP format.'
s.homepage = 'https://developers.google.com/speed/webp/'
s.authors = 'Google Inc.'
s.license = { :type => 'BSD', :file => 'COPYING' }
s.source = { :git => 'https://chromium.googlesource.com/webm/libwebp', :tag => 'v' + s.version.to_s }
s.compiler_flags = '-D_THREAD_SAFE'
s.requires_arc = false
s.osx.deployment_target = '10.8'
s.ios.deployment_target = '6.0'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'
s.pod_target_xcconfig = {
'USER_HEADER_SEARCH_PATHS' => '$(inherited) ${PODS_ROOT}/libwebp/**'
}
s.subspec 'webp' do |ss|
ss.header_dir = 'webp'
ss.source_files = 'src/webp/*.h'
end
s.subspec 'core' do |ss|
ss.source_files = [
'src/utils/*.{h,c}',
'src/dsp/*.{h,c}',
'src/enc/*.{h,c}',
'src/dec/*.{h,c}'
]
ss.dependency 'libwebp/webp'
end
s.subspec 'utils' do |ss|
ss.dependency 'libwebp/core'
end
s.subspec 'dsp' do |ss|
ss.dependency 'libwebp/core'
end
s.subspec 'enc' do |ss|
ss.dependency 'libwebp/core'
end
s.subspec 'dec' do |ss|
ss.dependency 'libwebp/core'
end
s.subspec 'demux' do |ss|
ss.source_files = 'src/demux/*.{h,c}'
ss.dependency 'libwebp/core'
end
s.subspec 'mux' do |ss|
ss.source_files = 'src/mux/*.{h,c}'
ss.dependency 'libwebp/core'
end
end