File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
packaging/debian_3rdparty Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,10 @@ OS=$(uname -s)
2727if [ " $OS " = " Darwin" ]; then
2828 DIR_OS=" MacOS"
2929 CMAKE_EXTRA_DEFINES+=' CMAKE_OSX_ARCHITECTURES="arm64"'
30+ SUFFIX=" ${LIBONNXRUNTIME_VERSION} .dylib"
3031else
3132 DIR_OS=" Linux"
33+ SUFFIX=" so.${LIBONNXRUNTIME_VERSION} "
3234fi
3335
3436CONFIG=" Release"
@@ -42,9 +44,16 @@ CONFIG="Release"
4244 --skip_tests \
4345 --cmake_extra_defines $CMAKE_EXTRA_DEFINES
4446
45- # copying .pc file
47+ # copying onnxruntime files
4648mkdir -p " ${PREFIX} " /lib/pkgconfig/
47- cp -r build/$DIR_OS /$CONFIG /libonnxruntime.* ${PREFIX} /lib/pkgconfig/
49+ mkdir -p " ${PREFIX} " /include/onnxruntime/
50+
51+ cp build/$DIR_OS /$CONFIG /libonnxruntime.pc ${PREFIX} /lib/pkgconfig/
52+ cp build/$DIR_OS /$CONFIG /libonnxruntime.$SUFFIX ${PREFIX} /lib/
53+ cp include/onnxruntime/core/session/onnxruntime_cxx_inline.h ${PREFIX} /include/onnxruntime/
54+ cp include/onnxruntime/core/session/onnxruntime_float16.h ${PREFIX} /include/onnxruntime/
55+ cp include/onnxruntime/core/session/onnxruntime_c_api.h ${PREFIX} /include/onnxruntime/
56+ cp include/onnxruntime/core/session/onnxruntime_cxx_api.h ${PREFIX} /include/onnxruntime/
4857
4958cd ../..
5059rm -fr tmp
You can’t perform that action at this time.
0 commit comments