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
|
|
|
|
|
2024-09-30 20:16:36 +00:00
|
|
|
source "ci/scripts/source_image_env.sh"
|
2023-10-24 04:46:30 +00:00
|
|
|
|
2024-09-30 20:16:36 +00:00
|
|
|
meson_args="${MESON_ARGS:--Ddoc=enabled -Drs=enabled -Dgst-docs:fatal_warnings=true}"
|
|
|
|
echo "$meson_args"
|
|
|
|
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/
|