zxing-cpp.podspec 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Pod::Spec.new do |s|
  2. s.name = 'zxing-cpp'
  3. s.version = '2.3.0'
  4. s.summary = 'C++ port of ZXing'
  5. s.homepage = 'https://github.com/zxing-cpp/zxing-cpp'
  6. s.author = 'axxel'
  7. s.readme = 'https://raw.githubusercontent.com/zxing-cpp/zxing-cpp/master/wrappers/ios/README.md'
  8. s.license = {
  9. :type => 'Apache License 2.0',
  10. :file => 'LICENSE'
  11. }
  12. s.source = {
  13. :git => 'https://github.com/zxing-cpp/zxing-cpp.git',
  14. :tag => "v#{s.version}"
  15. }
  16. s.module_name = 'ZXingCpp'
  17. s.platform = :ios, '11.0'
  18. s.library = ['c++']
  19. s.compiler_flags = '-DZXING_READERS'
  20. s.pod_target_xcconfig = {
  21. 'CLANG_CXX_LANGUAGE_STANDARD' => 'c++20'
  22. }
  23. s.default_subspec = 'Wrapper'
  24. s.subspec 'Core' do |ss|
  25. ss.source_files = 'core/src/**/*.{h,c,cpp}'
  26. ss.exclude_files = [ 'core/src/libzint/**' ]
  27. ss.private_header_files = 'core/src/**/*.h'
  28. end
  29. s.subspec 'Wrapper' do |ss|
  30. ss.dependency 'zxing-cpp/Core'
  31. ss.frameworks = 'CoreGraphics', 'CoreImage', 'CoreVideo'
  32. ss.source_files = 'wrappers/ios/Sources/Wrapper/**/*.{h,m,mm}'
  33. ss.public_header_files = 'wrappers/ios/Sources/Wrapper/Reader/{ZXIBarcodeReader,ZXIResult,ZXIPosition,ZXIPoint,ZXIGTIN,ZXIReaderOptions}.h',
  34. 'wrappers/ios/Sources/Wrapper/Writer/{ZXIBarcodeWriter,ZXIWriterOptions}.h',
  35. 'wrappers/ios/Sources/Wrapper/{ZXIErrors,ZXIFormat}.h'
  36. ss.exclude_files = 'wrappers/ios/Sources/Wrapper/UmbrellaHeader.h'
  37. end
  38. end