Skip to content

Commit

Permalink
include script to generate assembly manifest for onnxruntime.dll & Di…
Browse files Browse the repository at this point in the history
…rectML.dll
  • Loading branch information
carsonswope committed Dec 15, 2023
1 parent ef5e9fd commit 8f69024
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bfx_build_win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,12 @@ Copy-Item .\build\Windows\Release\Release\onnxruntime_providers_shared.lib .\bui
Copy-Item .\build\Windows\Release\Release\DirectML.dll .\build\dist_release\lib\.
Copy-Item -r .\include .\build\dist_release\.

# generate manifest for libraries with DLL hashes
Copy-Item bfx_ml.ort_dml_deps.runtime.manifest.in .\build\dist_release\lib\.
Push-Location .\build\dist_release\lib
mt.exe -manifest bfx_ml.ort_dml_deps.runtime.manifest.in -hashupdate -out:bfx_ml.ort_dml_deps.runtime.manifest
Remove-Item bfx_ml.ort_dml_deps.runtime.manifest.in
Pop-Location

# to copy libraries to consuming binary dir!
# cp .\build\dist_release\lib\*.dll $env:BFX_ROOT/ai/build/.
10 changes: 10 additions & 0 deletions bfx_ml.ort_dml_deps.runtime.manifest.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<noInheritable></noInheritable>
<assemblyIdentity
type="win32"
name="bfx_ml.ort_dml_deps.runtime"
version="1.0.0.0" processorArchitecture="amd64">
</assemblyIdentity>
<file name="DirectML.dll" hash="" hashalg="SHA1"></file>
<file name="onnxruntime.dll" hash="" hashalg="SHA1"></file>
</assembly>

0 comments on commit 8f69024

Please sign in to comment.