-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
android support for 64bit architecture
Signed-off-by: Godefroy Ponsinet <godefroy.ponsinet@outlook.com>
- Loading branch information
Showing
7 changed files
with
209 additions
and
35 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[target.aarch64-linux-android] | ||
linker = "./third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang" | ||
|
||
[target.x86_64-linux-android] | ||
linker = "./third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!build |
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 |
---|---|---|
|
@@ -4,3 +4,7 @@ | |
/.vscode/ | ||
/.idea/ | ||
/target/ | ||
|
||
third_party/android_ndk | ||
third_party/android_platform | ||
third_party/catapult |
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,16 @@ | ||
[build.env] | ||
passthrough = [ | ||
"RUST_LOG", | ||
"RUST_BACKTRACE", | ||
"V8_FROM_SOURCE", | ||
"CLANG_BASE_PATH", | ||
"GN_ARGS", | ||
"SCCACHE_CACHE_SIZE", | ||
"SCCACHE_IDLE_TIMEOUT" | ||
] | ||
|
||
[target.aarch64-linux-android] | ||
image = "denoland/rusty_v8:aarch64-linux-android" | ||
|
||
[target.x86_64-linux-android] | ||
image = "denoland/rusty_v8:x86_64-linux-android" |
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,53 @@ | ||
# sccache | ||
FROM ubuntu:16.04 AS sccache | ||
|
||
ENV TZ=Etc/UTC | ||
RUN \ | ||
DEBIAN_FRONTEND=noninteractive \ | ||
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \ | ||
&& apt-get update && apt-get install -y curl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ARG sccache_version="0.2.12" | ||
ARG sccache_platform="x86_64-unknown-linux-musl" | ||
ARG sccache_basename="sccache-$sccache_version-$sccache_platform" | ||
ARG sccache_url="https://github.com/mozilla/sccache/releases/download/$sccache_version/$sccache_basename.tar.gz" | ||
RUN \ | ||
cd / \ | ||
&& echo $sccache_url \ | ||
&& curl -LO "$sccache_url" \ | ||
&& tar -xzvf "$sccache_basename.tar.gz" \ | ||
&& mv $sccache_basename/sccache /usr/local/bin/sccache \ | ||
&& rm -rf $sccache_basename | ||
|
||
# aarch64-linux-android | ||
FROM rustembedded/cross:aarch64-linux-android AS aarch64-linux-android | ||
|
||
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 \ | ||
&& rm -rf /chromium_build \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=sccache /usr/local/bin/sccache /usr/local/bin/sccache | ||
ENV SCCACHE_DIR=./target/sccache | ||
|
||
# x86_64-linux-android | ||
FROM rustembedded/cross:x86_64-linux-android AS x86_64-linux-android | ||
|
||
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 \ | ||
&& rm -rf /chromium_build \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=sccache /usr/local/bin/sccache /usr/local/bin/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