mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00: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],
|
dependencies: [cogl_deps],
|
||||||
extra_args: clutter_introspection_args + ['--c-include=clutter/clutter.h'],
|
extra_args: clutter_introspection_args + ['--c-include=clutter/clutter.h'],
|
||||||
install_dir_gir: pkglibdir,
|
kwargs: introspection_common,
|
||||||
install_dir_typelib: pkglibdir,
|
|
||||||
install: true,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
libmutter_cally_gir = gnome.generate_gir(libmutter_clutter,
|
libmutter_cally_gir = gnome.generate_gir(libmutter_clutter,
|
||||||
@ -344,9 +342,7 @@ if have_introspection
|
|||||||
],
|
],
|
||||||
dependencies: [cogl_deps],
|
dependencies: [cogl_deps],
|
||||||
extra_args: clutter_introspection_args,
|
extra_args: clutter_introspection_args,
|
||||||
install_dir_gir: pkglibdir,
|
kwargs: introspection_common,
|
||||||
install_dir_typelib: pkglibdir,
|
|
||||||
install: true
|
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -60,9 +60,7 @@ if have_introspection
|
|||||||
'-UCOGL_COMPILATION',
|
'-UCOGL_COMPILATION',
|
||||||
'-DG_LOG_DOMAIN="CoglPango"',
|
'-DG_LOG_DOMAIN="CoglPango"',
|
||||||
],
|
],
|
||||||
install_dir_gir: pkglibdir,
|
kwargs: introspection_common,
|
||||||
install_dir_typelib: pkglibdir,
|
|
||||||
install: true
|
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -426,9 +426,7 @@ if have_introspection
|
|||||||
'-DCOGL_GIR_SCANNING',
|
'-DCOGL_GIR_SCANNING',
|
||||||
],
|
],
|
||||||
header: 'cogl/cogl.h',
|
header: 'cogl/cogl.h',
|
||||||
install_dir_gir: pkglibdir,
|
kwargs: introspection_common,
|
||||||
install_dir_typelib: pkglibdir,
|
|
||||||
install: true
|
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -324,6 +324,13 @@ if have_introspection
|
|||||||
'--quiet',
|
'--quiet',
|
||||||
'-U_GNU_SOURCE',
|
'-U_GNU_SOURCE',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
introspection_common = {
|
||||||
|
'install_dir_gir': pkglibdir,
|
||||||
|
'install_dir_typelib': pkglibdir,
|
||||||
|
'install': true,
|
||||||
|
'fatal_warnings': get_option('werror'),
|
||||||
|
}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
have_documentation = get_option('docs')
|
have_documentation = get_option('docs')
|
||||||
|
@ -67,9 +67,7 @@ if have_introspection
|
|||||||
'Graphene-1.0',
|
'Graphene-1.0',
|
||||||
],
|
],
|
||||||
extra_args: mtk_introspection_args + ['--c-include=mtk/mtk.h'],
|
extra_args: mtk_introspection_args + ['--c-include=mtk/mtk.h'],
|
||||||
install_dir_gir: pkglibdir,
|
kwargs: introspection_common,
|
||||||
install_dir_typelib: pkglibdir,
|
|
||||||
install: true,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
@ -1274,9 +1274,7 @@ if have_introspection
|
|||||||
],
|
],
|
||||||
export_packages: 'libmutter-@0@'.format(libmutter_api_version),
|
export_packages: 'libmutter-@0@'.format(libmutter_api_version),
|
||||||
extra_args: mutter_c_args + introspection_args,
|
extra_args: mutter_c_args + introspection_args,
|
||||||
install_dir_gir: pkglibdir,
|
kwargs: introspection_common,
|
||||||
install_dir_typelib: pkglibdir,
|
|
||||||
install: true
|
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -98,9 +98,7 @@ if have_introspection
|
|||||||
mutter_deps,
|
mutter_deps,
|
||||||
],
|
],
|
||||||
extra_args: mutter_c_args + introspection_args,
|
extra_args: mutter_c_args + introspection_args,
|
||||||
install_dir_gir: pkglibdir,
|
kwargs: introspection_common,
|
||||||
install_dir_typelib: pkglibdir,
|
|
||||||
install: true
|
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user