spiegel-keyman/linux/mcompile/keymap/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

35 lines
673 B
Meson

project(
'mcompile', 'c', 'cpp',
version: files('../../../VERSION.md'),
default_options: ['cpp_std=c++17'],
license: 'MIT',
meson_version: '>=1.0',
)
gtk = dependency('gtk+-3.0', version: '>= 2.4')
xkb = dependency('xkbcommon')
deps = [gtk, xkb]
subdir('resources')
cpp_files = files(
'keymap.cpp',
'deadkey.cpp',
'mcompile.cpp',
'mc_kmxfile.cpp',
'mc_import_rules.cpp',
'../../../common/cpp/km_u16.cpp',
'../../../common/cpp/utfcodec.cpp',
)
comon_include_dir = [
include_directories('../../../common/include')
]
mcompile = executable(
'mcompile',
sources: [cpp_files],
dependencies: deps,
include_directories : comon_include_dir
)