2023-07-18 11:58:47 -04:00
|
|
|
mtk_includesubdir = pkgname / 'mtk'
|
|
|
|
mtk_includedir = includedir / mtk_includesubdir
|
|
|
|
|
|
|
|
mtk_includepath = include_directories('.', 'mtk')
|
2023-08-31 19:26:04 -04:00
|
|
|
mtk_includes = [
|
|
|
|
mtk_includepath,
|
|
|
|
top_includepath,
|
|
|
|
]
|
2023-07-18 11:58:47 -04:00
|
|
|
|
|
|
|
mtk_c_args = [
|
|
|
|
'-DMTK_SYSCONFDIR="@0@"'.format(prefix / sysconfdir),
|
|
|
|
'-DMTK_COMPILATION=1',
|
|
|
|
'-DG_LOG_DOMAIN="Mtk"',
|
|
|
|
]
|
|
|
|
|
|
|
|
mtk_debug_c_args = []
|
2023-10-09 22:14:51 -04:00
|
|
|
if buildtype != 'plain'
|
2023-10-18 02:25:21 -04:00
|
|
|
if not get_option('debug')
|
2023-10-09 22:14:51 -04:00
|
|
|
mtk_debug_c_args += [
|
|
|
|
'-DG_DISABLE_ASSERT',
|
|
|
|
'-DG_DISABLE_CAST_CHECKS',
|
|
|
|
]
|
|
|
|
endif
|
2023-07-18 11:58:47 -04:00
|
|
|
endif
|
2023-10-09 22:14:51 -04:00
|
|
|
mtk_debug_c_args = cc.get_supported_arguments(mtk_debug_c_args)
|
2023-07-18 11:58:47 -04:00
|
|
|
mtk_c_args += mtk_debug_c_args
|
|
|
|
|
|
|
|
mtk_pkg_deps = [
|
|
|
|
glib_dep,
|
|
|
|
gobject_dep,
|
|
|
|
gio_dep,
|
2023-08-08 06:27:58 -04:00
|
|
|
graphene_dep,
|
2023-09-21 06:05:24 -04:00
|
|
|
pixman_dep,
|
2023-07-18 11:58:47 -04:00
|
|
|
]
|
|
|
|
|
2023-08-31 08:24:03 -04:00
|
|
|
if have_x11
|
|
|
|
mtk_pkg_deps += x11_dep
|
|
|
|
endif
|
|
|
|
|
2023-07-18 11:58:47 -04:00
|
|
|
mtk_deps = [
|
|
|
|
mtk_pkg_deps,
|
|
|
|
m_dep
|
|
|
|
]
|
|
|
|
|
|
|
|
subdir('mtk')
|