Support linking onnxruntime statically for Android (#1619)

This commit is contained in:
Fangjun Kuang
2024-12-14 09:53:44 +08:00
committed by GitHub
parent efb505f578
commit e639c70d78
7 changed files with 479 additions and 46 deletions

View File

@@ -1,6 +1,12 @@
#!/usr/bin/env bash
set -ex
if [ x$BUILD_SHARED_LIBS == xOFF ]; then
echo "BUILD_SHARED_LIBS=OFF is ignored for Android x86."
echo "Always link with libonnxruntime.so"
sleep 2
fi
dir=$PWD/build-android-x86
mkdir -p $dir