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 <laurent.pinchart@ideasonboard.com> Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -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_ipa_headers,
|
||||
libcamera_public_headers,
|
||||
libcamera_generated_ipa_headers,
|
||||
],
|
||||
include_directories : libcamera_includes,
|
||||
link_with : libcamera)
|
||||
|
||||
Reference in New Issue
Block a user