forked from zxing-cpp/zxing-cpp
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzxing-cpp.podspec
More file actions
Latest commit
45 lines (42 loc) · 1.56 KB
/
Copy pathzxing-cpp.podspec
File metadata and controls
45 lines (42 loc) · 1.56 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
34
35
36
37
38
39
40
41
42
43
44
45
Pod::Spec.newdo |s|
s.name='zxing-cpp'
s.version='3.1.0-rc1'
s.summary='C++ port of ZXing'
s.homepage='https://github.com/zxing-cpp/zxing-cpp'
s.author='axxel'
s.readme='https://raw.githubusercontent.com/zxing-cpp/zxing-cpp/master/wrappers/ios/README.md'
s.license={
:type=>'Apache License 2.0',
:file=>'LICENSE'
}
s.source={
:git=>'https://github.com/zxing-cpp/zxing-cpp.git',
:tag=>"v#{s.version}"
}
s.module_name='ZXingCpp'
s.platform=:ios,'12.0'
s.library=['c++']
s.compiler_flags=[
'-DZXING_INTERNAL',
'-Wno-comma'
]
s.pod_target_xcconfig={
'CLANG_CXX_LANGUAGE_STANDARD'=>'c++20',
'HEADER_SEARCH_PATHS'=>'$(PODS_TARGET_SRCROOT)/wrappers/ios/Sources/Wrapper'
}
s.default_subspec='Wrapper'
s.subspec'Core'do |ss|
ss.source_files='core/src/**/*.{h,c,cpp}'
ss.exclude_files=['core/src/libzint/**']
ss.private_header_files='core/src/**/*.h'
end
s.subspec'Wrapper'do |ss|
ss.dependency'zxing-cpp/Core'
ss.frameworks='CoreGraphics','CoreImage','CoreVideo'
ss.source_files='wrappers/ios/Sources/Wrapper/**/*.{h,m,mm}'
ss.public_header_files='wrappers/ios/Sources/Wrapper/Reader/{ZXIBarcodeReader,ZXIResult,ZXIPosition,ZXIPoint,ZXIGTIN,ZXIReaderOptions}.h',
'wrappers/ios/Sources/Wrapper/Writer/{ZXIBarcodeWriter,ZXIWriterOptions}.h',
'wrappers/ios/Sources/Wrapper/{ZXIErrors,ZXIFormat}.h'
ss.exclude_files='wrappers/ios/Sources/Wrapper/UmbrellaHeader.h'
end
end