mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
6bda46095a
We currently have a bit of a disaster area wrt X11 error handling, with all of Cogl/Clutter/Mutter offering implementations with different expectations and different degrees of integration with other error handlers. It makes more sense to have a single X11 error handling implementation that is used in all those places. Mtk seems like the reasonable place to have this kind of general API, so adopt the more advanced code at src/x11. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3230>
45 lines
814 B
Meson
45 lines
814 B
Meson
mtk_includesubdir = pkgname / 'mtk'
|
|
mtk_includedir = includedir / mtk_includesubdir
|
|
|
|
mtk_includepath = include_directories('.', 'mtk')
|
|
mtk_includes = [mtk_includepath]
|
|
|
|
mtk_c_args = [
|
|
'-DMTK_SYSCONFDIR="@0@"'.format(prefix / sysconfdir),
|
|
'-DMTK_COMPILATION=1',
|
|
'-DG_LOG_DOMAIN="Mtk"',
|
|
]
|
|
|
|
mtk_debug_c_args = []
|
|
if get_option('debug')
|
|
mtk_debug_c_args += [
|
|
'-fno-omit-frame-pointer'
|
|
]
|
|
elif buildtype != 'plain'
|
|
mtk_debug_c_args += [
|
|
'-DG_DISABLE_ASSERT',
|
|
'-DG_DISABLE_CAST_CHECKS',
|
|
]
|
|
endif
|
|
supported_mtk_debug_c_args = cc.get_supported_arguments(mtk_debug_c_args)
|
|
mtk_c_args += mtk_debug_c_args
|
|
|
|
mtk_pkg_deps = [
|
|
cairo_gobject_dep,
|
|
glib_dep,
|
|
gobject_dep,
|
|
gio_dep,
|
|
graphene_dep,
|
|
]
|
|
|
|
if have_x11
|
|
mtk_pkg_deps += x11_dep
|
|
endif
|
|
|
|
mtk_deps = [
|
|
mtk_pkg_deps,
|
|
m_dep
|
|
]
|
|
|
|
subdir('mtk')
|