spiegel-keyman/linux/keyman-system-service/meson.build
Marc Durdin 808b6557d6 maint(common): use cpp_std=c++17 in meson project default_options
We attempted to set the C++ version in standard.meson.build, but this
does not work well as the option name varies by platform, and it also
triggers a warning in meson. This fix moves the setting into each
meson.build project() default_options. As there are only a handful
of these, the maintenance burden is not high.

Fixes: #14432
Relates-to: #14355
Build-bot: build
Test-bot: skip
2025-08-01 10:23:57 +10:00

29 lines
729 B
Meson

project('keyman-system-service', 'c', 'cpp',
version: files('../../VERSION.md'),
default_options: ['cpp_std=c++17'],
license: 'MIT',
meson_version: '>=1.0')
conf = configuration_data()
evdev = dependency('libevdev', version: '>= 1.9')
systemd = dependency('libsystemd', 'libelogind', required: false)
if systemd.found()
conf.set('DBUS_IMPLEMENTATION', 'SYSTEMD')
else
# Gentoo can use libelogind or basu
systemd = dependency('basu', required: true)
conf.set('DBUS_IMPLEMENTATION', 'BASU')
endif
configure_file(output : 'config.h',
configuration : conf)
linux_include_dirs = [
include_directories('../include')
]
subdir('resources')
subdir('src')
subdir('tests')