From 90de3690c45655d12260ce5879358552f4824c88 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 21 May 2019 19:13:44 +0300 Subject: 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 Reviewed-by: Kieran Bingham --- src/libcamera/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index 0ebb25bc..6a73580d 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -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) -- cgit v1.2.1