LibTorchvision.podspec 1.1 KB

123456789101112131415161718192021222324
  1. pytorch_version = '2.0.0'
  2. Pod::Spec.new do |s|
  3. s.name = 'LibTorchvision'
  4. s.version = '0.15.1'
  5. s.authors = 'PyTorch Team'
  6. s.license = { :type => 'BSD' }
  7. s.homepage = 'https://github.com/pytorch/vision'
  8. s.source = { :http => "https://ossci-ios.s3.amazonaws.com/libtorchvision_ops_ios_#{s.version}.zip" }
  9. s.summary = '"The C++ library of TorchVision ops for iOS'
  10. s.description = <<-DESC
  11. The C++ library of TorchVision ops for iOS.
  12. This version (#{s.version}) requires the installation of LibTorch #{pytorch_version} or LibTorch-Lite #{pytorch_version}.
  13. DESC
  14. s.ios.deployment_target = '12.0'
  15. s.vendored_libraries = 'install/lib/*.a'
  16. s.user_target_xcconfig = {
  17. 'VALID_ARCHS' => 'x86_64 arm64',
  18. 'OTHER_LDFLAGS' => '$(inherited) -force_load "$(PODS_ROOT)/LibTorchvision/install/lib/libtorchvision_ops.a"',
  19. 'CLANG_CXX_LANGUAGE_STANDARD' => 'c++14',
  20. 'CLANG_CXX_LIBRARY' => 'libc++'
  21. }
  22. s.library = ['c++', 'stdc++']
  23. end