765a918a62
Currently, Meta/Cogl/Clutter makes use of cairo_rectangle_int_t despite the existance of MetaRectangle. In order to make MetaRectangle usable in Cogl/Clutter as well, Mtk would provide such base types that are shared across the various private libraries Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3128>
39 lines
753 B
Meson
39 lines
753 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,
|
|
]
|
|
|
|
mtk_deps = [
|
|
mtk_pkg_deps,
|
|
m_dep
|
|
]
|
|
|
|
subdir('mtk')
|