Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d064e66606
Fetching contributors…

Cannot retrieve contributors at this time

file 33 lines (26 sloc) 1.802 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
Pod::Spec.new do |s|
  s.name = "ZXing"
  s.version = "2.1pre"
  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' }

# You can use the original svn repo, but their is no tag available for this version yet.
# Since cocoapad supports git caching you may change this local to increase performance.
  s.source = { :svn => "http://zxing.googlecode.com/svn/trunk" }
# s.source = { :git => "https://github.com/zxing/zxing.git" }

  s.source_files = 'cpp/core/src/zxing/**/*.{h,cpp}', 'objc/src/ZXing/*.{h,m,mm}'
  s.compiler_flags = '-IZXing/cpp/core/src/'
  s.requires_arc = false

  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/', '-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
Something went wrong with that request. Please try again.