-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…nux-android (#1468)
- Loading branch information
Showing
7 changed files
with
136 additions
and
28 deletions.
There are no files selected for viewing
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,2 +1,5 @@ | ||
[target.aarch64-linux-android] | ||
linker = "./third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang++" | ||
linker = "./third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++" | ||
|
||
[target.x86_64-linux-android] | ||
linker = "./third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android24-clang++" |
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
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
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,20 +1,22 @@ | ||
FROM rustembedded/cross:aarch64-linux-android-0.2.1 | ||
ARG CROSS_BASE_IMAGE | ||
FROM $CROSS_BASE_IMAGE | ||
|
||
RUN apt update && \ | ||
apt install -y curl && \ | ||
curl -L https://github.com/mozilla/sccache/releases/download/v0.2.15/sccache-v0.2.15-x86_64-unknown-linux-musl.tar.gz | tar xzf - | ||
curl -L https://github.com/mozilla/sccache/releases/download/v0.7.7/sccache-v0.7.7-x86_64-unknown-linux-musl.tar.gz | tar xzf - | ||
|
||
ENV TZ=Etc/UTC | ||
COPY ./build/*.sh /chromium_build/ | ||
RUN \ | ||
DEBIAN_FRONTEND=noninteractive \ | ||
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \ | ||
&& apt-get update && apt-get install -y lsb-release sudo \ | ||
&& /chromium_build/install-build-deps-android.sh \ | ||
&& sed -i 's/snapcraft/snapcraftnoinstall/g' /chromium_build/install-build-deps.sh \ | ||
&& /chromium_build/install-build-deps.sh --no-prompt --no-chromeos-fonts \ | ||
&& rm -rf /chromium_build \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN chmod +x /sccache-v0.2.15-x86_64-unknown-linux-musl/sccache | ||
RUN chmod +x /sccache-v0.7.7-x86_64-unknown-linux-musl/sccache | ||
|
||
ENV SCCACHE=/sccache-v0.2.15-x86_64-unknown-linux-musl/sccache | ||
ENV SCCACHE=/sccache-v0.7.7-x86_64-unknown-linux-musl/sccache | ||
ENV SCCACHE_DIR=./target/sccache |
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
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
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