| 1 | From 4c8dab0edd16ce6a4b7b628430de1cd42d03f31a Mon Sep 17 00:00:00 2001
|
| 2 | From: Ross Smyth <[email protected]>
|
| 3 | Date: Mon, 10 Mar 2025 16:00:38 -0400
|
| 4 | Subject: [PATCH] Fix meson pkg-config generation
|
| 5 |
|
| 6 | The pkg-config file does not include the subdir
|
| 7 | in its build flags, so files will fail to find the
|
| 8 | Unity headers.
|
| 9 | ---
|
| 10 | meson.build | 6 +++---
|
| 11 | 1 file changed, 3 insertions(+), 3 deletions(-)
|
| 12 |
|
| 13 | diff --git a/meson.build b/meson.build
|
| 14 | index 6585129c..9489aef4 100644
|
| 15 | |
| 16 | |
| 17 | @@ -64,10 +64,10 @@ unity_dep = declare_dependency(
|
| 18 | if not meson.is_subproject()
|
| 19 | pkg = import('pkgconfig')
|
| 20 | pkg.generate(
|
| 21 | - name: meson.project_name(),
|
| 22 | + unity_lib,
|
| 23 | version: meson.project_version(),
|
| 24 | - libraries: [ unity_lib ],
|
| 25 | - description: 'C Unit testing framework.'
|
| 26 | + subdirs: 'unity',
|
| 27 | + extra_cflags: unity_args,
|
| 28 | )
|
| 29 | endif
|
| 30 |
|