Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add onnx and onnxruntime-gpu #14

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .pipelines/build-package-preconfigured.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ parameters:
- libpng
- libzip-static
- libzip-dynamic
- onnx
- openssl-static
- opencv4
- pango
Expand Down
9 changes: 9 additions & 0 deletions custom-steps/onnx/post-build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
param (
[Parameter(Mandatory=$true)][string]$BuildArtifactsPath
)

Import-Module "$PSScriptRoot/../../ps-modules/Build" -DisableNameChecking -Force

if ((Get-IsOnMacOS)) {
Remove-DylibSymlinks -BuildArtifactsPath $BuildArtifactsPath
}
10 changes: 10 additions & 0 deletions custom-steps/onnx/pre-build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Import-Module "$PSScriptRoot/../../ps-modules/Build" -DisableNameChecking

if ((Get-IsOnMacOS)) {
# python3 requires pkg-config and autoconf-archive: https://github.com/python/cpython/blob/3.11/configure.ac#L18
$installPkgs = "automake", "pkg-config", "autoconf-archive"
foreach( $pkg in $installPkgs ) {
Write-Message "Installing $pkg..."
brew install $pkg
}
}
13 changes: 13 additions & 0 deletions preconfigured-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@
"linkType": "dynamic",
"buildType": "release"
}
},
{
"name": "onnx",
"mac": {
"package": "onnx",
"linkType": "dynamic",
"buildType": "release"
},
"win": {
"package": "onnx",
"linkType": "dynamic",
"buildType": "release"
}
}
]
}