projects/guix·blob java-team · refs

30 lines · 862 B

1From 4c8dab0edd16ce6a4b7b628430de1cd42d03f31a Mon Sep 17 00:00:00 2001
2From: Ross Smyth <[email protected]>
3Date: Mon, 10 Mar 2025 16:00:38 -0400
4Subject: [PATCH] Fix meson pkg-config generation
5
6The pkg-config file does not include the subdir
7in its build flags, so files will fail to find the
8Unity headers.
9---
10 meson.build | 6 +++---
11 1 file changed, 3 insertions(+), 3 deletions(-)
12
13diff --git a/meson.build b/meson.build
14index 6585129c..9489aef4 100644
15--- a/meson.build
16+++ b/meson.build
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