Skip to content

Commit

Permalink
Add onnxruntime_providers_qnn.dll to nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlizarraga committed Dec 16, 2024
1 parent db5f0ec commit ea2a141
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tools/nuget/generate_nuspec_for_native_nuget.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ def generate_files(line_list, args):
"tensorrt_ep_shared_lib": "onnxruntime_providers_tensorrt.dll",
"openvino_ep_shared_lib": "onnxruntime_providers_openvino.dll",
"cuda_ep_shared_lib": "onnxruntime_providers_cuda.dll",
"qnn_ep_shared_lib": "onnxruntime_providers_qnn.dll",
"onnxruntime_perf_test": "onnxruntime_perf_test.exe",
"onnx_test_runner": "onnx_test_runner.exe",
}
Expand Down Expand Up @@ -777,6 +778,24 @@ def generate_files(line_list, args):
+ '\\native" />'
)

if args.execution_provider == "qnn":
files_list.append(
"<file src="
+ '"'
+ os.path.join(args.native_build_path, nuget_dependencies["providers_shared_lib"])
+ runtimes_target
+ args.target_architecture
+ '\\native" />'
)
files_list.append(
"<file src="
+ '"'
+ os.path.join(args.native_build_path, nuget_dependencies["qnn_ep_shared_lib"])
+ runtimes_target
+ args.target_architecture
+ '\\native" />'
)

# process all other library dependencies
if is_cpu_package or is_cuda_gpu_package or is_dml_package or is_mklml_package:
# Process dnnl dependency
Expand Down

0 comments on commit ea2a141

Please sign in to comment.