mirror of
https://gitlab.com/signald/libraries/libsignal-client.git
synced 2024-12-04 19:46:37 +00:00
export some variables
This commit is contained in:
parent
96d3765fee
commit
34f076e188
2 changed files with 22 additions and 6 deletions
|
@ -41,6 +41,22 @@ compile:
|
|||
- rustup target add "${TARGET}"
|
||||
- RUSTFLAGS="$(../rustflags.sh)" cargo build -p libsignal-jni --target "${TARGET}" --release --verbose
|
||||
- cp -v target/${TARGET}/release/libsignal_jni.so ../libsignal_jni-${TARGET}.so
|
||||
variables:
|
||||
CC: clang-13
|
||||
CXX: clang++-13
|
||||
CPP: clang-cpp-13
|
||||
AR: llvm-ar-13
|
||||
STRIP: llvm-strip-13
|
||||
RANLIB: llvm-ranlib-13
|
||||
AS: llvm-as-13
|
||||
OBJDUMP: llvm-objdump-13
|
||||
OBJCOPY: llvm-objcopy-13
|
||||
READELF: llvm-readelf-13
|
||||
NM: llvm-nm-13
|
||||
CC_LD: lld-13
|
||||
CXX_LD: lld-13
|
||||
LD: lld-13
|
||||
|
||||
artifacts:
|
||||
paths:
|
||||
- libsignal_jni-$TARGET.so
|
||||
|
|
|
@ -6,21 +6,21 @@ apt-get update
|
|||
PACKAGES=("git" "clang" "libclang-dev" "cmake" "make")
|
||||
case "${TARGET}" in
|
||||
aarch64-unknown-linux-gnu|aarch64-unknown-linux-musl)
|
||||
apt-get install -y "${PACKAGES[@]}" crossbuild-essential-arm64 # {cpp,g++,gcc}-aarch64-linux-gnu libc-dev-arm64-cross
|
||||
apt-get install -yq "${PACKAGES[@]}" crossbuild-essential-arm64 # {cpp,g++,gcc}-aarch64-linux-gnu libc-dev-arm64-cross
|
||||
;;
|
||||
arm-unknown-linux-gnueabi|arm-unknown-linux-musleabi)
|
||||
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabi linux-libc-dev-armel-cross
|
||||
apt-get install -yq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabi linux-libc-dev-armel-cross
|
||||
;;
|
||||
arm-unknown-linux-gnueabihf|arm-unknown-linux-musleabihf)
|
||||
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armhf-cross
|
||||
apt-get install -yq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armhf-cross
|
||||
;;
|
||||
armv7-unknown-linux-gnueabihf|armv7-unknown-linux-musleabihf)
|
||||
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armel-cross
|
||||
apt-get install -yq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armel-cross
|
||||
;;
|
||||
x86_64-unknown-linux-musl)
|
||||
apt-get install -y "${PACKAGES[@]}" musl-tools
|
||||
apt-get install -yq "${PACKAGES[@]}" musl-tools
|
||||
;;
|
||||
*)
|
||||
apt-get install -y "${PACKAGES[@]}"
|
||||
apt-get install -yq "${PACKAGES[@]}"
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue