Skip to content

Commit

Permalink
Workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentaro Matsumae committed May 11, 2016
1 parent edb4bc3 commit 5034c33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion SDWebImage.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ Pod::Spec.new do |s|

s.subspec 'WebP' do |webp|
webp.source_files = 'SDWebImage/UIImage+WebP.{h,m}'
webp.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1' }
webp.xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1',
'USER_HEADER_SEARCH_PATHS' => '$(inherited) $(SRCROOT)/libwebp/src'
}
webp.dependency 'SDWebImage/Core'
webp.dependency 'libwebp'
end
Expand Down
3 changes: 2 additions & 1 deletion SDWebImage/UIImage+WebP.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
#if !COCOAPODS
#import "webp/decode.h"
#else
#import "libwebp/webp/decode.h"
//FIXME:WORKAROUND for CocoaPods1.0.0 + use_frameworks!
#import "webp/decode.h"
#endif

// Callback for CGDataProviderRelease
Expand Down

0 comments on commit 5034c33

Please sign in to comment.