mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-10 11:39:46 +00:00
ci: build GStreamer instead of importing tarball
Makes it much easier to update to a new gst version.
This commit is contained in:
parent
23545fcf7d
commit
99f91167af
3 changed files with 15 additions and 9 deletions
|
@ -35,7 +35,7 @@ stages:
|
|||
.debian:10:
|
||||
variables:
|
||||
FDO_DISTRIBUTION_VERSION: 10
|
||||
FDO_DISTRIBUTION_TAG: '$RUST_VERSION-2020-04-16.0'
|
||||
FDO_DISTRIBUTION_TAG: '$RUST_VERSION-2020-04-16.1'
|
||||
# Only stuff inside the repo directory can be cached
|
||||
# Override the CARGO_HOME variable to force its location
|
||||
CARGO_HOME: "${CI_PROJECT_DIR}/.cargo_home"
|
||||
|
@ -62,7 +62,7 @@ stages:
|
|||
- .fdo.container-build@debian
|
||||
stage: prep
|
||||
variables:
|
||||
FDO_DISTRIBUTION_PACKAGES: "build-essential curl liborc-0.4-dev libglib2.0-dev libxml2-dev libgtk-3-dev libegl1-mesa libgles2-mesa libgl1-mesa-dri libgl1-mesa-glx libwayland-egl1-mesa xz-utils libssl-dev git wget ca-certificates"
|
||||
FDO_DISTRIBUTION_PACKAGES: "build-essential curl liborc-0.4-dev libglib2.0-dev libxml2-dev libgtk-3-dev libegl1-mesa libgles2-mesa libgl1-mesa-dri libgl1-mesa-glx libwayland-egl1-mesa xz-utils libssl-dev git wget ca-certificates ninja-build python3-pip flex bison libglib2.0-dev"
|
||||
FDO_DISTRIBUTION_EXEC: 'bash ci/install-gst.sh && bash ci/install-rust.sh $RUST_VERSION'
|
||||
|
||||
build-stable:
|
||||
|
|
10
ci/env.sh
10
ci/env.sh
|
@ -2,8 +2,8 @@ export RUSTUP_HOME='/usr/local/rustup'
|
|||
export CARGO_HOME='/usr/local/cargo'
|
||||
export PATH=$PATH:/usr/local/cargo/bin
|
||||
|
||||
export PKG_CONFIG_PATH=/usr/local/gstreamer/lib/x86_64-linux-gnu/pkgconfig
|
||||
export GST_PLUGIN_SYSTEM_PATH=/usr/local/gstreamer/lib/x86_64-linux-gnu/gstreamer-1.0
|
||||
export GST_PLUGIN_SCANNER=/usr/local/gstreamer/libexec/gstreamer-1.0/gst-plugin-scanner
|
||||
export PATH=$PATH:/usr/local/gstreamer/bin
|
||||
export LD_LIBRARY_PATH=/usr/local/gstreamer/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
|
||||
export PKG_CONFIG_PATH=/usr/local/lib/x86_64-linux-gnu/pkgconfig
|
||||
export GST_PLUGIN_SYSTEM_PATH=/usr/local/lib/x86_64-linux-gnu/gstreamer-1.0
|
||||
export GST_PLUGIN_SCANNER=/usr/local/libexec/gstreamer-1.0/gst-plugin-scanner
|
||||
export PATH=$PATH:/usr/local/bin
|
||||
export LD_LIBRARY_PATH=/usr/local/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
|
||||
|
|
|
@ -1,2 +1,8 @@
|
|||
curl -L https://people.freedesktop.org/~slomo/gstreamer-1.16.1.tar.xz | tar xJC /usr/local
|
||||
sed -i "s;prefix=/root/gstreamer;prefix=/usr/local/gstreamer;g" /usr/local/gstreamer/lib/x86_64-linux-gnu/pkgconfig/*.pc
|
||||
pip3 install meson==0.54.0
|
||||
|
||||
git clone --depth 1 https://gitlab.freedesktop.org/gstreamer/gst-build.git --branch 1.16.2
|
||||
cd gst-build
|
||||
|
||||
meson build -D prefix=/usr/local -D devtools=disabled -D examples=disabled -D gtk_doc=disabled -D introspection=disabled -D libav=disabled -D libnice=disabled -D python=disabled -D ugly=disabled -D vaapi=disabled
|
||||
ninja -C build
|
||||
ninja -C build install
|
||||
|
|
Loading…
Reference in a new issue