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:
Laurent Pinchart
2019-05-21 19:13:44 +03:00
parent 3fac104158
commit 90de3690c4
4 changed files with 37 additions and 22 deletions
+1 -1
View File
@@ -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)