mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-27 11:50:29 +00:00
22 lines
672 B
Bash
Executable File
22 lines
672 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# install android deps
|
|
sudo apt-get -qq update
|
|
sudo apt-get -qq install --no-install-recommends openjdk-8-jdk unzip
|
|
|
|
# Required directories, set in the environment
|
|
mkdir -p "$ANDROID_HOME"
|
|
mkdir -p "$ANDROID_SDK_ROOT"
|
|
mkdir -p "$ANDROID_NDK_ROOT"
|
|
|
|
# android skd/ndk
|
|
curl -Lo /tmp/android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
|
|
unzip -qq /tmp/android-sdk.zip -d "$ANDROID_SDK"
|
|
rm -f /tmp/android-sdk.zip
|
|
echo y | "$ANDROID_SDK/tools/bin/sdkmanager" --update > /dev/null
|
|
for package in "ndk-bundle"; do
|
|
echo install android $package
|
|
echo y | "$ANDROID_SDK/tools/bin/sdkmanager" "$package" > /dev/null
|
|
done
|