mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-23 19:32:23 +00:00
Update logic in props.xml to account for shared provider library changes (#8138)
This commit is contained in:
parent
f000dfddbe
commit
4fd7efcf0d
2 changed files with 40 additions and 3 deletions
|
|
@ -45,6 +45,36 @@
|
|||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>false</Visible>
|
||||
</None>
|
||||
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_shared.dll"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_shared.dll')">
|
||||
<Link>onnxruntime_providers_shared.dll</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>false</Visible>
|
||||
</None>
|
||||
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_cuda.dll"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_cuda.dll')">
|
||||
<Link>onnxruntime_providers_cuda.dll</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>false</Visible>
|
||||
</None>
|
||||
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_dnnl.dll"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_dnnl.dll')">
|
||||
<Link>onnxruntime_providers_dnnl.dll</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>false</Visible>
|
||||
</None>
|
||||
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_tensorrt.dll"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_tensorrt.dll')">
|
||||
<Link>onnxruntime_providers_tensorrt.dll</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>false</Visible>
|
||||
</None>
|
||||
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_openvino.dll"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\onnxruntime_providers_openvino.dll')">
|
||||
<Link>onnxruntime_providers_openvino.dll</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>false</Visible>
|
||||
</None>
|
||||
<None Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\dnnl.dll"
|
||||
Condition="('$(PlatformTarget)' == 'x64' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' != 'true')) AND
|
||||
Exists('$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\dnnl.dll')">
|
||||
|
|
|
|||
|
|
@ -47,7 +47,15 @@ def generate_owners(list, owners):
|
|||
list.append('<owners>' + owners + '</owners>')
|
||||
|
||||
|
||||
def generate_description(list, description):
|
||||
def generate_description(list, package_name):
|
||||
description = ''
|
||||
|
||||
if package_name == 'Microsoft.AI.MachineLearning':
|
||||
description = 'This package contains Windows ML binaries.'
|
||||
elif 'Microsoft.ML.OnnxRuntime' in package_name: # This is a Microsoft.ML.OnnxRuntime.* package
|
||||
description = 'This package contains native shared library artifacts ' \
|
||||
'for all supported platforms of ONNX Runtime.'
|
||||
|
||||
list.append('<description>' + description + '</description>')
|
||||
|
||||
|
||||
|
|
@ -153,8 +161,7 @@ def generate_metadata(list, args):
|
|||
generate_version(metadata_list, args.package_version)
|
||||
generate_authors(metadata_list, 'Microsoft')
|
||||
generate_owners(metadata_list, 'Microsoft')
|
||||
generate_description(metadata_list, 'This package contains native shared library artifacts '
|
||||
'for all supported platforms of ONNX Runtime.')
|
||||
generate_description(metadata_list, args.package_name)
|
||||
generate_copyright(metadata_list, '\xc2\xa9 ' + 'Microsoft Corporation. All rights reserved.')
|
||||
generate_tags(metadata_list, 'ONNX ONNX Runtime Machine Learning')
|
||||
generate_icon_url(metadata_list, 'https://go.microsoft.com/fwlink/?linkid=2049168')
|
||||
|
|
|
|||
Loading…
Reference in a new issue