ci: Move MESON_GST_WERROR string into a meson machine file

It's both easier to use that way and we can also reuse it when
building locally.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4281>
This commit is contained in:
Jordan Petridis 2023-03-27 16:48:43 +03:00 committed by GStreamer Marge Bot
parent 68d042742a
commit 578680a530
2 changed files with 45 additions and 18 deletions

View file

@ -64,23 +64,6 @@ variables:
-Dgst-omx:target=generic
-Ddoc=disabled
MESON_GST_WERROR: >
-Dgstreamer:werror=true
-Dgst-plugins-base:werror=true
-Dgst-plugins-good:werror=true
-Dgst-plugins-ugly:werror=true
-Dgst-plugins-bad:werror=true
-Dgst-rtsp-server:werror=true
-Dgst-libav:werror=true
-Dgst-examples:werror=true
-Dgst-editing-services:werror=true
-Dgst-docs:werror=true
-Dgst-omx:werror=true
-Dgst-devtools:werror=true
-Dgst-python:werror=true
-Dgstreamer-vaapi:werror=true
-Dgstreamer-sharp:werror=true
workflow:
# https://docs.gitlab.com/ee/ci/yaml/index.html#switch-between-branch-pipelines-and-merge-request-pipelines
rules:
@ -269,7 +252,7 @@ commitlint:
- export ARGS="--default-library=${BUILD_TYPE:-both} -Dgstreamer:gst_debug=${BUILD_GST_DEBUG:-true} ${MESON_ARGS}"
- |-
if [ $GST_WERROR == "true" ]; then
export ARGS="$ARGS $MESON_GST_WERROR"
export ARGS="$ARGS --native-file ./ci/meson/gst-werror.ini"
fi
- echo $ARGS
- date -R

44
ci/meson/gst-werror.ini Normal file
View file

@ -0,0 +1,44 @@
[gstreamer:built-in options]
werror = true
[gst-plugins-base:built-in options]
werror = true
[gst-plugins-good:built-in options]
werror = true
[gst-plugins-ugly:built-in options]
werror = true
[gst-plugins-bad:built-in options]
werror = true
[gst-rtsp-server:built-in options]
werror = true
[gst-libav:built-in options]
werror = true
[gst-examples:built-in options]
werror = true
[gst-editing-services:built-in options]
werror = true
[gst-docs:built-in options]
werror = true
[gst-omx:built-in options]
werror = true
[gst-devtools:built-in options]
werror = true
[gst-python:built-in options]
werror = true
[gstreamer-vaapi:built-in options]
werror = true
[gstreamer-sharp:built-in options]
werror = true