2024-07-21 22:34:15 +02:00
|
|
|
project('casilda','c',
|
2026-03-17 21:48:38 -04:00
|
|
|
version: '1.2.1',
|
2024-07-21 22:34:15 +02:00
|
|
|
meson_version: '>= 1.0.0',
|
|
|
|
|
default_options: [
|
|
|
|
|
'warning_level=2',
|
|
|
|
|
'werror=false',
|
|
|
|
|
'c_std=c11',
|
|
|
|
|
],
|
2024-07-21 14:10:02 -04:00
|
|
|
)
|
|
|
|
|
|
2024-07-21 22:34:15 +02:00
|
|
|
pkg = import('pkgconfig')
|
|
|
|
|
gnome = import('gnome')
|
2024-07-21 14:10:02 -04:00
|
|
|
|
2024-07-21 22:34:15 +02:00
|
|
|
version_split = meson.project_version().split('.')
|
|
|
|
|
|
|
|
|
|
epoxy_dep = dependency('epoxy', version: '>=1.5')
|
|
|
|
|
gtk4_dep = dependency('gtk4', version: '>= 4.14')
|
|
|
|
|
pixman_dep = dependency('pixman-1', version: '>=0.42.0')
|
|
|
|
|
wayland_protocols_deps = dependency('wayland-protocols',
|
|
|
|
|
version: '>=1.32',
|
|
|
|
|
fallback: 'wayland-protocols',
|
|
|
|
|
default_options: ['tests=false'],
|
|
|
|
|
)
|
|
|
|
|
wayland_scanner_dep = dependency('wayland-scanner', native: true)
|
|
|
|
|
wayland_server_dep = dependency('wayland-server', version: '>=1.22')
|
2026-01-19 11:05:08 -05:00
|
|
|
wlroots_dep = dependency('wlroots-0.19', version: '>= 0.19')
|
2024-07-21 22:34:15 +02:00
|
|
|
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',
|
|
|
|
|
],
|
|
|
|
|
)
|
2024-07-21 14:10:02 -04:00
|
|
|
|
|
|
|
|
config_h = configuration_data()
|
|
|
|
|
config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
|
|
|
|
|
configure_file(output: 'config.h', configuration: config_h)
|
|
|
|
|
add_project_arguments(['-I' + meson.project_build_root()], language: 'c')
|
|
|
|
|
|
2025-08-28 08:42:01 -04:00
|
|
|
gidocgen = find_program('gi-docgen', required: get_option('documentation'), native: true)
|
|
|
|
|
|
2024-07-21 14:10:02 -04:00
|
|
|
subdir('src')
|
2024-07-21 23:47:15 +02:00
|
|
|
subdir('examples')
|
2025-08-28 08:42:01 -04:00
|
|
|
if get_option('documentation')
|
|
|
|
|
subdir('docs')
|
|
|
|
|
endif
|