summaryrefslogtreecommitdiff
path: root/gdk/Makefile.am
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-08-09 20:14:43 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-08-09 20:14:43 +0000
commit0742ff3ae3115b443630c61be7b1b7d806f6b5c5 (patch)
tree8637472265882b1c5e52c5a5c7f49dddbab48712 /gdk/Makefile.am
parent2f7c4c1e10091aeca25e6e27dbf7a63f90ddb610 (diff)
downloadgdk-pixbuf-0742ff3ae3115b443630c61be7b1b7d806f6b5c5.tar.gz
Add hidden aliases for exported symbols which are used internally in order
Mon Aug 9 15:41:17 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gdk/Makefile.am: Add rules to generate gdk.def and gdkalias.h from gdk.symbols, and make make check check the abi with abicheck.sh. * gdk/gdk.symbols: New file. Definition of the GDK ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gdk/abicheck.sh: New file. Script to check the actually symbols exported from libgdk-x11.2.0.so against the symbols found in gdk.symbols. * gdk/makegdkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gdk/*.c, gdk/x11/*.c: Include gdkalias.h
Diffstat (limited to 'gdk/Makefile.am')
-rw-r--r--gdk/Makefile.am18
1 files changed, 16 insertions, 2 deletions
diff --git a/gdk/Makefile.am b/gdk/Makefile.am
index 29cfbcc46..36919d8cb 100644
--- a/gdk/Makefile.am
+++ b/gdk/Makefile.am
@@ -8,7 +8,10 @@ EXTRA_DIST = \
gdk.def \
gdkmarshalers.list \
makeenums.pl \
- makefile.msc
+ makefile.msc \
+ gdk.symbols \
+ makegdkalias.pl \
+ abicheck.sh
INCLUDES = \
-DG_LOG_DOMAIN=\"Gdk\" \
@@ -77,7 +80,8 @@ gdk_public_h_sources = \
gdk_headers = \
$(gdk_public_h_sources) \
gdkenumtypes.h \
- gdkprivate.h
+ gdkprivate.h \
+ gdkalias.h
gdk_c_sources = \
gdk.c \
@@ -172,6 +176,16 @@ install-ms-lib:
uninstall-ms-lib:
endif
+gdk.def: gdk.symbols
+ (echo -e EXPORTS; cpp -P -DGDK_WINDOWING_WIN32 -DINCLUDE_VARIABLES gdk.symbols | sed -e '/^$$/d' -e 's/^/\t/') > gdk.def
+
+gdkalias.h: gdk.symbols
+ cpp -P gdk.symbols -DGDK_WINDOWING_X11 | ./makegdkalias.pl > gdkalias.h
+
+if OS_UNIX
+TEST = abicheck.sh
+endif
+
lib_LTLIBRARIES = $(gdktargetlib)