diff options
authorNiklas Söderlund <>2021-05-26 10:05:32 +0200
committerNiklas Söderlund <>2021-06-04 19:25:59 +0200
commit62578eccf91387dccc6b185bf3063d3f4a496466 (patch)
parent388c4392c1527c7f7b485480496a1d4399c2ea9e (diff)
libcamera: Add libcamera_generated_ipa_headers as a dependency for libcamera_dep
Some external components such as the unit tests include headers generated for the IPA's. This is not fully described in meson for each external component which results in one or more races in the build system. Instead of playing whack-a-mole add the generated IPA headers to libcamera_dep. Suggested-by: Laurent Pinchart <> Signed-off-by: Niklas Söderlund <> Reviewed-by: Umang Jain <> Reviewed-by: Laurent Pinchart <>
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcamera/ b/src/libcamera/
index cc2b8669..7e19a177 100644
--- a/src/libcamera/
+++ b/src/libcamera/
@@ -155,9 +155,16 @@ libcamera = shared_library('camera',
build_rpath : '/',
dependencies : libcamera_deps)
+# TODO Drop libcamera_generated_ipa_headers from libcamera_dep as libcamera_dep
+# is supposed to model the dependencies required for usage of the public API,
+# not the internal API. It is needed as as some external components such as the
+# unit tests make use of the generated headers and this creates a race in the
+# build.
libcamera_dep = declare_dependency(sources : [
+ libcamera_generated_ipa_headers,
include_directories : libcamera_includes,
link_with : libcamera)