mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Add aarch64 as a cross-compilation target (#194)
This commit is contained in:
parent
39012ba05e
commit
d01b7a4736
2 changed files with 7 additions and 3 deletions
|
@ -15,22 +15,25 @@
|
|||
|
||||
FROM debian:stretch
|
||||
|
||||
RUN dpkg --add-architecture arm64
|
||||
RUN dpkg --add-architecture armhf
|
||||
RUN dpkg --add-architecture armel
|
||||
RUN dpkg --add-architecture mipsel
|
||||
RUN apt-get update
|
||||
|
||||
RUN apt-get install -y curl git build-essential crossbuild-essential-armhf crossbuild-essential-armel crossbuild-essential-mipsel
|
||||
RUN apt-get install -y libasound2-dev libasound2-dev:armhf libasound2-dev:armel libasound2-dev:mipsel
|
||||
RUN apt-get install -y curl git build-essential crossbuild-essential-arm64 crossbuild-essential-armel crossbuild-essential-armhf crossbuild-essential-mipsel
|
||||
RUN apt-get install -y libasound2-dev libasound2-dev:arm64 libasound2-dev:armel libasound2-dev:armhf libasound2-dev:mipsel
|
||||
|
||||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||
ENV PATH="/root/.cargo/bin/:${PATH}"
|
||||
RUN rustup target add aarch64-unknown-linux-gnu
|
||||
RUN rustup target add arm-unknown-linux-gnueabi
|
||||
RUN rustup target add arm-unknown-linux-gnueabihf
|
||||
RUN rustup target add mipsel-unknown-linux-gnu
|
||||
|
||||
RUN mkdir /.cargo && \
|
||||
echo '[target.arm-unknown-linux-gnueabihf]\nlinker = "arm-linux-gnueabihf-gcc"' > /.cargo/config && \
|
||||
echo '[target.aarch64-unknown-linux-gnu]\nlinker = "aarch64-linux-gnu-gcc"' > /.cargo/config && \
|
||||
echo '[target.arm-unknown-linux-gnueabihf]\nlinker = "arm-linux-gnueabihf-gcc"' >> /.cargo/config && \
|
||||
echo '[target.arm-unknown-linux-gnueabi]\nlinker = "arm-linux-gnueabi-gcc"' >> /.cargo/config && \
|
||||
echo '[target.mipsel-unknown-linux-gnu]\nlinker = "mipsel-linux-gnu-gcc"' >> /.cargo/config
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
set -eux
|
||||
|
||||
cargo build --release --no-default-features --features alsa-backend
|
||||
cargo build --release --target aarch64-unknown-linux-gnu --no-default-features --features alsa-backend
|
||||
cargo build --release --target arm-unknown-linux-gnueabihf --no-default-features --features alsa-backend
|
||||
cargo build --release --target arm-unknown-linux-gnueabi --no-default-features --features alsa-backend
|
||||
cargo build --release --target mipsel-unknown-linux-gnu --no-default-features --features alsa-backend
|
||||
|
|
Loading…
Reference in a new issue