mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
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
33 lines
737 B
Meson
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
|
|
)
|