mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-11 03:41:33 +00:00
a80fef34a2
This dehardcodes the builddir the scripts use, and allows us to pass it as a cli argument. It also allows us to pass the test stuite string as an arg for test.sh This makes the scripts a bit more usable for local development as well. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7114>
36 lines
959 B
Bash
Executable file
36 lines
959 B
Bash
Executable file
#! /bin/bash
|
|
|
|
builddir="$1"
|
|
|
|
if [[ -z "$builddir" ]]; then
|
|
echo "Usage: build-docs.sh <build_directory>"
|
|
exit 1
|
|
fi
|
|
|
|
set -eux
|
|
|
|
export PATH="/usr/local/cargo/bin/:/usr/local/bin/:$PATH"
|
|
export RUSTUP_HOME="/usr/local/rustup"
|
|
export CARGO_HOME="/usr/local/cargo"
|
|
|
|
./ci/scripts/handle-subprojects-cache.py --cache-dir /subprojects subprojects/
|
|
|
|
echo "$MESON_ARGS"
|
|
meson setup "$builddir" $MESON_ARGS
|
|
ccache --show-stats
|
|
|
|
ninja -C "$builddir" update_girs
|
|
# Ignore modifications to wrap files made by meson
|
|
git checkout $(git ls-files 'subprojects/*.wrap')
|
|
./ci/scripts/check-diff.py "gir files"
|
|
|
|
./gst-env.py ninja -C "$builddir" plugins_doc_caches
|
|
|
|
# Ignore modifications to wrap files made by meson
|
|
git checkout $(git ls-files 'subprojects/*.wrap')
|
|
./ci/scripts/check-diff.py
|
|
|
|
export GI_TYPELIB_PATH="$PWD/girs"
|
|
hotdoc run --conf-file "$builddir/subprojects/gst-docs/GStreamer-doc.json"
|
|
|
|
mv "$builddir/subprojects/gst-docs/GStreamer-doc/html" documentation/
|