This repository has been archived by the owner on Feb 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
/
ZXingObjC.podspec
64 lines (53 loc) · 2.39 KB
/
ZXingObjC.podspec
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Pod::Spec.new do |s|
s.name = 'ZXingObjC'
s.version = '3.6.4'
s.summary = 'An Objective-C Port of the ZXing barcode framework.'
s.homepage = 'https://github.com/TheLevelUp/ZXingObjC'
s.author = 'ZXingObjC team'
s.license = { :type => 'Apache License 2.0', :file => 'COPYING' }
s.source = { :git => 'https://github.com/TheLevelUp/ZXingObjC.git', :tag => "#{s.version}" }
s.requires_arc = true
s.xcconfig = { "OTHER_LDFLAGS" => "-ObjC" }
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.8'
s.ios.frameworks = 'AVFoundation', 'CoreGraphics', 'CoreMedia', 'CoreVideo', 'ImageIO', 'QuartzCore'
s.osx.frameworks = 'AVFoundation', 'CoreMedia', 'QuartzCore'
s.default_subspec = 'All'
s.subspec 'All' do |ss|
ss.source_files = 'ZXingObjC/**/*.{h,m}'
end
s.subspec 'Core' do |ss|
ss.source_files = 'ZXingObjC/*.{h,m}', 'ZXingObjC/client/*.{h,m}', 'ZXingObjC/common/**/*.{h,m}', 'ZXingObjC/core/**/*.{h,m}', 'ZXingObjC/multi/**/*.{h,m}'
ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS" }
end
s.subspec 'Aztec' do |ss|
ss.dependency 'ZXingObjC/Core'
ss.source_files = 'ZXingObjC/aztec/**/*.{h,m}'
ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_AZTEC" }
end
s.subspec 'DataMatrix' do |ss|
ss.dependency 'ZXingObjC/Core'
ss.source_files = 'ZXingObjC/datamatrix/**/*.{h,m}'
ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_DATAMATRIX" }
end
s.subspec 'MaxiCode' do |ss|
ss.dependency 'ZXingObjC/Core'
ss.source_files = 'ZXingObjC/maxicode/**/*.{h,m}'
ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_MAXICODE" }
end
s.subspec 'OneD' do |ss|
ss.dependency 'ZXingObjC/Core'
ss.source_files = 'ZXingObjC/oned/**/*.{h,m}', 'ZXingObjC/client/result/**/*.{h,m}'
ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_ONED" }
end
s.subspec 'PDF417' do |ss|
ss.dependency 'ZXingObjC/Core'
ss.source_files = 'ZXingObjC/pdf417/**/*.{h,m}'
ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_PDF417" }
end
s.subspec 'QRCode' do |ss|
ss.dependency 'ZXingObjC/Core'
ss.source_files = 'ZXingObjC/qrcode/**/*.{h,m}'
ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_QRCODE" }
end
end