diff --git a/gtk/Makefile.am b/gtk/Makefile.am index a726377f18..dafebe6e06 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -1308,13 +1308,24 @@ LDADDS = \ $(GTK_DEP_LIBS) if HAVE_INTROSPECTION +# The Quartz clipboard and dnd files aren't annotated for +# introspection. Rather than copy the annotations over from the +# regular files, exclude the quartz ones: introspection_files = \ $(filter-out %private.h gtktextdisplay.h gtktextlayout.h, $(gtkinclude_HEADERS) $(deprecatedinclude_HEADERS)) \ - $(gtk_base_c_sources) \ + $(filter-out gtkclipboard-quartz.c gtkdnd-quartz.c, \ + $(gtk_base_c_sources)) \ gtkprintoperation-unix.c \ gtktypebuiltins.h \ gtktypebuiltins.c +# And include the regular ones: +if USE_QUARTZ +introspection_files += \ + gtkclipboard.c \ + gtkdnd.c +endif + if USE_X11 introspection_files += \ gtksocket.c \