Last active
July 26, 2016 16:53
-
-
Save dlo/f04456857ff2068f54116f5add681436 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = "zxing" | |
s.version = "2.3.0" | |
s.summary = "Multi-format 1D/2D barcode image processing library." | |
s.homepage = "http://code.google.com/p/zxing/" | |
s.author = "ZXing team (http://code.google.com/p/zxing/people/list)" | |
s.source = { :git => "https://github.com/zxing/zxing.git", :revision => "00f634024ceeee591f54e6984ea7dd666fab22ae" } | |
s.requires_arc = false | |
# workaround for a missing import in objc/src/ZXing/ZXImage.mm | |
s.prefix_header_contents = <<-EOS | |
#ifdef __OBJC__ | |
#import <ImageIO/CGImageSource.h> | |
#endif | |
EOS | |
s.libraries = 'stdc++', 'iconv' | |
s.frameworks = 'AddressBook', 'AudioToolbox', 'AVFoundation', 'CoreGraphics', 'CoreMedia', 'CoreVideo', 'Foundation', 'ImageIO', 'QuartzCore' | |
s.platform = :ios, '8.4' | |
s.subspec 'core' do |ss| | |
ss.source_files = 'cpp/core/src/zxing/**/*.{hh,h,m,mm,cpp,cc}' | |
ss.header_mappings_dir = 'cpp/core/src/zxing' | |
end | |
s.subspec 'bigint' do |ss| | |
ss.source_files = 'cpp/core/src/bigint/*.{hh,h,m,mm,cc}' | |
ss.header_mappings_dir = 'cpp/core/src/bigint' | |
end | |
s.subspec 'ios' do |ss| | |
ss.source_files = 'iphone/ZXingWidget/Classes/**/*.{h,m,mm}' | |
ss.header_mappings_dir = 'iphone' | |
end | |
s.subspec 'main' do |ss| | |
ss.dependency 'zxing/ios' | |
ss.dependency 'zxing/bigint' | |
ss.dependency 'zxing/core' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment