Skip to content

Commit

Permalink
Merge branch 'darvin-master'
Browse files Browse the repository at this point in the history
Conflicts:
	Rakefile
  • Loading branch information
alloy committed Nov 19, 2011
2 parents a59bfaf + 9ebdeca commit 2c9d732
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions ZBarSDK/1.2.2/ZBarSDK.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Pod::Spec.new do |s|
s.name = 'ZBarSDK'
s.version = '1.2.2'
s.platform = :ios
s.license = 'GNU LGPL 2.1'
s.summary = 'QR and barcode scan library'
s.homepage = 'http://zbar.sourceforge.net/'
s.author = { 'Jeff Brown' => 'spadix@users.sourceforge.net' }
s.source = { :hg => 'http://zbar.hg.sourceforge.net:8000/hgroot/zbar/zbar', :revision => 'iPhoneSDK-1.2.2' }

s.description = 'ZBar is an open source software suite for reading bar codes from various sources, such as video streams, ' \
'image files and raw intensity sensors. It supports many popular symbologies (types of bar codes) including ' \
'EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.'

s.resources = 'iphone/res/{zbar-*.png,zbar-help.html}'

s.source_files = 'include/**/*.h', 'zbar/**/*.h', 'iphone/include/**/*.h',
'zbar/{config,decoder,error,image,img_scanner,refcnt,scanner,symbol}.c',
'zbar/decoder/{code128,code39,ean,i25,qr_finder,databar,code93}.c',
'zbar/qrcode/{bch15_5,binarize,isaac,qrdec,qrdectxt,rs,util}.c',
'iphone/*.m'

s.frameworks = 'AVFoundation', 'CoreMedia', 'CoreVideo', 'QuartzCore'

s.library = 'iconv'

s.clean_paths = FileList['*'].exclude(/(include|zbar|iphone|README|LICENSE)$/)

s.xcconfig = { "EXCLUDED_SOURCE_FILE_NAMES[sdk=iphoneos*][arch=*]" => 'ZBarReaderViewImpl_Simulator.m',
"EXCLUDED_SOURCE_FILE_NAMES[sdk=iphonesimulator*][arch=*]" => 'ZBarReaderViewImpl_Capture.m ZBarCaptureReader.m' }

# Maintain the dir structure for headers
def s.copy_header_mapping(from)
from
end

# Append the prefix header to the Pods prefix header
def s.post_install(target)
prefix_header = config.project_pods_root + target.prefix_header_filename
prefix_header.open('a') do |file|
file.puts((pod_destroot + 'iphone/include/prefix.pch').read)
end
end
end

0 comments on commit 2c9d732

Please sign in to comment.