diff options
author | Colin Walters <walters@verbum.org> | 2009-08-17 16:50:57 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-08-17 17:04:23 -0400 |
commit | 078300ef69ab0855a7cc39503880cbc8b2e23494 (patch) | |
tree | 3c999e0063d6f614c0712838e02d779ba3d6a55d | |
parent | f1d8d01c81b10a8c5ed47fef7a3fba10aa66140c (diff) | |
download | pango-078300ef69ab0855a7cc39503880cbc8b2e23494.tar.gz |
Re-enable introspection, delete PangoX
This patch relies on the latest GObject Introspection; bump
requirement to 0.6.4.
First, delete the PangoX.gir since it's "incredibly deprecated"
in Owen's words =)
Next, clean up the PangoCairo.gir logic; we need to include the .gir
for the relevant font backend (currently just FT2), because the
font object gets expanded.
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | pango/Makefile.am | 69 |
2 files changed, 28 insertions, 43 deletions
diff --git a/configure.in b/configure.in index f3f242eb..0bca1d2f 100644 --- a/configure.in +++ b/configure.in @@ -482,7 +482,7 @@ PKG_CHECK_MODULES(LIBTHAI, libthai >= $LIBTHAI_REQUIRED_VERSION, have_libthai=tr # Checks for GObject Introspection # have_introspection=false -PKG_CHECK_MODULES(INTROSPECTION, gobject-introspection-1.0 >= 0.6.2, have_introspection=true, have_introspection=false) +PKG_CHECK_MODULES(INTROSPECTION, gobject-introspection-1.0 >= 0.6.4, have_introspection=true, have_introspection=false) AM_CONDITIONAL(HAVE_INTROSPECTION, $have_introspection) G_IR_SCANNER= diff --git a/pango/Makefile.am b/pango/Makefile.am index f73a8ff4..fc41e7f2 100644 --- a/pango/Makefile.am +++ b/pango/Makefile.am @@ -163,12 +163,12 @@ pango-features.h: Pango-1.0.gir: $(libpango_1_0_la_SOURCES) Pango-1.0.gir: $(pango_headers) Pango-1.0.gir: libpango-1.0.la -Pango-1.0.gir: $(G_IR_SCANNER) +Pango-1.0.gir: $(G_IR_SCANNER) Makefile $(G_IR_SCANNER) -v --namespace Pango --nsversion=1.0 \ --add-include-path=$(srcdir) --add-include-path=. \ --include=GObject-2.0 \ --include=cairo-1.0 \ - --library=pango-1.0 \ + --library=libpango-1.0.la \ --libtool="$(LIBTOOL)" \ --output $@ \ --pkg gobject-2.0 \ @@ -187,7 +187,6 @@ pangoinclude_HEADERS += $(pangox_headers) lib_LTLIBRARIES += libpangox-1.0.la aliasdir = $(sysconfdir)/pango alias_DATA = pangox.aliases -BUILT_GIRSOURCES += PangoX-1.0.gir endif pangox_headers = pangox.h @@ -220,25 +219,6 @@ libpangox_1_0_la_SOURCES = \ pangox-fontcache.c \ pangox-fontmap.c -PangoX-1.0.gir: $(libpangox_1_0_la_SOURCES) -PangoX-1.0.gir: $(pangox_headers) -PangoX-1.0.gir: libpangox-1.0.la -PangoX-1.0.gir: Pango-1.0.gir $(G_IR_SCANNER) - $(G_IR_SCANNER) -v --namespace PangoX --nsversion=1.0 \ - --add-include-path=$(srcdir) --add-include-path=. \ - --include=GObject-2.0 \ - --include=xlib-2.0 \ - --include=Pango-1.0 \ - --library=pangox-1.0 \ - --libtool="$(LIBTOOL)" \ - --output $@ \ - --pkg gobject-2.0 \ - --pkg freetype2 \ - --pkg pangox \ - -I$(top_srcdir) \ - $(pangox_public_sources) \ - $(pangox_headers) - # ------------------- libpangoft2 ------------------- if HAVE_FREETYPE @@ -298,14 +278,14 @@ pangoft2-win32-res.o: pangoft2.rc PangoFT2-1.0.gir: $(pangoft2_headers) PangoFT2-1.0.gir: $(libpangoft2_1_0_la_SOURCES) PangoFT2-1.0.gir: libpangoft2-1.0.la -PangoFT2-1.0.gir: Pango-1.0.gir $(G_IR_SCANNER) +PangoFT2-1.0.gir: Pango-1.0.gir $(G_IR_SCANNER) Makefile $(G_IR_SCANNER) -v --namespace PangoFT2 --nsversion=1.0 \ --add-include-path=$(srcdir) --add-include-path=. \ --include=GObject-2.0 \ --include=Pango-1.0 \ --include=freetype2-2.0 \ --include=fontconfig-2.0 \ - --library=pangoft2-1.0 \ + --library=libpangoft2-1.0.la \ --libtool="$(LIBTOOL)" \ --output $@ \ --pkg gobject-2.0 \ @@ -355,14 +335,14 @@ libpangoxft_1_0_la_SOURCES = \ PangoXft-1.0.gir: $(pangoxft_headers) PangoXft-1.0.gir: $(libpangoxft_1_0_la_SOURCES) PangoXft-1.0.gir: libpangoxft-1.0.la -PangoXft-1.0.gir: Pango-1.0.gir PangoFT2-1.0.gir $(G_IR_SCANNER) +PangoXft-1.0.gir: Pango-1.0.gir PangoFT2-1.0.gir $(G_IR_SCANNER) Makefile $(G_IR_SCANNER) -v --namespace PangoXft --nsversion=1.0 \ --add-include-path=$(srcdir) --add-include-path=. \ --include=GObject-2.0 \ --include=xft-2.0 \ --include=xlib-2.0 \ --include=PangoFT2-1.0 \ - --library=pangoxft-1.0 \ + --library=libpangoxft-1.0.la \ --libtool="$(LIBTOOL)" \ --output $@ \ --pkg gobject-2.0 \ @@ -412,6 +392,7 @@ endif if HAVE_CAIRO_FREETYPE libpangocairo_1_0_la_LIBADD += libpangoft2-$(PANGO_API_VERSION).la $(FREETYPE_LIBS) libpangocairo_1_0_la_DEPENDENCIES += libpangoft2-$(PANGO_API_VERSION).la +PANGOCAIRO_FONT_BACKEND_GI_MODULE = PangoFT2-1.0 libpangocairo_1_0_la_SOURCES += \ pangocairo-fcfont.c \ @@ -436,18 +417,22 @@ pangoinclude_HEADERS += pangoatsui.h libpangocairo_1_0_la_CFLAGS = -xobjective-c libpangocairo_1_0_la_LDFLAGS += -framework CoreFoundation -framework Carbon -framework Cocoa libpangocairo_1_0_la_LIBADD += $(INCLUDED_ATSUI_MODULES) +# We don't have an ATSUI GIR right now, so this is just hypothetical +PANGOCAIRO_FONT_BACKEND_GI_MODULE = PangoATSUI-1.0 endif PangoCairo-1.0.gir: $(libpangocairo_1_0_la_SOURCES) PangoCairo-1.0.gir: $(pangocairo_headers) PangoCairo-1.0.gir: libpangocairo-1.0.la -PangoCairo-1.0.gir: Pango-1.0.gir $(G_IR_SCANNER) +PangoCairo-1.0.gir: Pango-1.0.gir $(PANGOCAIRO_FONT_BACKEND_GI_MODULE).gir $(G_IR_SCANNER) Makefile $(G_IR_SCANNER) -v --namespace PangoCairo --nsversion=1.0 \ --add-include-path=$(srcdir) --add-include-path=. \ --include=GObject-2.0 \ --include=cairo-1.0 \ --include=Pango-1.0 \ - --library=pangocairo-1.0 \ + --add-include-path=. \ + --include=$(PANGOCAIRO_FONT_BACKEND_GI_MODULE) \ + --library=libpangocairo-1.0.la \ --libtool="$(LIBTOOL)" \ --output $@ \ --pkg gobject-2.0 \ @@ -564,20 +549,20 @@ pangocairo-$(PANGO_API_VERSION).lib: libpangocairo-$(PANGO_API_VERSION).la $(src # ------------------- introspection ------------------- -#if HAVE_INTROSPECTION -# -#girdir = $(GIRDIR) -#dist_gir_DATA = $(BUILT_GIRSOURCES) -# -#EXTRA_DIST += $(BUILT_GIRSOURCES) -# -#typelibsdir = $(TYPELIBDIR) -#typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) -# -#%.typelib: %.gir $(G_IR_COMPILER) -# LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}. $(G_IR_COMPILER) --includedir=$(srcdir) --includedir=. $(G_IR_COMPILER_OPTS) $< -o $(builddir)/$(@F) -# -#endif # HAVE_INTROSPECTION +if HAVE_INTROSPECTION + +girdir = $(GIRDIR) +dist_gir_DATA = $(BUILT_GIRSOURCES) + +EXTRA_DIST += $(BUILT_GIRSOURCES) + +typelibsdir = $(TYPELIBDIR) +typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) + +%.typelib: %.gir $(G_IR_COMPILER) + LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}. $(G_IR_COMPILER) --includedir=$(srcdir) --includedir=. $(G_IR_COMPILER_OPTS) $< -o $(builddir)/$(@F) + +endif # HAVE_INTROSPECTION # ------------------- pango-querymodules ------------------- |