mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-08 18:05:32 +00:00
35 lines
1 KiB
Meson
35 lines
1 KiB
Meson
# Copyright: © 2018-2020 SIL International.
|
|
# Description: Cross platform build script to compile libkmnkbp, documentation
|
|
# and tests.
|
|
# Create Date: 2 Oct 2018
|
|
# Authors: Tim Eves (TSE)
|
|
#
|
|
|
|
project('keyboardprocessor', 'cpp', 'c',
|
|
version: run_command(find_program('getversion.bat', 'getversion.sh')).stdout().strip(),
|
|
license: 'MIT',
|
|
default_options : ['buildtype=release',
|
|
'cpp_std=c++14',
|
|
'b_vscrt=static_from_buildtype'])
|
|
|
|
message('meson.project_version(): ' + meson.project_version() + '\n')
|
|
compiler = meson.get_compiler('cpp')
|
|
|
|
lib_version = '0.0.0'
|
|
|
|
if compiler.get_id() == 'msvc'
|
|
add_global_arguments('/source-charset:utf-8', language: ['c', 'cpp'])
|
|
endif
|
|
|
|
py = import('python3')
|
|
python = py.find_python()
|
|
|
|
message('host_machine.system(): ' + host_machine.system())
|
|
message('compiler.get_id(): ' + compiler.get_id())
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
subdir('doc')
|
|
subdir('include')
|
|
subdir('src')
|
|
subdir('tests')
|