mutter/mtk/meson.build
Bilal Elmoussaoui 7c98910488 mtk: Add a Region type
Currently, we use cairo_region_t despite it being a thing wrapper around pixman_region_32
In order to push for a cairo-less and wayland only build in the future, replace
cairo_region_t with a thin wrapper that is almost a copy of the upstream cairo implementation

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3292>
2023-11-03 11:27:52 +00:00

49 lines
852 B
Meson

mtk_includesubdir = pkgname / 'mtk'
mtk_includedir = includedir / mtk_includesubdir
mtk_includepath = include_directories('.', 'mtk')
mtk_includes = [
mtk_includepath,
top_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,
pixman_dep,
]
if have_x11
mtk_pkg_deps += x11_dep
endif
mtk_deps = [
mtk_pkg_deps,
m_dep
]
subdir('mtk')