diff --git a/bfx_build_win.ps1 b/bfx_build_win.ps1 index 369747bcab212..7cdf6e958abb4 100644 --- a/bfx_build_win.ps1 +++ b/bfx_build_win.ps1 @@ -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/. diff --git a/bfx_ml.ort_dml_deps.runtime.manifest.in b/bfx_ml.ort_dml_deps.runtime.manifest.in new file mode 100644 index 0000000000000..508181e7cd070 --- /dev/null +++ b/bfx_ml.ort_dml_deps.runtime.manifest.in @@ -0,0 +1,10 @@ + + + + + + +