2012-02-09 18:42:27 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
2012-02-23 14:34:26 +00:00
|
|
|
has_x11_backend=no
|
|
|
|
has_gdk_backend=no
|
2012-08-30 23:13:48 +00:00
|
|
|
has_wayland_backend=no
|
2012-02-23 14:34:26 +00:00
|
|
|
for backend in ${CLUTTER_BACKENDS}; do
|
|
|
|
case "$backend" in
|
|
|
|
x11) has_x11_backend=yes ;;
|
|
|
|
gdk) has_gdk_backend=yes ;;
|
2012-08-30 23:13:48 +00:00
|
|
|
wayland) has_wayland_backend=yes ;;
|
2012-02-23 14:34:26 +00:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
cppargs="-DG_OS_UNIX"
|
|
|
|
if [ $has_x11_backend = "yes" ]; then
|
|
|
|
cppargs="$cppargs -DCLUTTER_WINDOWING_X11 -DCLUTTER_WINDOWING_GLX"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $has_gdk_backend = "yes" ]; then
|
|
|
|
cppargs="$cppargs -DCLUTTER_WINDOWING_GDK"
|
|
|
|
fi
|
|
|
|
|
2012-08-30 23:13:48 +00:00
|
|
|
if [ $has_wayland_backend = "yes" ]; then
|
|
|
|
cppargs="$cppargs -DCLUTTER_WINDOWING_WAYLAND"
|
|
|
|
fi
|
|
|
|
|
2013-12-12 18:50:24 +00:00
|
|
|
echo "1..1"
|
|
|
|
echo "# Start of abicheck"
|
|
|
|
|
2012-02-23 14:34:26 +00:00
|
|
|
cpp -P ${cppargs} ${srcdir:-.}/clutter.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE//' -e 's/ DATA//' | sort > expected-abi
|
2012-02-09 18:42:27 +00:00
|
|
|
|
|
|
|
nm -D -g --defined-only .libs/libclutter-1.0.so | cut -d ' ' -f 3 | egrep -v '^(__bss_start|_edata|_end)' | sort > actual-abi
|
2013-12-12 18:50:24 +00:00
|
|
|
|
|
|
|
diff -u expected-abi actual-abi > diff-abi
|
|
|
|
|
|
|
|
if [ $? = 0 ]; then
|
|
|
|
echo "ok 1 expected abi"
|
|
|
|
rm -f diff-abi
|
|
|
|
else
|
|
|
|
echo "not ok 1 expected abi"
|
|
|
|
echo "# difference in diff-abi"
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -f actual-abi expected-abi
|
|
|
|
|
|
|
|
echo "# End of abicheck"
|