зеркало из https://github.com/microsoft/msquic.git
add support for arm packages (#2945)
This commit is contained in:
Родитель
ad6c7463e8
Коммит
a4ee768ddb
|
@ -31,8 +31,16 @@ if [ "$OS" == 'Linux' ]; then
|
|||
ARCH='x64'
|
||||
LIBDIR="lib64"
|
||||
else
|
||||
ARCH=x86
|
||||
LIBDIR="lib"
|
||||
if [ "$ARCH" == "aarch64" ]; then
|
||||
ARCH=arm64
|
||||
else
|
||||
if [ "$ARCH" == "armv7l" ]; then
|
||||
ARCH=arm
|
||||
else
|
||||
ARCH=x86
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
else
|
||||
if [ "$OS" == 'Darwin' ]; then
|
||||
|
@ -53,6 +61,9 @@ while :; do
|
|||
|
||||
lowerI="$(echo $1 | tr "[:upper:]" "[:lower:]")"
|
||||
case $lowerI in
|
||||
-a|-arch|--arch)
|
||||
ARCH=$1
|
||||
;;
|
||||
-d|-debug|--debug)
|
||||
CONFIG=Debug
|
||||
;;
|
||||
|
@ -119,9 +130,16 @@ if [ "$OS" == "linux" ]; then
|
|||
${FILES}
|
||||
|
||||
# Debian/Ubuntu
|
||||
if [ "$LIBDIR" == 'lib64' ]; then
|
||||
if [ "$ARCH" == 'x64' ]; then
|
||||
LIBDIR="lib/x86_64-linux-gnu"
|
||||
fi
|
||||
if [ "$ARCH" == 'arm64' ];then
|
||||
LIBDIR="lib/aarch64-linux-gnu"
|
||||
fi
|
||||
if [ "$ARCH" == 'arm' ];then
|
||||
LIBDIR="lib/arm-linux-gnueabihf"
|
||||
fi
|
||||
|
||||
FILES="${ARTIFACTS}/libmsquic.${LIBEXT}.${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}=/usr/${LIBDIR}/libmsquic.${LIBEXT}.${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}"
|
||||
FILES="${FILES} ${ARTIFACTS}/libmsquic.${LIBEXT}.${VER_MAJOR}=/usr/${LIBDIR}/libmsquic.${LIBEXT}.${VER_MAJOR}"
|
||||
if [ -e "$ARTIFACTS/libmsquic.lttng.${LIBEXT}.${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}" ]; then
|
||||
|
|
Загрузка…
Ссылка в новой задаче