From 8fc47244b0c182ecb79a6acce69a8d9669bb9202 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 17 Mar 2014 18:52:27 +0000 Subject: [PATCH] build: Remove abicheck.sh We now control the visibility of symbols directly from the header files, so we always have the correct ABI. --- clutter/Makefile.am | 19 ------------------- clutter/abicheck.sh | 46 --------------------------------------------- 2 files changed, 65 deletions(-) delete mode 100755 clutter/abicheck.sh diff --git a/clutter/Makefile.am b/clutter/Makefile.am index 7a67ea57a..164b89b7d 100644 --- a/clutter/Makefile.am +++ b/clutter/Makefile.am @@ -1041,22 +1041,3 @@ typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) CLEANFILES += $(gir_DATA) $(typelib_DATA) endif # HAVE_INTROSPECTION - -# Test -clutter_all_c_sources = \ - $(backend_source_c) \ - $(backend_source_c_priv) \ - $(source_c) \ - $(source_c_priv) \ - $(deprecated_c) \ - $(deprecated_c_priv) \ - $(cally_sources_c) \ - $(built_source_c) - -TESTS_ENVIRONMENT = srcdir="$(srcdir)" CLUTTER_BACKENDS="$(CLUTTER_BACKENDS)" -LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/build/autotools/tap-driver.sh -if OS_LINUX -TESTS = abicheck.sh -endif - -EXTRA_DIST += abicheck.sh diff --git a/clutter/abicheck.sh b/clutter/abicheck.sh deleted file mode 100755 index 845dfe9b6..000000000 --- a/clutter/abicheck.sh +++ /dev/null @@ -1,46 +0,0 @@ -#! /bin/sh - -has_x11_backend=no -has_gdk_backend=no -has_wayland_backend=no -for backend in ${CLUTTER_BACKENDS}; do - case "$backend" in - x11) has_x11_backend=yes ;; - gdk) has_gdk_backend=yes ;; - wayland) has_wayland_backend=yes ;; - 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 - -if [ $has_wayland_backend = "yes" ]; then - cppargs="$cppargs -DCLUTTER_WINDOWING_WAYLAND" -fi - -echo "1..1" -echo "# Start of abicheck" - -cpp -P ${cppargs} ${srcdir:-.}/clutter.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE//' -e 's/ DATA//' | sort > expected-abi - -nm -D -g --defined-only .libs/libclutter-1.0.so | cut -d ' ' -f 3 | egrep -v '^(__bss_start|_edata|_end)' | sort > actual-abi - -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"