MESON_ARGS: >
-Dbad=enabled
-Dbad:androidmedia=enabled
- --cross-file /android_arm64_28.txt
+ --cross-file /opt/android_arm64_28.txt
image: "${CI_REGISTRY_IMAGE}/amd64/android_28:latest"
except:
refs:
arch=$1
api=$2
-toolchain_path=/android-toolchain-$arch-$api
+toolchain_path=/opt/android-toolchain-$arch-$api
# Create standalone toolchains
-/android-ndk/build/tools/make_standalone_toolchain.py --arch $arch --api $api --install-dir $toolchain_path
+/opt/android-ndk/build/tools/make_standalone_toolchain.py --arch $arch --api $api --install-dir $toolchain_path
# Create a cross file that can be passed to meson
-cat > android_${arch}_${api}.txt <<- EOM
+cat > /opt/android_${arch}_${api}.txt <<- EOM
[host_machine]
system = 'android'
cpu_family = 'aarch64'
echo "$ANDROID_NDK_SHA512 android-ndk-$ANDROID_NDK_VERSION-linux-x86_64.zip" | sha512sum -c
unzip android-ndk-$ANDROID_NDK_VERSION-linux-x86_64.zip
rm android-ndk-$ANDROID_NDK_VERSION-linux-x86_64.zip
-mv android-ndk-$ANDROID_NDK_VERSION /android-ndk
+mv android-ndk-$ANDROID_NDK_VERSION /opt/android-ndk
git config --global user.name "Gstbuild Runner"
# Setup Android toolchain
-./root/android-download-ndk.sh
-./root/android-create-toolchain.sh arm64 28
+/root/android-download-ndk.sh
+/root/android-create-toolchain.sh arm64 28
+rm -rf /opt/android-ndk
# get gst-build and make all subprojects available
git clone git://anongit.freedesktop.org/gstreamer/gst-build '/gst-build/'