1Description: 2Substitute for a part of glib version 2.12.4. 3 4Files: 5lib/glib.in.h 6lib/glibconfig.in.h 7lib/glib/ghash.c 8lib/glib/ghash.in.h 9lib/glib/glist.c 10lib/glib/glist.in.h 11lib/glib/gmacros.in.h 12lib/glib/gmessages.c 13lib/glib/gprimes.c 14lib/glib/gprimes.in.h 15lib/glib/gprintfint.in.h 16lib/glib/gstrfuncs.c 17lib/glib/gstrfuncs.in.h 18lib/glib/gstring.c 19lib/glib/gstring.in.h 20lib/glib/gtypes.in.h 21m4/libglib.m4 22 23Depends-on: 24snprintf-posix 25strerror 26vasprintf 27xalloc 28xvasprintf 29no-c++ 30 31configure.ac: 32# In libtextstyle, we don't want to use an external libglib, because its 33# dynamic relocations have an impact on the startup time of a program that 34# is linked with it. As you can see by using 'readelf -r ... | wc -l', 35# 'readelf -d ... | grep NEEDED', and 'nm --dynamic ...': 36# - libglib-2.0.so has more than 300 relocations and depends on libpcre. 37# - But libtextstyle needs only less than 10% of libglib: out of the more 38# than 1600 exported symbols, libtextstyle needs less than 160. 39# So, force the use of the included libglib part. 40gl_LIBGLIB([yes]) 41 42Makefile.am: 43if INCLUDED_LIBGLIB 44lib_LIBADD += libglib_rpl.la 45lib_DEPENDENCIES += libglib_rpl.la 46noinst_LTLIBRARIES += libglib_rpl.la 47endif 48 49libglib_rpl_la_SOURCES = \ 50 glib/ghash.c \ 51 glib/glist.c \ 52 glib/gmessages.c \ 53 glib/gprimes.c \ 54 glib/gstrfuncs.c \ 55 glib/gstring.c 56libglib_rpl_la_CPPFLAGS = $(AM_CPPFLAGS) $(NO_CXX) 57 58BUILT_SOURCES += $(LIBGLIB_H) 59 60glib.h: glib.in.h 61 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 62 cat $(srcdir)/glib.in.h; \ 63 } > $@-t 64 mv -f $@-t $@ 65 66glibconfig.h: glibconfig.in.h 67 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 68 cat $(srcdir)/glibconfig.in.h; \ 69 } > $@-t 70 mv -f $@-t $@ 71 72glib/ghash.h: glib/ghash.in.h 73 test -d glib || $(MKDIR_P) glib 74 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 75 cat $(srcdir)/glib/ghash.in.h; \ 76 } > $@-t 77 mv -f $@-t $@ 78 79glib/glist.h: glib/glist.in.h 80 test -d glib || $(MKDIR_P) glib 81 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 82 cat $(srcdir)/glib/glist.in.h; \ 83 } > $@-t 84 mv -f $@-t $@ 85 86glib/gmacros.h: glib/gmacros.in.h 87 test -d glib || $(MKDIR_P) glib 88 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 89 cat $(srcdir)/glib/gmacros.in.h; \ 90 } > $@-t 91 mv -f $@-t $@ 92 93glib/gprimes.h: glib/gprimes.in.h 94 test -d glib || $(MKDIR_P) glib 95 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 96 cat $(srcdir)/glib/gprimes.in.h; \ 97 } > $@-t 98 mv -f $@-t $@ 99 100glib/gprintfint.h: glib/gprintfint.in.h 101 test -d glib || $(MKDIR_P) glib 102 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 103 cat $(srcdir)/glib/gprintfint.in.h; \ 104 } > $@-t 105 mv -f $@-t $@ 106 107glib/gstrfuncs.h: glib/gstrfuncs.in.h 108 test -d glib || $(MKDIR_P) glib 109 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 110 cat $(srcdir)/glib/gstrfuncs.in.h; \ 111 } > $@-t 112 mv -f $@-t $@ 113 114glib/gstring.h: glib/gstring.in.h 115 test -d glib || $(MKDIR_P) glib 116 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 117 cat $(srcdir)/glib/gstring.in.h; \ 118 } > $@-t 119 mv -f $@-t $@ 120 121glib/gtypes.h: glib/gtypes.in.h 122 test -d glib || $(MKDIR_P) glib 123 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 124 cat $(srcdir)/glib/gtypes.in.h; \ 125 } > $@-t 126 mv -f $@-t $@ 127 128MOSTLYCLEANFILES += \ 129 glib.h \ 130 glibconfig.h \ 131 glib/ghash.h \ 132 glib/glist.h \ 133 glib/gmacros.h \ 134 glib/gprimes.h \ 135 glib/gprintfint.h \ 136 glib/gstrfuncs.h \ 137 glib/gstring.h \ 138 glib/gtypes.h 139MOSTLYCLEANFILES += glib.h-t glibconfig.h-t glib/*.h-t 140 141if GL_COND_LIBTOOL 142lib_LDFLAGS += $(LTLIBGLIB) 143endif 144 145Include: 146#include <glib.h> 147 148License: 149LGPL 150 151Maintainer: 152GNOME, Bruno Haible 153 154