1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 00:15:58 +01:00

Update Meson build system

The following features from the CMake build have been implemented:
 * Library version retrieved from unity.h.
 * Extension support.
 * Library, header, and package configuration file installation.

This commit is entirely based on existing work by Owen Torres.
This commit is contained in:
Andrew McNulty
2023-02-13 17:22:52 +01:00
parent cd80a79db5
commit 44bc9e6dbe
6 changed files with 94 additions and 6 deletions

View File

@@ -4,10 +4,12 @@
#
# license: MIT
#
unity_dir = include_directories('.')
unity_lib = static_library(meson.project_name(),
'unity.c',
include_directories: unity_dir,
native: true
unity_inc += include_directories('.')
unity_src += files('unity.c')
install_headers(
'unity.h',
'unity_internals.h',
subdir: meson.project_name()
)