casilda/meson.build
2026-07-24 19:05:58 -04:00

57 lines
1.5 KiB
Meson

project('casilda','c',
version: '1.5.0',
meson_version: '>= 1.1.0',
default_options: [
'warning_level=2',
'werror=false',
'c_std=c11',
],
)
pkg = import('pkgconfig')
gnome = import('gnome')
version_split = meson.project_version().split('.')
gtk4_dep = dependency('gtk4', version: '>= 4.22.2')
gio_unix_dep = dependency('gio-unix-2.0')
libdrm_dep = dependency('libdrm')
pixman_dep = dependency('pixman-1', version: '>=0.42.0')
wayland_server_dep = dependency('wayland-server', version: '>=1.22')
wlroots_dep = dependency('wlroots-0.20', version: '>= 0.20')
x11_xcb_dep = dependency('x11-xcb', version: '>=1.8.7', required : false)
xkbcommon_x11_dep = dependency('xkbcommon-x11', version: '>=1.5', required : false)
xkbcommon = dependency(
'xkbcommon',
fallback: 'libxkbcommon',
default_options: [
'enable-tools=false',
'enable-x11=false',
'enable-docs=false',
'enable-xkbregistry=false',
],
)
config_h = configuration_data()
config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
if get_option('dmabuf')
config_h.set('ENABLE_DMABUF', true)
endif
configure_file(output: 'casilda-config.h', configuration: config_h)
add_project_arguments(['-I' + meson.project_build_root()], language: 'c')
gidocgen = find_program('gi-docgen', required: get_option('documentation'), native: true)
summary({
'dmabuf': get_option('dmabuf'),
'vapi': get_option('vapi'),
'documentation': get_option('documentation'),
}, bool_yn: true)
subdir('src')
subdir('examples')
if get_option('documentation')
subdir('docs')
endif