Ticket #386 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Bulding without avahi causes error when generating gtk-doc

Reported by: greg@… Owned by: armin
Priority: normal Milestone: libinfinity 0.2.0
Component: libinfinity Version:
Severity: normal Keywords:
Cc: Launchpad Bug:

Description

Building libinfinity on a system without avahi and enabling gtk-doc causes error due to static specification of inf_avahi_get_type in docs/reference/libinfinity/libinfinity.types file.

Change History

Changed 5 years ago by armin

  • status changed from new to closed
  • resolution set to fixed

I fixed this by passing --rebuild-types to gtkdoc-scan, and adding inf-discovery-avahi.h to the ignored files if avahi is not available.

Generating documentation still yields a few warnings about some inf_discovery_avahi_ functions not being defined anymore, because they still appear in the libinfinity-sections.txt. To fix this, --rebuild-sections could be passed to gtkdoc-scan (which would be nice anyway, so I don't need to add new functions to be documented manually there), but this does not add the *Class structs to the documentation for some reason.

Maybe I'll figure out how to get around this later, but I've had enough gtk-doc for the next few days now ;)

Note: See TracTickets for help on using tickets.