mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-16 20:36:06 +00:00
ci/abi-check: provide the header dir to abidw
Allows the abi diff check to correctly filter out private types. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7981>
This commit is contained in:
parent
ee3802cf71
commit
fc30006290
4 changed files with 5 additions and 4 deletions
|
@ -13,6 +13,6 @@ variables:
|
|||
|
||||
LINT_TAG: '2024-02-20.0'
|
||||
|
||||
ABI_CHECK_TAG: '2024-11-18.0'
|
||||
ABI_CHECK_TAG: '2024-11-28.0'
|
||||
|
||||
WINDOWS_TAG: '2024-11-12.0'
|
||||
|
|
|
@ -8,6 +8,6 @@ install_prefix=/tmp/install
|
|||
MESON_ARGS="${meson_args} --prefix ${install_prefix} --optimization=g" ./ci/scripts/build.sh build/
|
||||
ninja -C build/ install
|
||||
|
||||
find ${install_prefix}/lib64 -type f -iname *libgst*.so.* -print0 | xargs -0 -I '{}' bash ./ci/scripts/save-abi.sh {} ${ABI_CHECK_CACHE}
|
||||
find ${install_prefix}/lib64 -type f -iname *libgst*.so.* -print0 | xargs -0 -I '{}' bash ./ci/scripts/save-abi.sh {} ${ABI_CHECK_CACHE} ${install_prefix}/include/gstreamer-1.0
|
||||
|
||||
rm -rf $install_prefix
|
||||
|
|
|
@ -23,7 +23,7 @@ install_prefix=/tmp/install
|
|||
MESON_ARGS="${meson_args} --prefix ${install_prefix} --optimization=g" ./ci/scripts/build.sh build/
|
||||
ninja -C $builddir install
|
||||
|
||||
find ${install_prefix}/lib64 -type f -iname *libgst*.so.* -print0 | xargs -0 -I '{}' bash ${CI_PROJECT_DIR}/ci/scripts/save-abi.sh {} ${ABI_CHECK_DIR}
|
||||
find ${install_prefix}/lib64 -type f -iname *libgst*.so.* -print0 | xargs -0 -I '{}' bash ${CI_PROJECT_DIR}/ci/scripts/save-abi.sh {} ${ABI_CHECK_DIR} ${install_prefix}/include/gstreamer-1.0
|
||||
|
||||
fail_file=abi-compare-failure
|
||||
if ! find ${ABI_CHECK_CACHE} -type f -print0 | xargs -0 -I '{}' bash ${CI_PROJECT_DIR}/ci/scripts/compare-abi.sh {} ${CI_PROJECT_DIR}/${ABI_CHECK_DIR}/ ${fail_file}
|
||||
|
|
|
@ -4,7 +4,8 @@ set -eux
|
|||
|
||||
filename=${1}
|
||||
output_dir=${2}
|
||||
header_dir=${3}
|
||||
module=$(basename ${filename} | cut -f1,2 -d'.')
|
||||
|
||||
mkdir -p ${output_dir}
|
||||
abidw -o ${output_dir}/${module}.abi --drop-private-types ${filename}
|
||||
abidw -o ${output_dir}/${module}.abi --drop-private-types --headers-dir ${header_dir} ${filename}
|
||||
|
|
Loading…
Reference in a new issue