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
35 lines
673 B
Meson
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
|
|
)
|