libcamera: Auto-generate libcamera.h
As shown by two missing includes, keeping the libcamera.h file in sync when adding or removing headers is an error-prone manual process. Automate it by generating the header automatically. The libcamera.h header is also added to the libcamera dependency libcamera_dep to ensure that the headers gets generated before any source depending on it gets compiled. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -66,6 +66,6 @@ libcamera = shared_library('camera',
|
||||
include_directories : includes,
|
||||
dependencies : libudev)
|
||||
|
||||
libcamera_dep = declare_dependency(sources : libcamera_api,
|
||||
libcamera_dep = declare_dependency(sources : [libcamera_api, libcamera_h],
|
||||
include_directories : libcamera_includes,
|
||||
link_with : libcamera)
|
||||
|
||||
Reference in New Issue
Block a user