2019-03-06 12:59:03 +01:00
|
|
|
# The list of minor versions in the 2.x.x series which have had
|
|
|
|
# GLIB_AVAILABLE_IN_* macros. This should include the current unreleased stable
|
|
|
|
# version.
|
2022-05-11 20:34:00 +02:00
|
|
|
first_version = 26
|
|
|
|
last_version = minor_version.is_odd() ? minor_version + 1 : minor_version
|
2019-03-06 12:59:03 +01:00
|
|
|
|
|
|
|
ignore_decorators = [
|
|
|
|
'GLIB_VAR',
|
|
|
|
'G_GNUC_INTERNAL',
|
|
|
|
'G_GNUC_WARN_UNUSED_RESULT',
|
|
|
|
'GLIB_AVAILABLE_IN_ALL',
|
|
|
|
]
|
|
|
|
|
2022-05-11 20:34:00 +02:00
|
|
|
foreach i : range(first_version, last_version + 2, 2)
|
|
|
|
version = i.to_string()
|
2019-03-06 12:59:03 +01:00
|
|
|
ignore_decorators += [
|
2019-07-09 14:26:38 +02:00
|
|
|
# Note that gtkdoc is going to use those in regex, and the longest match
|
|
|
|
# must come first. That's why '_FOR()' variant comes first.
|
|
|
|
# gtkdoc special-case '()' and replace it by a regex matching a symbol name.
|
2019-03-06 12:59:03 +01:00
|
|
|
'GLIB_AVAILABLE_IN_2_' + version,
|
2019-07-09 14:26:38 +02:00
|
|
|
'GLIB_DEPRECATED_IN_2_' + version + '_FOR()',
|
2019-03-06 12:59:03 +01:00
|
|
|
'GLIB_DEPRECATED_IN_2_' + version,
|
2019-07-09 14:26:38 +02:00
|
|
|
|
2020-05-15 12:45:33 +02:00
|
|
|
'GLIB_AVAILABLE_STATIC_INLINE_IN_2_' + version,
|
|
|
|
|
2019-07-09 14:26:38 +02:00
|
|
|
'GLIB_AVAILABLE_ENUMERATOR_IN_2_' + version,
|
|
|
|
'GLIB_DEPRECATED_ENUMERATOR_IN_2_' + version + '_FOR()',
|
|
|
|
'GLIB_DEPRECATED_ENUMERATOR_IN_2_' + version,
|
|
|
|
|
|
|
|
'GLIB_AVAILABLE_MACRO_IN_2_' + version,
|
|
|
|
'GLIB_DEPRECATED_MACRO_IN_2_' + version + '_FOR()',
|
|
|
|
'GLIB_DEPRECATED_MACRO_IN_2_' + version,
|
|
|
|
|
|
|
|
'GLIB_AVAILABLE_TYPE_IN_2_' + version,
|
|
|
|
'GLIB_DEPRECATED_TYPE_IN_2_' + version + '_FOR()',
|
|
|
|
'GLIB_DEPRECATED_TYPE_IN_2_' + version,
|
2019-03-06 12:59:03 +01:00
|
|
|
]
|
|
|
|
endforeach
|
|
|
|
|
2022-10-03 16:36:04 +02:00
|
|
|
ignore_decorators = '|'.join(ignore_decorators)
|
2019-03-06 12:59:03 +01:00
|
|
|
|
2019-11-29 20:29:23 +01:00
|
|
|
if get_option('gtk_doc')
|
|
|
|
# Check we have the minimum gtk-doc version required. Older versions won't
|
|
|
|
# generate correct documentation.
|
2020-05-22 10:32:52 +02:00
|
|
|
dependency('gtk-doc', version : '>=1.32.1',
|
2019-12-13 19:46:00 +01:00
|
|
|
fallback : ['gtk-doc', 'dummy_dep'],
|
|
|
|
default_options : ['tests=false'])
|
2019-11-29 20:29:23 +01:00
|
|
|
|
2022-10-20 00:51:34 +02:00
|
|
|
# We cannot built the API reference off of a static library,
|
|
|
|
# as symbols might get dropped by the linker
|
|
|
|
if not glib_build_shared
|
|
|
|
error('The API reference can only be built against a shared library')
|
|
|
|
endif
|
2022-09-14 16:03:43 +02:00
|
|
|
endif
|
|
|
|
|
2019-03-06 12:59:03 +01:00
|
|
|
subdir('gio')
|
|
|
|
subdir('glib')
|
2020-05-15 12:45:33 +02:00
|
|
|
subdir('gobject')
|