com.github.asus4.onnxruntime 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Editor/OrtPostProcessBuild.cs +8 -6
- package/README.md +78 -0
- package/package.json +1 -1
- package/Editor/OrtBuildHelper.cs +0 -12
- package/Editor/OrtBuildHelper.cs.meta +0 -11
- package/Runtime/targets/monoandroid11.0/targets.xml +0 -8
- package/Runtime/targets/monoandroid11.0/targets.xml.meta +0 -7
- package/Runtime/targets/monoandroid11.0.meta +0 -8
- package/Runtime/targets/net6.0-android/targets.xml +0 -8
- package/Runtime/targets/net6.0-android/targets.xml.meta +0 -7
- package/Runtime/targets/net6.0-android.meta +0 -8
- package/Runtime/targets/net6.0-ios/targets.xml +0 -13
- package/Runtime/targets/net6.0-ios/targets.xml.meta +0 -7
- package/Runtime/targets/net6.0-ios.meta +0 -8
- package/Runtime/targets/net6.0-macos/targets.xml +0 -21
- package/Runtime/targets/net6.0-macos/targets.xml.meta +0 -7
- package/Runtime/targets/net6.0-macos.meta +0 -8
- package/Runtime/targets/netstandard/props.xml +0 -179
- package/Runtime/targets/netstandard/props.xml.meta +0 -7
- package/Runtime/targets/netstandard/targets.xml +0 -17
- package/Runtime/targets/netstandard/targets.xml.meta +0 -7
- package/Runtime/targets/netstandard.meta +0 -8
- package/Runtime/targets/xamarinios10/targets.xml +0 -21
- package/Runtime/targets/xamarinios10/targets.xml.meta +0 -7
- package/Runtime/targets/xamarinios10.meta +0 -8
- package/Runtime/targets.meta +0 -8
- /package/Plugins/iOS~/{Info.plist → onnxruntime.xcframework/Info.plist} +0 -0
- /package/Plugins/iOS~/{ios-arm64 → onnxruntime.xcframework/ios-arm64}/onnxruntime.framework/Headers/coreml_provider_factory.h +0 -0
- /package/Plugins/iOS~/{ios-arm64 → onnxruntime.xcframework/ios-arm64}/onnxruntime.framework/Headers/cpu_provider_factory.h +0 -0
- /package/Plugins/iOS~/{ios-arm64 → onnxruntime.xcframework/ios-arm64}/onnxruntime.framework/Headers/onnxruntime_c_api.h +0 -0
- /package/Plugins/iOS~/{ios-arm64 → onnxruntime.xcframework/ios-arm64}/onnxruntime.framework/Headers/onnxruntime_cxx_api.h +0 -0
- /package/Plugins/iOS~/{ios-arm64 → onnxruntime.xcframework/ios-arm64}/onnxruntime.framework/Headers/onnxruntime_cxx_inline.h +0 -0
- /package/Plugins/iOS~/{ios-arm64 → onnxruntime.xcframework/ios-arm64}/onnxruntime.framework/Headers/onnxruntime_float16.h +0 -0
- /package/Plugins/iOS~/{ios-arm64 → onnxruntime.xcframework/ios-arm64}/onnxruntime.framework/Info.plist +0 -0
- /package/Plugins/iOS~/{ios-arm64 → onnxruntime.xcframework/ios-arm64}/onnxruntime.framework/onnxruntime +0 -0
- /package/Plugins/iOS~/{ios-arm64_x86_64-simulator → onnxruntime.xcframework/ios-arm64_x86_64-simulator}/onnxruntime.framework/Headers/coreml_provider_factory.h +0 -0
- /package/Plugins/iOS~/{ios-arm64_x86_64-simulator → onnxruntime.xcframework/ios-arm64_x86_64-simulator}/onnxruntime.framework/Headers/cpu_provider_factory.h +0 -0
- /package/Plugins/iOS~/{ios-arm64_x86_64-simulator → onnxruntime.xcframework/ios-arm64_x86_64-simulator}/onnxruntime.framework/Headers/onnxruntime_c_api.h +0 -0
- /package/Plugins/iOS~/{ios-arm64_x86_64-simulator → onnxruntime.xcframework/ios-arm64_x86_64-simulator}/onnxruntime.framework/Headers/onnxruntime_cxx_api.h +0 -0
- /package/Plugins/iOS~/{ios-arm64_x86_64-simulator → onnxruntime.xcframework/ios-arm64_x86_64-simulator}/onnxruntime.framework/Headers/onnxruntime_cxx_inline.h +0 -0
- /package/Plugins/iOS~/{ios-arm64_x86_64-simulator → onnxruntime.xcframework/ios-arm64_x86_64-simulator}/onnxruntime.framework/Headers/onnxruntime_float16.h +0 -0
- /package/Plugins/iOS~/{ios-arm64_x86_64-simulator → onnxruntime.xcframework/ios-arm64_x86_64-simulator}/onnxruntime.framework/Info.plist +0 -0
- /package/Plugins/iOS~/{ios-arm64_x86_64-simulator → onnxruntime.xcframework/ios-arm64_x86_64-simulator}/onnxruntime.framework/onnxruntime +0 -0
|
@@ -6,7 +6,6 @@ using UnityEditor.Build;
|
|
|
6
6
|
using UnityEditor.Build.Reporting;
|
|
7
7
|
#if UNITY_IOS
|
|
8
8
|
using UnityEditor.iOS.Xcode;
|
|
9
|
-
using UnityEditor.iOS.Xcode.Extensions;
|
|
10
9
|
#endif // UNITY_IOS
|
|
11
10
|
|
|
12
11
|
namespace Microsoft.ML.OnnxRuntime.Editor
|
|
@@ -16,6 +15,10 @@ namespace Microsoft.ML.OnnxRuntime.Editor
|
|
|
16
15
|
/// </summary>
|
|
17
16
|
public class OrtPostProcessBuild : IPostprocessBuildWithReport
|
|
18
17
|
{
|
|
18
|
+
private const string PACKAGE_PATH = "Packages/com.github.asus4.onnxruntime";
|
|
19
|
+
private const string FRAMEWORK_SRC = "Plugins/iOS~/onnxruntime.xcframework";
|
|
20
|
+
private const string FRAMEWORK_DST = "Libraries/onnxruntime.xcframework";
|
|
21
|
+
|
|
19
22
|
public int callbackOrder => 0;
|
|
20
23
|
|
|
21
24
|
public void OnPostprocessBuild(BuildReport report)
|
|
@@ -42,14 +45,13 @@ namespace Microsoft.ML.OnnxRuntime.Editor
|
|
|
42
45
|
PBXProject pbxProject = new();
|
|
43
46
|
pbxProject.ReadFromFile(pbxProjectPath);
|
|
44
47
|
|
|
45
|
-
// Copy XCFramework to
|
|
46
|
-
string frameworkSrcPath = Path.Combine(
|
|
47
|
-
string
|
|
48
|
-
string frameworkDstAbsPath = Path.Combine(report.summary.outputPath, frameworkDstRelPath);
|
|
48
|
+
// Copy XCFramework to the Xcode project folder
|
|
49
|
+
string frameworkSrcPath = Path.Combine(PACKAGE_PATH, FRAMEWORK_SRC);
|
|
50
|
+
string frameworkDstAbsPath = Path.Combine(report.summary.outputPath, FRAMEWORK_DST);
|
|
49
51
|
CopyDir(frameworkSrcPath, frameworkDstAbsPath);
|
|
50
52
|
|
|
51
53
|
// Then add to Xcode project
|
|
52
|
-
string frameworkGuid = pbxProject.AddFile(frameworkDstAbsPath,
|
|
54
|
+
string frameworkGuid = pbxProject.AddFile(frameworkDstAbsPath, FRAMEWORK_DST, PBXSourceTree.Source);
|
|
53
55
|
string targetGuid = pbxProject.GetUnityFrameworkTargetGuid();
|
|
54
56
|
// Note: onnxruntime.xcframework should be linked in build section. Embed framework didn't work.
|
|
55
57
|
// pbxProject.AddFileToEmbedFrameworks(targetGuid, frameworkGuid);
|
package/README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# ONNX Runtime Plugin for Unity
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/com.github.asus4.onnxruntime)
|
|
4
|
+
|
|
5
|
+
Pre-built ONNX Runtime libraries for Unity.
|
|
6
|
+
|
|
7
|
+
## [See Examples](https://github.com/asus4/onnxruntime-unity-examples)
|
|
8
|
+
|
|
9
|
+
[https://github.com/asus4/onnxruntime-unity-examples](https://github.com/asus4/onnxruntime-unity-examples)
|
|
10
|
+
|
|
11
|
+
<https://github.com/asus4/onnxruntime-unity-examples/assets/357497/96ed9913-41b7-401d-a634-f0e2de4fc3c7>
|
|
12
|
+
|
|
13
|
+
## Tested environment
|
|
14
|
+
|
|
15
|
+
- Unity: 2022.3.16f1 (LTS)
|
|
16
|
+
- ONNX Runtime: 1.16.3
|
|
17
|
+
|
|
18
|
+
### Execution Providers & Extensions
|
|
19
|
+
|
|
20
|
+
#### [Execution Providers](https://onnxruntime.ai/docs/execution-providers/)
|
|
21
|
+
|
|
22
|
+
Execution Providers are hardware acceleration libraries for each platform. See [official docs](https://onnxruntime.ai/docs/execution-providers/) for more details.
|
|
23
|
+
|
|
24
|
+
| Platform | CPU | CoreML | NNAPI | CUDA | TensorRT | DirectML | XNNPACK |
|
|
25
|
+
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
26
|
+
| macOS | :white_check_mark: | :white_check_mark: | | | | | |
|
|
27
|
+
| iOS | :white_check_mark: | :white_check_mark: | | | | | :construction: |
|
|
28
|
+
| Android | :white_check_mark: | | :white_check_mark: | | | | :construction: |
|
|
29
|
+
| Windows | :white_check_mark: | | | :construction: | :construction: | :white_check_mark: | |
|
|
30
|
+
| Linux | :white_check_mark: | | | :construction: | :construction: | | |
|
|
31
|
+
|
|
32
|
+
#### [ONNX Runtime Extensions](https://github.com/microsoft/onnxruntime-extensions)
|
|
33
|
+
|
|
34
|
+
ONNX Runtime Extensions are a set of pre/post processing.
|
|
35
|
+
|
|
36
|
+
| Platform | Extensions |
|
|
37
|
+
| --- | --- |
|
|
38
|
+
| macOS | :construction: |
|
|
39
|
+
| iOS | :construction: |
|
|
40
|
+
| Android | :construction: |
|
|
41
|
+
| Windows | :construction: |
|
|
42
|
+
| Linux | :construction: |
|
|
43
|
+
|
|
44
|
+
:white_check_mark: : Supported in Unity Core library
|
|
45
|
+
:construction: : Experimental Preview
|
|
46
|
+
|
|
47
|
+
## How to Install
|
|
48
|
+
|
|
49
|
+
Pre-built libraries are available on [NPM](https://www.npmjs.com/package/com.github.asus4.onnxruntime). Add the following `scopedRegistries` and `dependencies` in `Packages/manifest.json`.
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
"scopedRegistries": [
|
|
53
|
+
{
|
|
54
|
+
"name": "NPM",
|
|
55
|
+
"url": "https://registry.npmjs.com",
|
|
56
|
+
"scopes": [
|
|
57
|
+
"com.github.asus4"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"com.github.asus4.onnxruntime": "0.1.9",
|
|
63
|
+
"com.github.asus4.onnxruntime.unity": "0.1.9",
|
|
64
|
+
"com.github.asus4.onnxruntime.win-x64-gpu": "0.1.9",
|
|
65
|
+
"com.github.asus4.onnxruntime.linux-x64-gpu": "0.1.9",
|
|
66
|
+
... other dependencies
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### What is included in each package
|
|
71
|
+
|
|
72
|
+
- `com.github.asus4.onnxruntime` : Core library
|
|
73
|
+
- CPU provider for all platforms
|
|
74
|
+
- GPU provider for iOS, Android, macOS and Windows(only DirectML)
|
|
75
|
+
- `com.github.asus4.onnxruntime.unity` : (Optional) Utilities for Unity
|
|
76
|
+
- `com.github.asus4.onnxruntime.win-x64-gpu` : (Optional) GPU provider for Windows
|
|
77
|
+
- `com.github.asus4.onnxruntime.linux-x64-gpu` : (Optional) GPU provider for Linux
|
|
78
|
+
- `com.github.asus4.onnxruntime.extensions` : (Optional) ONNX Runtime Extensions
|
package/package.json
CHANGED
package/Editor/OrtBuildHelper.cs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
using System.Linq;
|
|
2
|
-
using UnityEngine;
|
|
3
|
-
using UnityEditor;
|
|
4
|
-
using UnityEditor.Build;
|
|
5
|
-
|
|
6
|
-
namespace Microsoft.ML.OnnxRuntime.Editor
|
|
7
|
-
{
|
|
8
|
-
public static class OrtBuildHelper
|
|
9
|
-
{
|
|
10
|
-
public const string PACKAGE_PATH = "Packages/com.github.asus4.onnxruntime";
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
-
<ItemGroup Condition=" '$(AndroidApplication)'=='true' ">
|
|
4
|
-
<AndroidLibrary Include="$(MSBuildThisFileDirectory)..\..\runtimes\android\native\*">
|
|
5
|
-
<Link>%(Filename)%(Extension)</Link>
|
|
6
|
-
</AndroidLibrary>
|
|
7
|
-
</ItemGroup>
|
|
8
|
-
</Project>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
-
<ItemGroup Condition=" '$(AndroidApplication)'=='true' ">
|
|
4
|
-
<AndroidLibrary Bind="false" Include="$(MSBuildThisFileDirectory)..\..\runtimes\android\native\*">
|
|
5
|
-
<Link>%(Filename)%(Extension)</Link>
|
|
6
|
-
</AndroidLibrary>
|
|
7
|
-
</ItemGroup>
|
|
8
|
-
</Project>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
-
<ItemGroup Condition="('$(OutputType)'!='Library' OR '$(IsAppExtension)'=='True')">
|
|
4
|
-
<NativeReference Include="$(MSBuildThisFileDirectory)..\..\runtimes\ios\native\onnxruntime.xcframework">
|
|
5
|
-
<Kind>Static</Kind>
|
|
6
|
-
<IsCxx>True</IsCxx>
|
|
7
|
-
<SmartLink>True</SmartLink>
|
|
8
|
-
<ForceLoad>True</ForceLoad>
|
|
9
|
-
<LinkerFlags>-lc++</LinkerFlags>
|
|
10
|
-
<WeakFrameworks>CoreML</WeakFrameworks>
|
|
11
|
-
</NativeReference>
|
|
12
|
-
</ItemGroup>
|
|
13
|
-
</Project>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
-
<ItemGroup Condition="('$(OutputType)'!='Library' OR '$(IsAppExtension)'=='True')">
|
|
4
|
-
<NativeReference Condition="'$(Platform)' == 'arm64'" Include="$(MSBuildThisFileDirectory)..\..\runtimes\osx.10.14-arm64\native\libonnxruntime.dylib">
|
|
5
|
-
<Kind>Framework</Kind>
|
|
6
|
-
<IsCxx>True</IsCxx>
|
|
7
|
-
<SmartLink>True</SmartLink>
|
|
8
|
-
<ForceLoad>True</ForceLoad>
|
|
9
|
-
<LinkerFlags>-lc++</LinkerFlags>
|
|
10
|
-
<WeakFrameworks>CoreML</WeakFrameworks>
|
|
11
|
-
</NativeReference>
|
|
12
|
-
<NativeReference Condition="'$(Platform)' == 'x64'" Include="$(MSBuildThisFileDirectory)..\..\runtimes\osx.10.14-x64\native\libonnxruntime.dylib">
|
|
13
|
-
<Kind>Framework</Kind>
|
|
14
|
-
<IsCxx>True</IsCxx>
|
|
15
|
-
<SmartLink>True</SmartLink>
|
|
16
|
-
<ForceLoad>True</ForceLoad>
|
|
17
|
-
<LinkerFlags>-lc++</LinkerFlags>
|
|
18
|
-
<WeakFrameworks>CoreML</WeakFrameworks>
|
|
19
|
-
</NativeReference>
|
|
20
|
-
</ItemGroup>
|
|
21
|
-
</Project>
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
-
|
|
4
|
-
<ItemDefinitionGroup>
|
|
5
|
-
<ClCompile>
|
|
6
|
-
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)../../build/native/include/;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
7
|
-
</ClCompile>
|
|
8
|
-
<ResourceCompile>
|
|
9
|
-
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)../../build/native/include/;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
10
|
-
</ResourceCompile>
|
|
11
|
-
</ItemDefinitionGroup>
|
|
12
|
-
|
|
13
|
-
<ItemDefinitionGroup Condition="'$(PlatformTarget)' == 'ARM64'">
|
|
14
|
-
<Link>
|
|
15
|
-
<AdditionalDependencies>$(MSBuildThisFileDirectory)../../runtimes/win-arm64/native/onnxruntime.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
16
|
-
</Link>
|
|
17
|
-
</ItemDefinitionGroup>
|
|
18
|
-
|
|
19
|
-
<ItemDefinitionGroup Condition="'$(PlatformTarget)' == 'ARM'">
|
|
20
|
-
<Link>
|
|
21
|
-
<AdditionalDependencies>$(MSBuildThisFileDirectory)../../runtimes/win-arm/native/onnxruntime.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
22
|
-
</Link>
|
|
23
|
-
</ItemDefinitionGroup>
|
|
24
|
-
|
|
25
|
-
<ItemDefinitionGroup Condition="'$(PlatformTarget)' == 'x64' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' != 'true')">
|
|
26
|
-
<Link>
|
|
27
|
-
<AdditionalDependencies>$(MSBuildThisFileDirectory)../../runtimes/win-x64/native/onnxruntime.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
28
|
-
</Link>
|
|
29
|
-
</ItemDefinitionGroup>
|
|
30
|
-
|
|
31
|
-
<ItemDefinitionGroup Condition="'$(PlatformTarget)' == 'x86' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' == 'true')">
|
|
32
|
-
<Link>
|
|
33
|
-
<AdditionalDependencies>$(MSBuildThisFileDirectory)../../runtimes/win-x86/native/onnxruntime.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
34
|
-
</Link>
|
|
35
|
-
</ItemDefinitionGroup>
|
|
36
|
-
|
|
37
|
-
<PropertyGroup>
|
|
38
|
-
<EnginePlatform Condition="'$(Platform)' == 'Win32'">x86</EnginePlatform>
|
|
39
|
-
<EnginePlatform Condition="'$(Platform)' == 'ARM64'">arm64</EnginePlatform>
|
|
40
|
-
<EnginePlatform Condition="'$(Platform)' == 'ARM'">arm</EnginePlatform>
|
|
41
|
-
<EnginePlatform Condition="'$(Platform)' != 'Win32' AND '$(Platform)' != 'ARM64'">$(Platform)</EnginePlatform>
|
|
42
|
-
</PropertyGroup>
|
|
43
|
-
|
|
44
|
-
<PropertyGroup>
|
|
45
|
-
<OnnxRuntimeBinary>$(MSBuildThisFileDirectory)..\..\runtimes\win-$(EnginePlatform)\native\onnxruntime.dll</OnnxRuntimeBinary>
|
|
46
|
-
</PropertyGroup>
|
|
47
|
-
|
|
48
|
-
<!-- Assume apps using the Microsoft.ML.OnnxRuntime.DirectML package only want the DirectML binaries (no need for a build dependency). -->
|
|
49
|
-
<PropertyGroup Label="Globals" Condition="Exists('$(MSBuildThisFileDirectory)include\dml_provider_factory.h')">
|
|
50
|
-
<Microsoft_AI_DirectML_SkipDebugLayerCopy>true</Microsoft_AI_DirectML_SkipDebugLayerCopy>
|
|
51
|
-
<Microsoft_AI_DirectML_SkipLink>true</Microsoft_AI_DirectML_SkipLink>
|
|
52
|
-
<Microsoft_AI_DirectML_SkipIncludeDir>true</Microsoft_AI_DirectML_SkipIncludeDir>
|
|
53
|
-
</PropertyGroup>
|
|
54
|
-
|
|
55
|
-
<ItemGroup>
|
|
56
|
-
<!-- x64 -->
|
|
57
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime.dll"
|
|
58
|
-
Condition="'$(PlatformTarget)' == 'x64' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' != 'true')">
|
|
59
|
-
<Link>onnxruntime.dll</Link>
|
|
60
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
61
|
-
<Visible>false</Visible>
|
|
62
|
-
</None>
|
|
63
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_shared.dll"
|
|
64
|
-
Condition="('$(PlatformTarget)' == 'x64' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' != 'true')) AND
|
|
65
|
-
Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_shared.dll')">
|
|
66
|
-
<Link>onnxruntime_providers_shared.dll</Link>
|
|
67
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
68
|
-
<Visible>false</Visible>
|
|
69
|
-
</None>
|
|
70
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_cuda.dll"
|
|
71
|
-
Condition="('$(PlatformTarget)' == 'x64' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' != 'true')) AND
|
|
72
|
-
Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_cuda.dll')">
|
|
73
|
-
<Link>onnxruntime_providers_cuda.dll</Link>
|
|
74
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
75
|
-
<Visible>false</Visible>
|
|
76
|
-
</None>
|
|
77
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_dnnl.dll"
|
|
78
|
-
Condition="('$(PlatformTarget)' == 'x64' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' != 'true')) AND
|
|
79
|
-
Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_dnnl.dll')">
|
|
80
|
-
<Link>onnxruntime_providers_dnnl.dll</Link>
|
|
81
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
82
|
-
<Visible>false</Visible>
|
|
83
|
-
</None>
|
|
84
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_tensorrt.dll"
|
|
85
|
-
Condition="('$(PlatformTarget)' == 'x64' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' != 'true')) AND
|
|
86
|
-
Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_tensorrt.dll')">
|
|
87
|
-
<Link>onnxruntime_providers_tensorrt.dll</Link>
|
|
88
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
89
|
-
<Visible>false</Visible>
|
|
90
|
-
</None>
|
|
91
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_openvino.dll"
|
|
92
|
-
Condition="('$(PlatformTarget)' == 'x64' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' != 'true')) AND
|
|
93
|
-
Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_openvino.dll')">
|
|
94
|
-
<Link>onnxruntime_providers_openvino.dll</Link>
|
|
95
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
96
|
-
<Visible>false</Visible>
|
|
97
|
-
</None>
|
|
98
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\dnnl.dll"
|
|
99
|
-
Condition="('$(PlatformTarget)' == 'x64' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' != 'true')) AND
|
|
100
|
-
Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\dnnl.dll')">
|
|
101
|
-
<Link>dnnl.dll</Link>
|
|
102
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
103
|
-
<Visible>false</Visible>
|
|
104
|
-
</None>
|
|
105
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\mklml.dll"
|
|
106
|
-
Condition="('$(PlatformTarget)' == 'x64' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' != 'true')) AND
|
|
107
|
-
Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\mklml.dll')">
|
|
108
|
-
<Link>mklml.dll</Link>
|
|
109
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
110
|
-
<Visible>false</Visible>
|
|
111
|
-
</None>
|
|
112
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\libiomp5md.dll"
|
|
113
|
-
Condition="('$(PlatformTarget)' == 'x64' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' != 'true')) AND
|
|
114
|
-
Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\libiomp5md.dll')">
|
|
115
|
-
<Link>libiomp5md.dll</Link>
|
|
116
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
117
|
-
<Visible>false</Visible>
|
|
118
|
-
</None>
|
|
119
|
-
|
|
120
|
-
<!-- arm64 -->
|
|
121
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-arm64\native\onnxruntime.dll"
|
|
122
|
-
Condition="'$(PlatformTarget)' == 'ARM64'">
|
|
123
|
-
<Link>onnxruntime.dll</Link>
|
|
124
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
125
|
-
<Visible>false</Visible>
|
|
126
|
-
</None>
|
|
127
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-arm64\native\onnxruntime_providers_shared.dll"
|
|
128
|
-
Condition="'$(PlatformTarget)' == 'ARM64' AND
|
|
129
|
-
Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-arm64\native\onnxruntime_providers_shared.dll')">
|
|
130
|
-
<Link>onnxruntime_providers_shared.dll</Link>
|
|
131
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
132
|
-
<Visible>false</Visible>
|
|
133
|
-
</None>
|
|
134
|
-
|
|
135
|
-
<!-- arm -->
|
|
136
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-arm\native\onnxruntime.dll"
|
|
137
|
-
Condition="'$(PlatformTarget)' == 'ARM'">
|
|
138
|
-
<Link>onnxruntime.dll</Link>
|
|
139
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
140
|
-
<Visible>false</Visible>
|
|
141
|
-
</None>
|
|
142
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-arm\native\onnxruntime_providers_shared.dll"
|
|
143
|
-
Condition="'$(PlatformTarget)' == 'ARM' AND
|
|
144
|
-
Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-arm\native\onnxruntime_providers_shared.dll')">
|
|
145
|
-
<Link>onnxruntime_providers_shared.dll</Link>
|
|
146
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
147
|
-
<Visible>false</Visible>
|
|
148
|
-
</None>
|
|
149
|
-
|
|
150
|
-
<!-- x86 -->
|
|
151
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x86\native\onnxruntime.dll"
|
|
152
|
-
Condition="('$(PlatformTarget)' == 'x86' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' == 'true'))">
|
|
153
|
-
<Link>onnxruntime.dll</Link>
|
|
154
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
155
|
-
<Visible>false</Visible>
|
|
156
|
-
</None>
|
|
157
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x86\native\dnnl.dll"
|
|
158
|
-
Condition="('$(PlatformTarget)' == 'x86' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' == 'true')) AND
|
|
159
|
-
Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x86\native\dnnl.dll')">
|
|
160
|
-
<Link>dnnl.dll</Link>
|
|
161
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
162
|
-
<Visible>false</Visible>
|
|
163
|
-
</None>
|
|
164
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x86\native\mklml.dll"
|
|
165
|
-
Condition="('$(PlatformTarget)' == 'x86' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' == 'true')) AND
|
|
166
|
-
Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x86\native\mklml.dll')">
|
|
167
|
-
<Link>mklml.dll</Link>
|
|
168
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
169
|
-
<Visible>false</Visible>
|
|
170
|
-
</None>
|
|
171
|
-
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x86\native\libiomp5md.dll"
|
|
172
|
-
Condition="('$(PlatformTarget)' == 'x86' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' == 'true')) AND
|
|
173
|
-
Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x86\native\libiomp5md.dll')">
|
|
174
|
-
<Link>libiomp5md.dll</Link>
|
|
175
|
-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
176
|
-
<Visible>false</Visible>
|
|
177
|
-
</None>
|
|
178
|
-
</ItemGroup>
|
|
179
|
-
</Project>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
-
<Target Name="Microsoft_ML_OnnxRuntime_CheckPrerequisites" BeforeTargets="BeforeBuild">
|
|
4
|
-
<!--
|
|
5
|
-
Special case .NET Core portable applications. When building a portable .NET Core app,
|
|
6
|
-
the PlatformTarget is empty, and you don't know until runtime (i.e. which dotnet.exe)
|
|
7
|
-
what processor architecture will be used.
|
|
8
|
-
-->
|
|
9
|
-
<Error Condition="('$(PlatformTarget)' != 'x64' AND '$(PlatformTarget)' != 'arm32' AND '$(PlatformTarget)' != 'arm64' AND '$(PlatformTarget)' != 'x86' AND '$(PlatformTarget)' != 'AnyCPU') AND
|
|
10
|
-
('$(OutputType)' == 'Exe' OR '$(OutputType)'=='WinExe') AND
|
|
11
|
-
!('$(TargetFrameworkIdentifier)' == '.NETCoreApp' AND '$(PlatformTarget)' == '') AND
|
|
12
|
-
('$(TargetFrameworkIdentifier)' != 'Xamarin.iOS' AND
|
|
13
|
-
$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'ios') AND
|
|
14
|
-
'$(SuppressOnnxRuntimePlatformCompatibilityError)' != 'true'"
|
|
15
|
-
Text="Microsoft.ML.OnnxRuntime only supports the AnyCPU, x64, arm32, arm64 and x86 platforms at this time."/>
|
|
16
|
-
</Target>
|
|
17
|
-
</Project>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
-
<ItemGroup Condition="('$(OutputType)'!='Library' OR '$(IsAppExtension)'=='True')">
|
|
4
|
-
<NativeReference Condition="'$(Platform)' == 'iPhoneSimulator'" Include="$(MSBuildThisFileDirectory)..\..\runtimes\ios\native\onnxruntime.xcframework\ios-arm64_x86_64-simulator\onnxruntime.framework">
|
|
5
|
-
<Kind>Framework</Kind>
|
|
6
|
-
<IsCxx>True</IsCxx>
|
|
7
|
-
<SmartLink>True</SmartLink>
|
|
8
|
-
<ForceLoad>True</ForceLoad>
|
|
9
|
-
<LinkerFlags>-lc++</LinkerFlags>
|
|
10
|
-
<WeakFrameworks>CoreML</WeakFrameworks>
|
|
11
|
-
</NativeReference>
|
|
12
|
-
<NativeReference Condition="'$(Platform)' == 'iPhone'" Include="$(MSBuildThisFileDirectory)..\..\runtimes\ios\native\onnxruntime.xcframework\ios-arm64\onnxruntime.framework">
|
|
13
|
-
<Kind>Framework</Kind>
|
|
14
|
-
<IsCxx>True</IsCxx>
|
|
15
|
-
<SmartLink>True</SmartLink>
|
|
16
|
-
<ForceLoad>True</ForceLoad>
|
|
17
|
-
<LinkerFlags>-lc++</LinkerFlags>
|
|
18
|
-
<WeakFrameworks>CoreML</WeakFrameworks>
|
|
19
|
-
</NativeReference>
|
|
20
|
-
</ItemGroup>
|
|
21
|
-
</Project>
|
package/Runtime/targets.meta
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|