Exclude headers that are not valid from gtkdoc generation
authorTomas Bzatek <tbzatek@redhat.com>
Wed, 15 Jun 2011 15:48:28 +0000 (17:48 +0200)
committerTomas Bzatek <tbzatek@redhat.com>
Wed, 15 Jun 2011 15:48:28 +0000 (17:48 +0200)
Also regenerate the types list to reflect the changes.

This still throws some warnings regarding non-existent declarations
that we excluded but allows us to distcheck on linux.

docs/Makefile.am

index b398e81..129f2cb 100644 (file)
@@ -7,7 +7,7 @@ DOC_MODULE=pango
 DOC_MAIN_SGML_FILE=pango-docs.sgml
 
 # Extra options to supply to gtkdoc-scan
-SCAN_OPTIONS=--deprecated-guards="PANGO_DISABLE_DEPRECATED"
+SCAN_OPTIONS=--deprecated-guards="PANGO_DISABLE_DEPRECATED" --rebuild-types
 
 # The directory containing the source code. Relative to $(srcdir)
 DOC_SOURCE_DIR=../pango
@@ -45,6 +45,24 @@ IGNORE_HFILES=                       \
        pango-script-lang-table.h       \
        pango-language-sample-table.h
 
+if HAVE_CORE_TEXT
+else
+IGNORE_HFILES+=                        \
+       pangocoretext.h                 \
+       pangocoretext-private.h         \
+       pangocairo-coretext.h           \
+       pangocairo-coretextfont.h
+endif
+
+if HAVE_CAIRO_ATSUI
+else
+IGNORE_HFILES+=                        \
+       pangoatsui.h                    \
+       pangoatsui-private.h            \
+       pangocairo-atsui.h              \
+       pangocairo-atsuifont.h
+endif
+
 # CFLAGS and LDFLAGS for compiling scan program. Only needed
 # if $(DOC_MODULE).types is non-empty.
 INCLUDES =                     \