Jenkins scripts port: android compilation

Port script from https://build.webmproject.org/jenkins/job/libwebp__compile_android/
Change-Id: I4b3f7f15990b5c92971ec5faccc82dca815f92d2
Bug: b:185520507

Change-Id: Ic07f8191db7726e459ee56c04bf6e3776b30b1f7
This commit is contained in:
Roberto Alanis
2021-08-28 00:23:10 +00:00
parent df0e808fed
commit c2cf6a93b0
2 changed files with 234 additions and 0 deletions

View File

@ -47,3 +47,13 @@ make_build_dir() {
rm -rf "${build_dir}"
mkdir -p "${build_dir}"
}
#######################################
# Setup ccache for toolchain.
#######################################
setup_ccache() {
if [[ -x "$(command -v ccache)" ]]; then
export CCACHE_CPP2=yes
export PATH="/usr/lib/ccache:${PATH}"
fi
}