mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 08:25:58 +01:00
1. Use cross-platform `/` operator for path construction. 2. Use `meson.project_source_root()` for correct path resolution of generate_test_runner.rb path when used as a subproject. 3. Bump the minimum required Meson version to '0.56.0' as this is needed for the above changes.
27 lines
710 B
Meson
27 lines
710 B
Meson
#
|
|
# build script written by : Michael Gene Brockus.
|
|
# github repo author: Mike Karlesky, Mark VanderVoord, Greg Williams.
|
|
#
|
|
# license: MIT
|
|
#
|
|
project('unity', 'c',
|
|
license: 'MIT',
|
|
# `meson.project_source_root()` introduced in 0.56.0
|
|
meson_version: '>=0.56.0',
|
|
default_options: [
|
|
'werror=true',
|
|
'c_std=c11'
|
|
]
|
|
)
|
|
|
|
subdir('src')
|
|
unity_dep = declare_dependency(link_with: unity_lib, include_directories: unity_dir)
|
|
|
|
# Create a generator that can be used by consumers of our build system to generate
|
|
# test runners.
|
|
gen_test_runner = generator(
|
|
find_program(meson.project_source_root() / 'auto' / 'generate_test_runner.rb'),
|
|
output: '@BASENAME@_Runner.c',
|
|
arguments: ['@INPUT@', '@OUTPUT@']
|
|
)
|