2019-05-15 14:24:29 +08:00
|
|
|
Pod::Spec.new do |s|
|
|
|
|
s.name = 'libwebp'
|
2019-05-15 14:39:03 +08:00
|
|
|
s.version = '1.0.2'
|
2019-05-15 14:24:29 +08:00
|
|
|
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'
|
|
|
|
|
2019-06-11 13:19:32 +08:00
|
|
|
s.xcconfig = {
|
|
|
|
'USER_HEADER_SEARCH_PATHS' => '$(inherited) ${PODS_ROOT}/libwebp/ ${PODS_TARGET_SRCROOT}/'
|
2019-05-15 14:24:29 +08:00
|
|
|
}
|
2019-06-11 13:19:32 +08:00
|
|
|
s.preserve_path = 'src'
|
2019-05-15 14:24:29 +08:00
|
|
|
|
2019-06-11 13:19:32 +08:00
|
|
|
s.source_files = 'src/webp/*.{h,c}', 'src/utils/*.{h,c}', 'src/dsp/*.{h,c}', 'src/enc/*.{h,c}', 'src/dec/*.{h,c}', 'src/demux/*.{h,c}', 'src/mux/*.{h,c}'
|
|
|
|
s.public_header_files = 'src/webp/*.h'
|
2019-05-15 14:24:29 +08:00
|
|
|
|
2019-06-11 13:19:32 +08:00
|
|
|
# fix #include <inttypes.h> cause 'Include of non-modular header inside framework module error'
|
|
|
|
s.prepare_command = <<-CMD
|
|
|
|
sed -i.bak 's/<inttypes.h>/<stdint.h>/g' './src/webp/types.h'
|
|
|
|
CMD
|
2019-05-15 14:24:29 +08:00
|
|
|
end
|