com.github.asus4.onnxruntime 0.1.2 → 0.1.3
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/OrtBuildHelper.cs +0 -41
- package/Editor/OrtPostProcessBuild.cs +1 -3
- package/Plugins/Linux/x64/libonnxruntime.so +0 -0
- package/Plugins/Linux/x64/libonnxruntime.so.meta +81 -0
- package/Plugins/Linux/x64.meta +8 -0
- package/Plugins/Linux.meta +8 -0
- package/Plugins/Windows/x64/onnxruntime.dll +0 -0
- package/Plugins/Windows/x64/onnxruntime.dll.meta +81 -0
- package/Plugins/Windows/x64.meta +8 -0
- package/Plugins/Windows.meta +8 -0
- package/Runtime/AssemblyInfo.shared.cs +12 -0
- package/Runtime/Microsoft.ML.OnnxRuntime.csproj +370 -0
- package/Runtime/Microsoft.ML.OnnxRuntime.csproj.meta +7 -0
- package/Runtime/Microsoft.ML.OnnxRuntime.sln +25 -0
- package/Runtime/Microsoft.ML.OnnxRuntime.sln.meta +7 -0
- package/Runtime/NativeMethods.shared.cs +12 -0
- package/Runtime/SessionOptions.shared.cs +12 -0
- package/ThirdPartyNotices.txt +6266 -0
- package/ThirdPartyNotices.txt.meta +7 -0
- package/package.json +1 -3
- package/Editor/OrtPreProcessBuild.cs +0 -36
- package/Editor/OrtPreProcessBuild.cs.meta +0 -11
package/package.json
CHANGED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
using UnityEngine;
|
|
2
|
-
using UnityEditor;
|
|
3
|
-
using UnityEditor.Build;
|
|
4
|
-
using UnityEditor.Build.Reporting;
|
|
5
|
-
|
|
6
|
-
namespace Microsoft.ML.OnnxRuntime.Editor
|
|
7
|
-
{
|
|
8
|
-
/// <summary>
|
|
9
|
-
/// Custom pre-process build for ONNX Runtime
|
|
10
|
-
/// </summary>
|
|
11
|
-
public class OrtPreProcessBuild : IPreprocessBuildWithReport
|
|
12
|
-
{
|
|
13
|
-
public int callbackOrder => 0;
|
|
14
|
-
|
|
15
|
-
public void OnPreprocessBuild(BuildReport report)
|
|
16
|
-
{
|
|
17
|
-
switch (report.summary.platform)
|
|
18
|
-
{
|
|
19
|
-
case BuildTarget.iOS:
|
|
20
|
-
OrtBuildHelper.AddDefine(NamedBuildTarget.iOS, "__IOS__", "__ENABLE_COREML__");
|
|
21
|
-
break;
|
|
22
|
-
case BuildTarget.Android:
|
|
23
|
-
OrtBuildHelper.RemoveDefine(NamedBuildTarget.Android, "__ENABLE_COREML__");
|
|
24
|
-
OrtBuildHelper.AddDefine(NamedBuildTarget.Android, "__ANDROID__");
|
|
25
|
-
break;
|
|
26
|
-
case BuildTarget.StandaloneOSX:
|
|
27
|
-
OrtBuildHelper.AddDefine(NamedBuildTarget.Standalone, "__ENABLE_COREML__");
|
|
28
|
-
break;
|
|
29
|
-
// TODO: Add support for other platforms
|
|
30
|
-
default:
|
|
31
|
-
Debug.Log("OnnxPreProcessBuild.OnPreprocessBuild for target " + report.summary.platform + " is not supported");
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|