Remark the sharpyuv to public header and public include folder

Currently it belong to libwebp, may separate to host different target in the future
This commit is contained in:
DreamPiggy 2023-07-26 16:05:24 +08:00
parent 58e7e6e2ad
commit d17f9e458a
3 changed files with 13 additions and 5 deletions

View File

@ -15,9 +15,9 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>FMWK</string> <string>FMWK</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.2.4</string> <string>1.3.0</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.2.4</string> <string>1.3.0</string>
<key>NSPrincipalClass</key> <key>NSPrincipalClass</key>
<string></string> <string></string>
</dict> </dict>

1
include/sharpyuv/sharpyuv.h Symbolic link
View File

@ -0,0 +1 @@
../../libwebp/sharpyuv/sharpyuv.h

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'libwebp' s.name = 'libwebp'
s.version = '1.2.4' s.version = '1.3.0'
s.summary = 'Library to encode and decode images in WebP format.' s.summary = 'Library to encode and decode images in WebP format.'
s.homepage = 'https://developers.google.com/speed/webp/' s.homepage = 'https://developers.google.com/speed/webp/'
s.authors = 'Google Inc.' s.authors = 'Google Inc.'
@ -19,11 +19,18 @@ Pod::Spec.new do |s|
'USER_HEADER_SEARCH_PATHS' => '$(inherited) ${PODS_ROOT}/libwebp/ ${PODS_TARGET_SRCROOT}/' 'USER_HEADER_SEARCH_PATHS' => '$(inherited) ${PODS_ROOT}/libwebp/ ${PODS_TARGET_SRCROOT}/'
} }
s.preserve_paths = 'src', 'sharpyuv' s.preserve_paths = 'src', 'sharpyuv'
s.default_subspecs = 'webp', 'demux', 'mux' s.default_subspecs = 'sharpyuv', 'webp', 'demux', 'mux'
# sharpyuv converter
s.subspec 'sharpyuv' do |ss|
ss.source_files = 'sharpyuv/*.{h,c}'
ss.public_header_files = 'sharpyuv/sharpyuv.h'
end
# webp decoding && encoding # webp decoding && encoding
s.subspec 'webp' do |ss| s.subspec 'webp' do |ss|
ss.source_files = 'src/webp/decode.h', 'src/webp/encode.h', 'src/webp/types.h', 'src/webp/mux_types.h', 'src/webp/format_constants.h', 'src/utils/*.{h,c}', 'src/dsp/*.{h,c}', 'src/dec/*.{h,c}', 'src/enc/*.{h,c}', 'sharpyuv/*.{h,c}' ss.dependency 'libwebp/sharpyuv'
ss.source_files = 'src/webp/decode.h', 'src/webp/encode.h', 'src/webp/types.h', 'src/webp/mux_types.h', 'src/webp/format_constants.h', 'src/utils/*.{h,c}', 'src/dsp/*.{h,c}', 'src/dec/*.{h,c}', 'src/enc/*.{h,c}'
ss.public_header_files = 'src/webp/decode.h', 'src/webp/encode.h', 'src/webp/types.h', 'src/webp/mux_types.h', 'src/webp/format_constants.h' ss.public_header_files = 'src/webp/decode.h', 'src/webp/encode.h', 'src/webp/types.h', 'src/webp/mux_types.h', 'src/webp/format_constants.h'
end end