Skip to content

Commit

Permalink
Build(apk): 🛠️ 添加构建依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
a76yyyy committed Jan 31, 2025
1 parent 818b5fd commit 5cac61b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions alpine/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@ license="MIT"
makedepends="
abseil-cpp-dev
bash
boost-dev
cmake
eigen-dev
flatbuffers-dev
g++
gnu-libiconv-dev
gtest-dev
icu-dev
libexecinfo-dev
libtool
linux-headers
make
nlohmann-json
patch
protobuf-dev
py3-numpy
py3-numpy-dev
Expand All @@ -29,6 +36,7 @@ makedepends="
python3-dev
re2-dev
samurai
util-linux
zlib-dev
"
subpackages="
Expand Down Expand Up @@ -63,6 +71,8 @@ build() {
-Donnxruntime_BUILD_SHARED_LIB=ON \
-Donnxruntime_BUILD_UNIT_TESTS="$(want_check && echo ON || echo OFF)" \
-Donnxruntime_ENABLE_PYTHON=ON \
-Donnxruntime_USE_PREINSTALLED_EIGEN=ON \
-Deigen_SOURCE_PATH=/usr/include/eigen3 \
-Donnxruntime_USE_NEURAL_SPEED=OFF # fix for 1.17.0, see: https://github.com/microsoft/onnxruntime/pull/19382
# hack for protobuf 23
sed -i 's|CMAKE_CXX_STANDARD 11|CMAKE_CXX_STANDARD 17|' build/_deps/onnx-src/CMakeLists.txt
Expand Down

0 comments on commit 5cac61b

Please sign in to comment.