Commit 2a28c037 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

android: Make it possible to build things that use gstreamer

CCMAIL: hein@kde.org
parent 1ff34fc9
Pipeline #1328 skipped with stage
#!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
wget -c https://gstreamer.freedesktop.org/data/pkg/android/1.15.2/gstreamer-1.0-android-universal-1.15.2.tar.bz2
tar xvf gstreamer-1.0-android-universal-1.15.2.tar.bz2
sed -i.bak -e 's|^prefix=.*|prefix=/opt/kdeandroid-deps|g' armv7/lib/pkgconfig/*.pc #fix prefix
sed -i.bak -e 's|/home/nirbheek/projects/repos/gst/cerbero.git/build/dist/android_universal/armv7|/opt/kdeandroid-deps|g' armv7/lib/pkgconfig/*.pc
sed -i.bak -e 's|/home/nirbheek/projects/repos/gst/cerbero.git/build/android-ndk-18|/opt/android-ndk|g' armv7/lib/pkgconfig/*.pc
cp -r armv7/* /opt/kdeandroid-deps/
git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-good
cd gst-plugins-good/ext/qt
export PKG_CONFIG_SYSROOT_DIR=/
export PKG_CONFIG_LIBDIR=/opt/kdeandroid-deps/lib/pkgconfig/
qmake
make
install libgstqmlgl.a /opt/kdeandroid-deps/lib/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment