1# The list of minor versions in the 2.x.x series which have had 2# GLIB_AVAILABLE_IN_* macros. This should include the current unreleased stable 3# version. 4# 5# FIXME: It would be good to be able to generate this list: 6# https://github.com/mesonbuild/meson/issues/5026 7stable_2_series_versions = [ 8 '26', '28', '30', '32', '34', '36', '38', 9 '40', '42', '44', '46', '48', '50', '52', '54', '56', '58', 10 '60', '62', '64', '66', '68', 11] 12 13ignore_decorators = [ 14 'GLIB_VAR', 15 'G_GNUC_INTERNAL', 16 'G_GNUC_WARN_UNUSED_RESULT', 17 'GLIB_AVAILABLE_IN_ALL', 18] 19 20foreach version : stable_2_series_versions 21 ignore_decorators += [ 22 # Note that gtkdoc is going to use those in regex, and the longest match 23 # must come first. That's why '_FOR()' variant comes first. 24 # gtkdoc special-case '()' and replace it by a regex matching a symbol name. 25 'GLIB_AVAILABLE_IN_2_' + version, 26 'GLIB_DEPRECATED_IN_2_' + version + '_FOR()', 27 'GLIB_DEPRECATED_IN_2_' + version, 28 29 'GLIB_AVAILABLE_STATIC_INLINE_IN_2_' + version, 30 31 'GLIB_AVAILABLE_ENUMERATOR_IN_2_' + version, 32 'GLIB_DEPRECATED_ENUMERATOR_IN_2_' + version + '_FOR()', 33 'GLIB_DEPRECATED_ENUMERATOR_IN_2_' + version, 34 35 'GLIB_AVAILABLE_MACRO_IN_2_' + version, 36 'GLIB_DEPRECATED_MACRO_IN_2_' + version + '_FOR()', 37 'GLIB_DEPRECATED_MACRO_IN_2_' + version, 38 39 'GLIB_AVAILABLE_TYPE_IN_2_' + version, 40 'GLIB_DEPRECATED_TYPE_IN_2_' + version + '_FOR()', 41 'GLIB_DEPRECATED_TYPE_IN_2_' + version, 42 ] 43endforeach 44 45gtkdoc_common_scan_args = [ 46 '--ignore-decorators=' + '|'.join(ignore_decorators), 47] 48 49if get_option('gtk_doc') 50 if not meson.version().version_compare('>=0.52.0') 51 error('Building documentation requires Meson >= 0.52.0.') 52 endif 53 # Check we have the minimum gtk-doc version required. Older versions won't 54 # generate correct documentation. 55 dependency('gtk-doc', version : '>=1.32.1', 56 fallback : ['gtk-doc', 'dummy_dep'], 57 default_options : ['tests=false']) 58endif 59 60subdir('gio') 61subdir('glib') 62subdir('gobject') 63