mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary:
D30090760 (e182b459d9) was reverted by D30303292 because of a lint issue in `LibTorch-Lite-Nightly.podspec.template`. Resubmit the diff after fixing the issue.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63239
Test Plan: Imported from OSS
Reviewed By: xta0
Differential Revision: D30315690
Pulled By: hanton
fbshipit-source-id: f0fa719ffc3b8181ab28c123584ae5c1da8992c0
38 lines
1.7 KiB
Plaintext
38 lines
1.7 KiB
Plaintext
Pod::Spec.new do |s|
|
|
s.name = 'LibTorch-Lite-Nightly'
|
|
s.version = 'IOS_NIGHTLY_BUILD_VERSION'
|
|
s.authors = 'PyTorch Team'
|
|
s.license = { :type => 'BSD' }
|
|
s.homepage = 'https://github.com/pytorch/pytorch'
|
|
s.source = { :http => "https://ossci-ios-build.s3.amazonaws.com/libtorch_lite_ios_nightly_#{s.version}.zip" }
|
|
s.summary = 'The nightly build version of PyTorch C++ library for iOS'
|
|
s.description = <<-DESC
|
|
The nightly build version of PyTorch C++ library for iOS.
|
|
DESC
|
|
s.ios.deployment_target = '12.0'
|
|
s.default_subspec = 'Core'
|
|
s.subspec 'Core' do |ss|
|
|
ss.dependency 'LibTorch-Lite-Nightly/Torch'
|
|
ss.source_files = 'src/*.{h,cpp,c,cc}'
|
|
ss.public_header_files = ['src/LibTorch-Lite.h']
|
|
end
|
|
s.subspec 'Torch' do |ss|
|
|
ss.header_mappings_dir = 'install/include/'
|
|
ss.preserve_paths = 'install/include/**/*.{h,cpp,cc,c}'
|
|
ss.vendored_libraries = 'install/lib/*.a'
|
|
ss.libraries = ['c++', 'stdc++']
|
|
end
|
|
s.user_target_xcconfig = {
|
|
'HEADER_SEARCH_PATHS' => '$(inherited) "$(PODS_ROOT)/LibTorch-Lite-Nightly/install/include/"',
|
|
'OTHER_LDFLAGS' => '-force_load "$(PODS_ROOT)/LibTorch-Lite-Nightly/install/lib/libtorch.a" -force_load "$(PODS_ROOT)/LibTorch-Lite-Nightly/install/lib/libtorch_cpu.a"',
|
|
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++14',
|
|
'CLANG_CXX_LIBRARY' => 'libc++'
|
|
}
|
|
s.pod_target_xcconfig = {
|
|
'HEADER_SEARCH_PATHS' => '$(inherited) "$(PODS_ROOT)/LibTorch-Lite-Nightly/install/include/"',
|
|
'VALID_ARCHS' => 'x86_64 arm64'
|
|
}
|
|
s.library = ['c++', 'stdc++']
|
|
s.frameworks = 'Accelerate', 'MetalPerformanceShaders', 'CoreML'
|
|
end
|