Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] podspec file for Cocoapods release, pod name: LibTorchvision #4074

Merged
merged 2 commits into from
Jun 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions ios/LibTorchvision.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
pytorch_version = '1.9.0'

Pod::Spec.new do |s|
s.name = 'LibTorchvision'
s.version = '0.10.0'
s.authors = 'PyTorch Team'
s.license = { :type => 'BSD' }
s.homepage = 'https://github.com/pytorch/vision'
s.source = { :http => "https://ossci-ios.s3.amazonaws.com/libtorchvision_ops_ios_#{s.version}.zip" }
s.summary = '"The C++ library of TorchVision ops for iOS'
s.description = <<-DESC
The C++ library of TorchVision ops for iOS.
This version (#{s.version}) requires the installation of LibTorch #{pytorch_version} or LibTorch-Lite #{pytorch_version}.
DESC
s.ios.deployment_target = '12.0'
s.vendored_libraries = 'install/lib/*.a'
s.user_target_xcconfig = {
'VALID_ARCHS' => 'x86_64 arm64',
'OTHER_LDFLAGS' => '$(inherited) -force_load "$(PODS_ROOT)/LibTorchvision/install/lib/libtorchvision_ops.a"',
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++14',
'CLANG_CXX_LIBRARY' => 'libc++'
}
s.library = ['c++', 'stdc++']
end