-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 1.16.0 * Fix * Update build.yml * Fix * Update .gitignore * Update Build-Windows.ps1 * Update Build-Windows.ps1 * Update build.yml
- Loading branch information
Showing
5 changed files
with
94 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
build | ||
prefix | ||
release | ||
*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
Param($Configuration) | ||
|
||
if (Test-Path release) { | ||
Remove-Item release -Recurse -Force | ||
} | ||
New-Item release\$Configuration\bin -ItemType Directory -Force | ||
New-Item release\$Configuration\include -ItemType Directory -Force | ||
New-Item release\$Configuration\lib -ItemType Directory -Force | ||
|
||
python onnxruntime\tools\ci_build\build.py --cmake_generator "Visual Studio 17 2022" --build_dir build --config $Configuration --parallel --skip_tests --skip_submodule_sync --use_dml | ||
|
||
$binArray = | ||
"build\packages\Microsoft.AI.DirectML.1.12.1\bin\x64-win\DirectML.dll", | ||
"build\packages\Microsoft.AI.DirectML.1.12.1\bin\x64-win\DirectML.lib" | ||
|
||
$includeArray = | ||
"onnxruntime\include\onnxruntime\core\framework\provider_options.h", | ||
"onnxruntime\include\onnxruntime\core\providers\cpu\cpu_provider_factory.h", | ||
"onnxruntime\include\onnxruntime\core\providers\dml\dml_provider_factory.h", | ||
"onnxruntime\include\onnxruntime\core\session\onnxruntime_c_api.h", | ||
"onnxruntime\include\onnxruntime\core\session\onnxruntime_cxx_api.h", | ||
"onnxruntime\include\onnxruntime\core\session\onnxruntime_cxx_inline.h", | ||
"onnxruntime\include\onnxruntime\core\session\onnxruntime_float16.h", | ||
"onnxruntime\include\onnxruntime\core\session\onnxruntime_run_options_config_keys.h", | ||
"onnxruntime\include\onnxruntime\core\session\onnxruntime_session_options_config_keys.h" | ||
|
||
$libArray = | ||
"build\$Configuration\_deps\abseil_cpp-build\absl\base\$Configuration\absl_throw_delegate.lib", | ||
"build\$Configuration\_deps\abseil_cpp-build\absl\container\$Configuration\absl_raw_hash_set.lib", | ||
"build\$Configuration\_deps\abseil_cpp-build\absl\hash\$Configuration\absl_city.lib", | ||
"build\$Configuration\_deps\abseil_cpp-build\absl\hash\$Configuration\absl_hash.lib", | ||
"build\$Configuration\_deps\abseil_cpp-build\absl\hash\$Configuration\absl_low_level_hash.lib", | ||
"build\$Configuration\_deps\onnx-build\$Configuration\onnx_proto.lib", | ||
"build\$Configuration\_deps\onnx-build\$Configuration\onnx.lib", | ||
"build\$Configuration\_deps\re2-build\$Configuration\re2.lib", | ||
"build\$Configuration\$Configuration\onnxruntime_common.lib", | ||
"build\$Configuration\$Configuration\onnxruntime_flatbuffers.lib", | ||
"build\$Configuration\$Configuration\onnxruntime_framework.lib", | ||
"build\$Configuration\$Configuration\onnxruntime_graph.lib", | ||
"build\$Configuration\$Configuration\onnxruntime_mlas.lib", | ||
"build\$Configuration\$Configuration\onnxruntime_optimizer.lib", | ||
"build\$Configuration\$Configuration\onnxruntime_providers_dml.lib", | ||
"build\$Configuration\$Configuration\onnxruntime_providers_shared.lib", | ||
"build\$Configuration\$Configuration\onnxruntime_providers.lib", | ||
"build\$Configuration\$Configuration\onnxruntime_session.lib", | ||
"build\$Configuration\$Configuration\onnxruntime_util.lib" | ||
|
||
if ($Configuration -eq "Debug") { | ||
$libArray += "build\Debug\_deps\protobuf-build\Debug\libprotobuf-lited.lib" | ||
} else { | ||
$libArray += "build\Release\_deps\protobuf-build\Release\libprotobuf-lite.lib" | ||
} | ||
|
||
foreach ($bin in $binArray) { | ||
Copy-Item $bin release\$Configuration\bin -Verbose | ||
} | ||
|
||
foreach ($include in $includeArray) { | ||
Copy-Item $include release\$Configuration\include -Verbose | ||
} | ||
|
||
foreach ($lib in $libArray) { | ||
Copy-Item $lib release\$Configuration\lib -Verbose | ||
} | ||
|
||
Compress-Archive release\$Configuration\* release\onnxruntime-windows-$Configuration.zip -Verbose |
Submodule onnxruntime
updated
2539 files