mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
### Description Changes vcpkg manifest and configuration file (vcpkg.json & vcpkg-configuration.json) * Update vcpkg version to https://github.com/microsoft/vcpkg/releases/tag/2024.12.16 * Use protobuf 3.21.12(= `v21.12`) to sync with [cmake/deps.txt](https://github.com/microsoft/onnxruntime/blob/main/cmake/deps.txt) * Resolve https://github.com/microsoft/onnxruntime/issues/22750 * Add `onnx` to vcpkg manifest so `find_package(ONNX)` and `find_dependency(Protobuf)` can work as expected. * Currently, It uses 1.16.2 * v1.17.0 will become available after https://github.com/microsoft/vcpkg/pull/42942 However, `onnx` in vcpkg doesn't configure `ONNX_DISABLE_STATIC_REGISTRATION` build option. * https://github.com/microsoft/vcpkg/pull/38879 * Create "cmake/vcpkg-triplets/" folder and triplet files which use `VCPKG_CMAKE_CONFIGURE_OPTIONS` for the option * This requires `VCPKG_OVERLAY_TRIPLETS` environment variable for CI steps, which is a bit inconvenient. I will try to find simple way to get same result ### Motivation and Context * Help #23158 * "ONNX is not consumed from vcpkg" * "Mismatch protobuf version. When vcpkg is enabled , we should not fetch protoc from Github which may cause version mismatches." * https://github.com/microsoft/vcpkg/pull/43126 * #21348
88 lines
1.6 KiB
JSON
88 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
|
|
"name": "onnxruntime",
|
|
"version-date": "2024-09-10",
|
|
"description": "ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator",
|
|
"homepage": "https://onnxruntime.ai/",
|
|
"license": "MIT",
|
|
"dependencies": [
|
|
"abseil",
|
|
{
|
|
"name": "boost-config",
|
|
"version>=": "1.82.0"
|
|
},
|
|
{
|
|
"name": "boost-mp11",
|
|
"version>=": "1.82.0"
|
|
},
|
|
"cpuinfo",
|
|
"cxxopts",
|
|
"date",
|
|
"dlpack",
|
|
{
|
|
"name": "flatbuffers",
|
|
"host": true,
|
|
"version>=": "23.5.26"
|
|
},
|
|
{
|
|
"name": "flatbuffers",
|
|
"version>=": "23.5.26"
|
|
},
|
|
"ms-gsl",
|
|
"nlohmann-json",
|
|
{
|
|
"name": "nsync",
|
|
"platform": "!windows",
|
|
"version>=": "1.26.0"
|
|
},
|
|
{
|
|
"name": "onnx",
|
|
"version>=": "1.16.2"
|
|
},
|
|
"optional-lite",
|
|
{
|
|
"name": "protobuf",
|
|
"version>=": "3.21.12"
|
|
},
|
|
{
|
|
"name": "protobuf",
|
|
"host": true,
|
|
"version>=": "3.21.12"
|
|
},
|
|
"re2",
|
|
"safeint",
|
|
"utf8-range",
|
|
{
|
|
"name": "vcpkg-cmake",
|
|
"host": true
|
|
},
|
|
{
|
|
"name": "vcpkg-cmake-config",
|
|
"host": true
|
|
},
|
|
"wil",
|
|
{
|
|
"name": "zlib",
|
|
"platform": "windows"
|
|
}
|
|
],
|
|
"features": {
|
|
"tests": {
|
|
"description": "Build ONNXRuntime unit tests",
|
|
"dependencies": [
|
|
"benchmark",
|
|
"gtest"
|
|
]
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"name": "protobuf",
|
|
"version": "3.21.12#4"
|
|
},
|
|
{
|
|
"name": "flatbuffers",
|
|
"version": "23.5.26"
|
|
}
|
|
]
|
|
}
|