forked from xiph/rav1e
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devcontainer: Build with multi-architecture manifest
- Loading branch information
Showing
5 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM mcr.microsoft.com/devcontainers/rust:dev-1-bookworm | ||
RUN dpkg --add-architecture amd64 \ | ||
&& sed -i 's/bookworm/trixie/g' /etc/apt/sources.list.d/* \ | ||
&& apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get install -y --no-install-recommends \ | ||
libaom-dev libdav1d-dev libaom-dev:amd64 libdav1d-dev:amd64 \ | ||
libclang-dev libgit2-dev libcurl4-openssl-dev libfuzzer-14-dev \ | ||
gcc-x86-64-linux-gnu libc6-dev-amd64-cross nasm dav1d qemu-user \ | ||
meson ninja-build \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& sed -i '304s/union/& aom_codec_cfg/' /usr/include/aom/aom_codec.h \ | ||
&& sed -i '122s/union/& aom_pkt_union/' /usr/include/aom/aom_encoder.h \ | ||
&& sed -i '122s/struct/& aom_frame_pkt/' /usr/include/aom/aom_encoder.h | ||
RUN rustup target add x86_64-unknown-linux-gnu | ||
RUN export CARGO_PROFILE_RELEASE_STRIP=true \ | ||
&& cargo install -q cargo-c --version "0.9.27+cargo-0.74.0" \ | ||
&& cargo install -q cargo-criterion --version "1.1.0" \ | ||
&& cargo install -q cargo-fuzz --version "0.11.2" \ | ||
&& rm -rf /usr/local/cargo/registry | ||
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER=qemu-x86_64 | ||
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS=-Clinker=x86_64-linux-gnu-gcc | ||
ENV PKG_CONFIG_ALLOW_CROSS_x86_64_unknown_linux_gnu=1 | ||
ENV PKG_CONFIG_PATH_x86_64_unknown_linux_gnu=/usr/lib/x64_64-linux-gnu/pkgconfig | ||
ENV PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu=/ | ||
ENV CUSTOM_LIBFUZZER_PATH=/usr/lib/llvm-14/lib/libFuzzer.a | ||
LABEL dev.containers.source=https://github.com/xiph/rav1e | ||
LABEL dev.containers.id=rav1e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "rav1e-devcontainer", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
"dockerfile": "Dockerfile.amd64" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "rav1e-devcontainer", | ||
"build": { | ||
"dockerfile": "Dockerfile.arm64" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters