mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
build: Make g-ir-scanner warnings fatal when -werror is set
This should help catching problems with introspection in CI. This also pulls out some common arguments to the gnome.generate_gir call. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3528>
This commit is contained in:
parent
e8116ba4f0
commit
41a7e8e3e0
@ -323,9 +323,7 @@ if have_introspection
|
||||
],
|
||||
dependencies: [cogl_deps],
|
||||
extra_args: clutter_introspection_args + ['--c-include=clutter/clutter.h'],
|
||||
install_dir_gir: pkglibdir,
|
||||
install_dir_typelib: pkglibdir,
|
||||
install: true,
|
||||
kwargs: introspection_common,
|
||||
)
|
||||
|
||||
libmutter_cally_gir = gnome.generate_gir(libmutter_clutter,
|
||||
@ -344,9 +342,7 @@ if have_introspection
|
||||
],
|
||||
dependencies: [cogl_deps],
|
||||
extra_args: clutter_introspection_args,
|
||||
install_dir_gir: pkglibdir,
|
||||
install_dir_typelib: pkglibdir,
|
||||
install: true
|
||||
kwargs: introspection_common,
|
||||
)
|
||||
endif
|
||||
|
||||
|
@ -60,9 +60,7 @@ if have_introspection
|
||||
'-UCOGL_COMPILATION',
|
||||
'-DG_LOG_DOMAIN="CoglPango"',
|
||||
],
|
||||
install_dir_gir: pkglibdir,
|
||||
install_dir_typelib: pkglibdir,
|
||||
install: true
|
||||
kwargs: introspection_common,
|
||||
)
|
||||
endif
|
||||
|
||||
|
@ -426,9 +426,7 @@ if have_introspection
|
||||
'-DCOGL_GIR_SCANNING',
|
||||
],
|
||||
header: 'cogl/cogl.h',
|
||||
install_dir_gir: pkglibdir,
|
||||
install_dir_typelib: pkglibdir,
|
||||
install: true
|
||||
kwargs: introspection_common,
|
||||
)
|
||||
endif
|
||||
|
||||
|
@ -324,6 +324,13 @@ if have_introspection
|
||||
'--quiet',
|
||||
'-U_GNU_SOURCE',
|
||||
]
|
||||
|
||||
introspection_common = {
|
||||
'install_dir_gir': pkglibdir,
|
||||
'install_dir_typelib': pkglibdir,
|
||||
'install': true,
|
||||
'fatal_warnings': get_option('werror'),
|
||||
}
|
||||
endif
|
||||
|
||||
have_documentation = get_option('docs')
|
||||
|
@ -67,9 +67,7 @@ if have_introspection
|
||||
'Graphene-1.0',
|
||||
],
|
||||
extra_args: mtk_introspection_args + ['--c-include=mtk/mtk.h'],
|
||||
install_dir_gir: pkglibdir,
|
||||
install_dir_typelib: pkglibdir,
|
||||
install: true,
|
||||
kwargs: introspection_common,
|
||||
)
|
||||
|
||||
endif
|
||||
|
@ -1274,9 +1274,7 @@ if have_introspection
|
||||
],
|
||||
export_packages: 'libmutter-@0@'.format(libmutter_api_version),
|
||||
extra_args: mutter_c_args + introspection_args,
|
||||
install_dir_gir: pkglibdir,
|
||||
install_dir_typelib: pkglibdir,
|
||||
install: true
|
||||
kwargs: introspection_common,
|
||||
)
|
||||
endif
|
||||
|
||||
|
@ -98,9 +98,7 @@ if have_introspection
|
||||
mutter_deps,
|
||||
],
|
||||
extra_args: mutter_c_args + introspection_args,
|
||||
install_dir_gir: pkglibdir,
|
||||
install_dir_typelib: pkglibdir,
|
||||
install: true
|
||||
kwargs: introspection_common,
|
||||
)
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user