ANDROID: Patch Android to use new NDK layout

This lets us cleanup the image
This commit is contained in:
Le Philousophe
2020-12-14 18:51:02 +00:00
parent a8d34fed32
commit af28417ca9
3 changed files with 294 additions and 10 deletions
+7 -8
View File
@@ -17,15 +17,14 @@ do_sdk_install "ndk;${ANDROID_NDK_VERSION}"
cd "ndk/${ANDROID_NDK_VERSION}"
# Don't cleanup as OpenSSL still need them
# Cleanup unused parts of the NDK (which will get removed in future versions)
#rm -rf platforms sources/cxx-stl sysroot
#for d in toolchains/*; do
# if [ "$d" = "toolchains/llvm" ]; then
# continue
# fi
# rm -rf "$d"
#done
rm -rf platforms sources/cxx-stl sysroot
for d in toolchains/*; do
if [ "$d" = "toolchains/llvm" ]; then
continue
fi
rm -rf "$d"
done
mkdir -p "${ANDROID_NDK_ROOT}/"
# mv is faster than cp