Imported Upstream version 2.55.1
[platform/upstream/glib.git] / docs / reference / gio / meson.build
index 7f04677..33d1557 100644 (file)
@@ -1,4 +1,4 @@
-if get_option('with-docs') != 'no'
+if get_option('gtk_doc')
   subdir('xml')
 
   ignore_headers = [
@@ -52,9 +52,12 @@ if get_option('with-docs') != 'no'
     'gnetworkmonitorbase.h',
     'gnetworkmonitornetlink.h',
     'gnetworkmonitornm.h',
+    'gnetworkmonitorportal.h',
     'gnotificationbackend.h',
     'gnotification-private.h',
+    'gosxappinfo.h',
     'gpollfilemonitor.h',
+    'gproxyresolverportal.h',
     'gregistrysettingsbackend.h',
     'gresourcefile.h',
     'gsettingsbackendinternal.h',
@@ -82,6 +85,62 @@ if get_option('with-docs') != 'no'
     'thumbnail-verify.h',
     'xdp-dbus.h',
   ]
+
+  ignore_decorators = [
+    'GLIB_VAR',
+    'G_GNUC_INTERNAL',
+    'G_GNUC_WARN_UNUSED_RESULT',
+    'GLIB_AVAILABLE_IN_ALL',
+    'GLIB_AVAILABLE_IN_2_26',
+    'GLIB_AVAILABLE_IN_2_28',
+    'GLIB_AVAILABLE_IN_2_30',
+    'GLIB_AVAILABLE_IN_2_32',
+    'GLIB_AVAILABLE_IN_2_34',
+    'GLIB_AVAILABLE_IN_2_36',
+    'GLIB_AVAILABLE_IN_2_38',
+    'GLIB_AVAILABLE_IN_2_40',
+    'GLIB_AVAILABLE_IN_2_42',
+    'GLIB_AVAILABLE_IN_2_44',
+    'GLIB_AVAILABLE_IN_2_46',
+    'GLIB_AVAILABLE_IN_2_48',
+    'GLIB_AVAILABLE_IN_2_50',
+    'GLIB_AVAILABLE_IN_2_52',
+    'GLIB_AVAILABLE_IN_2_54',
+    'GLIB_AVAILABLE_IN_2_56',
+    'GLIB_DEPRECATED_IN_2_26',
+    'GLIB_DEPRECATED_IN_2_26_FOR',
+    'GLIB_DEPRECATED_IN_2_28',
+    'GLIB_DEPRECATED_IN_2_28_FOR',
+    'GLIB_DEPRECATED_IN_2_30',
+    'GLIB_DEPRECATED_IN_2_30_FOR',
+    'GLIB_DEPRECATED_IN_2_32',
+    'GLIB_DEPRECATED_IN_2_32_FOR',
+    'GLIB_DEPRECATED_IN_2_34',
+    'GLIB_DEPRECATED_IN_2_34_FOR',
+    'GLIB_DEPRECATED_IN_2_36',
+    'GLIB_DEPRECATED_IN_2_36_FOR',
+    'GLIB_DEPRECATED_IN_2_38',
+    'GLIB_DEPRECATED_IN_2_38_FOR',
+    'GLIB_DEPRECATED_IN_2_40',
+    'GLIB_DEPRECATED_IN_2_40_FOR',
+    'GLIB_DEPRECATED_IN_2_42',
+    'GLIB_DEPRECATED_IN_2_42_FOR',
+    'GLIB_DEPRECATED_IN_2_44',
+    'GLIB_DEPRECATED_IN_2_44_FOR',
+    'GLIB_DEPRECATED_IN_2_46',
+    'GLIB_DEPRECATED_IN_2_46_FOR',
+    'GLIB_DEPRECATED_IN_2_48',
+    'GLIB_DEPRECATED_IN_2_48_FOR',
+    'GLIB_DEPRECATED_IN_2_50',
+    'GLIB_DEPRECATED_IN_2_50_FOR',
+    'GLIB_DEPRECATED_IN_2_52',
+    'GLIB_DEPRECATED_IN_2_52_FOR',
+    'GLIB_DEPRECATED_IN_2_54',
+    'GLIB_DEPRECATED_IN_2_54_FOR',
+    'GLIB_DEPRECATED_IN_2_56',
+    'GLIB_DEPRECATED_IN_2_56_FOR',
+  ]
+
   # FIXME: More win32 headers were added to fix building gio-scan
 
   # FIXME: ExampleAnimal docs aren't built
@@ -105,7 +164,7 @@ if get_option('with-docs') != 'no'
     scan_args : [
       '--rebuild-types',
       '--deprecated-guards=G_DISABLE_DEPRECATED',
-      '--ignore-decorators=G_GNUC_WARN_UNUSED_RESULT',
+      '--ignore-decorators=' + '|'.join(ignore_decorators),
       '--ignore-headers=' + ' '.join(ignore_headers),
     ],
     content_files : [
@@ -146,7 +205,7 @@ if get_option('with-docs') != 'no'
 endif
 
 
-if get_option('with-man') != 'no' and xsltproc.found()
+if get_option('man')
   manpages = ['gapplication', 'gio-querymodules', 'glib-compile-schemas',
               'glib-compile-resources', 'gsettings', 'gresource', 'gdbus',
               'gio', 'gdbus-codegen']