mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
b5056fbaf9
The grouping in files/headers is not used anymore, and the function attributes neither. Adapt abicheck scripts and .def file generation rules accordingly.
14 lines
524 B
Bash
Executable File
14 lines
524 B
Bash
Executable File
#! /bin/sh
|
|
|
|
egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glib/glibconfig.h" > glibconfig.cpp
|
|
|
|
INCLUDES="-include ${top_builddir:-..}/config.h"
|
|
INCLUDES="$INCLUDES -include glibconfig.cpp"
|
|
|
|
cpp -DINCLUDE_VARIABLES -P $INCLUDES ${srcdir:-.}/gobject.symbols | sed -e '/^$/d' -e 's/ PRIVATE$//' | sort > expected-abi
|
|
rm glibconfig.cpp
|
|
|
|
nm -D -g --defined-only .libs/libgobject-2.0.so | cut -d ' ' -f 3 | egrep -v '^(__bss_start|_edata|_end)' | sort > actual-abi
|
|
|
|
diff -u expected-abi actual-abi && rm expected-abi actual-abi
|