mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
ci: Move the build cflags to a meson native file
Similar to what we use for the werror Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5543>
This commit is contained in:
parent
58119a3dea
commit
5685db7358
3 changed files with 4 additions and 8 deletions
|
@ -40,13 +40,6 @@ variables:
|
|||
WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH"
|
||||
WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH"
|
||||
|
||||
_CI_CFLAGS: >-
|
||||
-Wno-error=deprecated-declarations
|
||||
-ggdb
|
||||
-fasynchronous-unwind-tables
|
||||
-fno-omit-frame-pointer
|
||||
-mno-omit-leaf-frame-pointer
|
||||
|
||||
DEFAULT_MESON_ARGS: >-
|
||||
-Dlibnice:tests=disabled
|
||||
-Dlibnice:examples=disabled
|
||||
|
|
3
ci/meson/gst-ci-cflags.ini
Normal file
3
ci/meson/gst-ci-cflags.ini
Normal file
|
@ -0,0 +1,3 @@
|
|||
[built-in options]
|
||||
c_args = [ '-Wno-error=deprecated-declarations', '-ggdb', '-fno-omit-frame-pointer', '-mno-omit-leaf-frame-pointer', '-fasynchronous-unwind-tables']
|
||||
cpp_args = c_args
|
|
@ -28,7 +28,7 @@ if [ "$GST_WERROR" = "true" ]; then
|
|||
fi
|
||||
|
||||
date -R
|
||||
meson setup build/ -Dc_args="${_CI_CFLAGS}" -Dcpp_args="${_CI_CFLAGS}" ${ARGS}
|
||||
meson setup build/ --native-file ./ci/meson/gst-ci-cflags.ini ${ARGS}
|
||||
date -R
|
||||
meson compile -C build/
|
||||
date -R
|
||||
|
|
Loading…
Reference in a new issue