mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
* onnxruntime react native binding * add react native backend * fix lint comments * fix react native backend for ios * remove unnecessary files to check in * move onnxruntime-common to devDependency * create two podspec files for iphoneos and iphonesimulator * revise README.md and add third party notices for react native * rename a package * rename a package and revise README * add a license into package.json * revise README and comments * fix typo * fix lint errors * fix lint errors * add a prepack script. touch index.tsx and App.tsx to resolve CI issue * remove a unsupported tsx format from clang-format * fix a type and add steps tp publish a react native npm package * resolve comments * fix clang format * remove promise wrap. change prepack to typescript
27 lines
1 KiB
Ruby
27 lines
1 KiB
Ruby
require "json"
|
|
|
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
|
|
Pod::Spec.new do |s|
|
|
s.name = "onnxruntime-react-native.iphoneos"
|
|
s.version = package["version"]
|
|
s.summary = package["description"]
|
|
s.homepage = package["homepage"]
|
|
s.license = package["license"]
|
|
s.authors = package["author"]
|
|
|
|
s.platforms = { :ios => "10.0" }
|
|
s.source = { :git => "https://github.com/Microsoft/onnxruntime.git", :tag => "#{s.version}" }
|
|
|
|
|
|
s.source_files = "ios/*.{h,mm}", "ios/Libraries/**/*.h"
|
|
|
|
s.dependency "React-Core"
|
|
|
|
s.subspec 'Onnxruntime' do |onnxruntime|
|
|
onnxruntime.preserve_paths = 'ios/Libraries/onnxruntime/include/*.h'
|
|
onnxruntime.vendored_libraries = 'ios/Libraries/onnxruntime/lib/iphoneos/libonnxruntime.1.7.0.dylib'
|
|
onnxruntime.xcconfig = { 'HEADER_SEARCH_PATHS' => "${PODS_ROOT}/#{s.name}/Libraries/onnxruntime/include/**", 'LIBRARY_SEARCH_PATHS' => "${PODS_ROOT)/#{s.name}/Libraries/onnxruntime/lib/iphoneos/**" }
|
|
end
|
|
|
|
end
|