2023-10-24 04:46:30 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
2024-06-29 14:26:20 +00:00
|
|
|
builddir="$1"
|
|
|
|
|
|
|
|
if [[ -z "$builddir" ]]; then
|
|
|
|
echo "Usage: build-docs.sh <build_directory>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-10-24 04:46:30 +00:00
|
|
|
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"
|
2024-06-29 14:26:20 +00:00
|
|
|
meson setup "$builddir" $MESON_ARGS
|
2023-10-24 04:46:30 +00:00
|
|
|
ccache --show-stats
|
|
|
|
|
2024-06-29 14:26:20 +00:00
|
|
|
ninja -C "$builddir" update_girs
|
2023-10-24 04:46:30 +00:00
|
|
|
# Ignore modifications to wrap files made by meson
|
|
|
|
git checkout $(git ls-files 'subprojects/*.wrap')
|
|
|
|
./ci/scripts/check-diff.py "gir files"
|
|
|
|
|
2024-09-21 13:02:27 +00:00
|
|
|
./gst-env.py --builddir "$builddir" ninja -C "$builddir" plugins_doc_caches
|
2023-10-24 04:46:30 +00:00
|
|
|
|
|
|
|
# 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"
|
2024-06-29 14:26:20 +00:00
|
|
|
hotdoc run --conf-file "$builddir/subprojects/gst-docs/GStreamer-doc.json"
|
2023-10-24 04:46:30 +00:00
|
|
|
|
2024-06-29 14:26:20 +00:00
|
|
|
mv "$builddir/subprojects/gst-docs/GStreamer-doc/html" documentation/
|