mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-21 19:18:55 +00:00
* Add test for iOS package (#7816) * Add test for iOS package * Add readme * fix pep8 warning * Addressed CR comments, fixed CI failure * Address CR comments * Update readme.md * Update package name and readme, added comments to the podspec * Add podspec template for ios package, update build settings (#7907) * Add podspec template for ios package * minor formatting update * Add spec.source_files for header files * Update spec.public_header_files to spec.source_files * minor update * Add iOS packaging pipeline (#8264) Create a pipeline to produce the iOS package artifacts. * [iOS] Packaging pipeline improvements. (#8324) Updates to the iOS packaging pipeline: - Make it harder to overwrite package archives accidentally when uploading (fails if the archive already exists) - Only upload package archives for release builds - Some clean up * Add metadata_props to ORT model (#8340) * Add metadata_props to ORT model * Minor update * Update python binding, and increase the minimal pipeline size threshold * Fixed a small bug in serializing ir_version * Remove temp ort.py.fbs and add it to .gitignore * Add iOS/macOS static framework (#8357) * Add ability to generate ios static framework * Fix typos * Add pod cache clean, update some comments of previous commit * Fix CI failure with newly added cpuinfo library * Update test model (CoreML requires node has a name) * Addressed CR comments * Fix iOS packaging pipeline failure (#8433) * Fix optimizer crash (#8274) * Update iOS packaging script to default build static framework, disable bitcode (#8533) * default package build to static, disable bitcode * fix pipeline failure * Address CR comments * Add HardSigmoid to mobile packages. Used by PyTorch MobileNet v3 (#8552) * bump the version number to 1.8.2 * Change Windows GPU machine pool to onnxruntime-win-cuda11-0 * [Objective-C API] Fix ORTIsCoreMLExecutionProviderAvailable link error when used from Swift. (#8350) Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com> Co-authored-by: RandySheriffH <48490400+RandySheriffH@users.noreply.github.com> Co-authored-by: Scott McKay <skottmckay@gmail.com> Co-authored-by: Changming Sun <chasun@microsoft.com>
53 lines
1.5 KiB
Text
53 lines
1.5 KiB
Text
Pod::Spec.new do |s|
|
|
s.name = 'onnxruntime-mobile-objc'
|
|
s.version = '@VERSION@'
|
|
s.summary = 'ONNX Runtime Mobile Objective-C Pod'
|
|
|
|
s.description = <<-DESC
|
|
A pod for the ONNX Runtime Mobile Objective-C API.
|
|
DESC
|
|
|
|
s.homepage = 'https://github.com/microsoft/onnxruntime'
|
|
s.license = { :type => 'MIT', :file => @LICENSE_FILE@ }
|
|
s.author = { "ONNX Runtime" => "onnxruntime@microsoft.com" }
|
|
s.source = { :http => "file:///http_source_placeholder" }
|
|
s.ios.deployment_target = '@IOS_DEPLOYMENT_TARGET@'
|
|
s.preserve_paths = [ @LICENSE_FILE@ ]
|
|
s.default_subspec = "Core"
|
|
s.static_framework = true
|
|
|
|
s.subspec "Core" do |core|
|
|
core.dependency "onnxruntime-mobile-c", "#{s.version}"
|
|
core.requires_arc = true
|
|
core.compiler_flags = "-std=c++17", "-fobjc-arc-exceptions", "-Wall", "-Wextra", "-Werror"
|
|
|
|
include_dirs = [
|
|
@INCLUDE_DIR_LIST@
|
|
].map { |relative_include_dir|
|
|
'"${PODS_TARGET_SRCROOT}/' + relative_include_dir + '"'
|
|
}
|
|
|
|
core.pod_target_xcconfig = {
|
|
"HEADER_SEARCH_PATHS" => include_dirs.join(" "),
|
|
"EXCLUDED_ARCHS[sdk=iphonesimulator*]": "arm64",
|
|
}
|
|
|
|
core.public_header_files = [
|
|
@PUBLIC_HEADER_FILE_LIST@
|
|
]
|
|
|
|
core.source_files = [
|
|
@SOURCE_FILE_LIST@
|
|
]
|
|
|
|
core.test_spec "Tests" do |test|
|
|
test.source_files = [
|
|
@TEST_SOURCE_FILE_LIST@
|
|
]
|
|
|
|
test.resources = [
|
|
@TEST_RESOURCE_FILE_LIST@
|
|
]
|
|
end
|
|
end
|
|
end
|