mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
Add abicheck.sh
Courtesy of GLib and GTK+. The abicheck.sh is a simple, Linux-only, script to check that we're not leaking private symbols, or that the clutter.symbols file hasn't been updated. In theory, it should go inside the distcheck phase.
This commit is contained in:
parent
de9efd98a7
commit
001e839401
@ -959,6 +959,24 @@ 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_all_c_sources="$(clutter_all_c_sources)"
|
||||
if OS_LINUX
|
||||
TESTS = abicheck.sh
|
||||
endif
|
||||
|
||||
EXTRA_DIST += abicheck.sh
|
||||
|
||||
# GCov rules
|
||||
gcov_sources = $(source_c) $(backend_source_c)
|
||||
include $(top_srcdir)/build/autotools/Makefile.am.gcov
|
||||
|
11
clutter/abicheck.sh
Executable file
11
clutter/abicheck.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#! /bin/sh
|
||||
|
||||
cpp -P \
|
||||
-DG_OS_UNIX \
|
||||
-DCLUTTER_WINDOWING_X11 \
|
||||
-DCLUTTER_WINDOWING_GLX \
|
||||
-DCLUTTER_WINDOWING_GDK \
|
||||
${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 && rm -f expected-abi actual-abi
|
Loading…
Reference in New Issue
Block a user