mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-13 12:19:25 +00:00
* Adds `VERSION_WITH_TAG` variable to standard.meson.build
* Consistently uses `file('VERSION.md')` to retrieve version number
Note that VERSION_WITH_TAG is not yet used but should be used for
version tagged files later.
33 lines
No EOL
783 B
Meson
33 lines
No EOL
783 B
Meson
project('mcompile', 'c', 'cpp',
|
|
version: files('../../VERSION.md'),
|
|
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',
|
|
cpp_args: ['-std=c++17'], # this should be defined from resources/standard.meson.build
|
|
sources: [cpp_files],
|
|
dependencies: deps,
|
|
include_directories : comon_include_dir
|
|
) |