8e912a09d1
For non-debug and non-plain cases - i.e. mainly release builds. This ensures we use the same options in all places and draws a cleaner distinction between g_assert() and g_return_if_fail() - the later will still be done in release build while the former are meant for debug only. One advantage of doing this is that it allows us to use non-trivial asserts more generously, such as calling `g_list_length()`. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3424>
33 lines
512 B
Meson
33 lines
512 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_pkg_deps = [
|
|
glib_dep,
|
|
gobject_dep,
|
|
gio_dep,
|
|
graphene_dep,
|
|
pixman_dep,
|
|
]
|
|
|
|
if have_x11_client
|
|
mtk_pkg_deps += x11_dep
|
|
endif
|
|
|
|
mtk_deps = [
|
|
mtk_pkg_deps,
|
|
m_dep
|
|
]
|
|
|
|
subdir('mtk')
|