From 66359220722e182d5c090b1fef75ca6cae00a7f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Wed, 21 Mar 2018 10:04:21 +0000 Subject: [PATCH] Platform-dependent header ignore list for gio docs This is a bit awkward. A more elegant solution would have ignored *all* headers and then *un-ignored* some of them if some conditions were met. Sadly, we cannot really ignore all headers and then "unignore" them: that's not how arrays in Meson work. https://bugzilla.gnome.org/show_bug.cgi?id=794557 --- docs/reference/gio/meson.build | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/docs/reference/gio/meson.build b/docs/reference/gio/meson.build index 33d1557ac..47046f250 100644 --- a/docs/reference/gio/meson.build +++ b/docs/reference/gio/meson.build @@ -55,7 +55,6 @@ if get_option('gtk_doc') 'gnetworkmonitorportal.h', 'gnotificationbackend.h', 'gnotification-private.h', - 'gosxappinfo.h', 'gpollfilemonitor.h', 'gproxyresolverportal.h', 'gregistrysettingsbackend.h', @@ -76,9 +75,7 @@ if get_option('gtk_doc') 'gunixvolume.h', 'gunixvolumemonitor.h', 'gwin32appinfo.h', - 'gwin32inputstream.h', 'gwin32mount.h', - 'gwin32outputstream.h', 'gwin32registrykey.h', 'gwin32resolver.h', 'gwin32volumemonitor.h', @@ -86,6 +83,34 @@ if get_option('gtk_doc') 'xdp-dbus.h', ] + if host_system == 'windows' + ignore_headers += [ + 'gfiledescriptorbased.h', + 'gunixconnection.h', + 'gunixcredentialsmessage.h', + 'gunixmounts.h', + 'gunixfdlist.h', + 'gunixfdmessage.h', + 'gunixinputstream.h', + 'gunixoutputstream.h', + 'gunixsocketaddress.h', + 'gdesktopappinfo.h', + 'gosxappinfo.h', + ] + else + if glib_have_cocoa + ignore_headers += ['gdesktopappinfo.h'] + else + ignore_headers += ['gosxappinfo.h'] + endif + + ignore_headers += [ + 'gwin32networkmonitor.h', + 'gwin32inputstream.h', + 'gwin32outputstream.h', + ] + endif + ignore_decorators = [ 'GLIB_VAR', 'G_GNUC_INTERNAL',