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

33 lines
737 B
Meson

project('mcompile', 'c', 'cpp',
version: files('../../VERSION.md'),
default_options: ['cpp_std=c++17'],
license: 'MIT',
meson_version: '>=1.0')
# see https://github.com/keymanapp/keyman/pull/11334#issuecomment-2290784399
add_project_arguments('-O2', language : 'cpp')
carbon = dependency('Carbon')
deps = [carbon]
subdir('resources')
cpp_files = files(
'keymap.cpp',
'mcompile.cpp',
'mc_kmxfile.cpp',
'mc_import_rules.cpp',
'../../common/cpp/km_u16.cpp',
)
comon_include_dir = [
include_directories('../../common/include')
]
mcompile = executable(
'mcompile',
sources: [cpp_files],
dependencies: deps,
include_directories : comon_include_dir
)