Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added ZXing 2.1

  • Loading branch information...
commit 2a447365faec93785e23476895246476f46a59f7 1 parent 49c68b1
Arnaud Bellec authored
Showing with 36 additions and 0 deletions.
  1. +36 −0 ZXing/2.1/ZXing.podspec
View
36 ZXing/2.1/ZXing.podspec
@@ -0,0 +1,36 @@
+Pod::Spec.new do |s|
+ s.name = "ZXing"
+ s.version = "2.1"
+ 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.license = { :type => 'Apache License 2.0', :file => 'COPYING' }
+ s.source = { :svn => "http://zxing.googlecode.com/svn/", :tag => "2.1" }
+
+ s.preserve_paths = 'cpp/core/src/zxing/**/*.h', 'objc/src/ZXing/*.h'
+ s.source_files = 'cpp/core/src/zxing/**/*.cpp', 'objc/src/ZXing/*.{m,mm}'
+ s.compiler_flags = '-IZXing/cpp/core/src/ -IZXing/objc/src/'
+ 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', 'ImageIO'
+
+ s.subspec 'ios' do |ios|
+ ios.platform = :ios, '4.3'
+ ios.ios.deployment_target = '4.3'
+
+ ios.source_files = 'iphone/ZXingWidget/Classes/**/*.{h,m,mm}'
+ ios.compiler_flags = '-IZXing/cpp/core/src/zxing/', '-IZXing/iphone/ZXingWidget/Classes/'
+
+# must use xcconfig additional to compiler_flag -I to make this header path also available for the including project
+ ios.xcconfig = { 'HEADER_SEARCH_PATHS' => '${PODS_ROOT}/ZXing/cpp/core/src/ ${PODS_ROOT}/ZXing/iphone/ZXingWidget/Classes/**' }
+ ios.frameworks = 'AddressBookUI', 'QuartzCore'
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.