forked from zxingify/zxingify-objc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ZXingObjC.podspec
65 lines (54 loc) · 2.44 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
65
Pod::Spec.new do |s|
s.name = 'ZXingObjC'
s.version = '3.6.9'
s.summary = 'An Objective-C Port of the ZXing barcode framework.'
s.homepage = 'https://github.com/zxingify/zxingify-objc'
s.author = 'zxingify'
s.license = { :type => 'Apache License 2.0', :file => 'COPYING' }
s.source = { :git => 'https://github.com/zxingify/zxingify-objc.git', :tag => "#{s.version}" }
s.requires_arc = true
s.xcconfig = { "OTHER_LDFLAGS" => "-ObjC" }
s.ios.deployment_target = '11.0'
s.osx.deployment_target = '10.15'
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}'
ss.exclude_files = 'ZXingObjC/include/**/*.h'
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