[v5,09/18] libcamera: Move IPA headers to the libcamera_private dependency
diff mbox series

Message ID 20240805143654.20870-10-laurent.pinchart@ideasonboard.com
State Accepted
Headers show
Series
  • Split libcamera documentation in public and internal APIs
Related show

Commit Message

Laurent Pinchart Aug. 5, 2024, 2:36 p.m. UTC
The IPA headers are listed in the libcamera_public and libcamera_private
dependency objects, with the generated headers part of the private
dependency object and the non-generated headers part of the public
dependency object. As neither set of IPA headers are part of the public
API, list them both in the libcamera_private dependency object.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 src/libcamera/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dan Scally Aug. 7, 2024, 8:36 a.m. UTC | #1
On 05/08/2024 15:36, Laurent Pinchart wrote:
> The IPA headers are listed in the libcamera_public and libcamera_private
> dependency objects, with the generated headers part of the private
> dependency object and the non-generated headers part of the public
> dependency object. As neither set of IPA headers are part of the public
> API, list them both in the libcamera_private dependency object.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---


Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>

>   src/libcamera/meson.build | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
> index deffff356091..61a97c738ae8 100644
> --- a/src/libcamera/meson.build
> +++ b/src/libcamera/meson.build
> @@ -207,7 +207,6 @@ libcamera = shared_library('libcamera',
>                              dependencies : libcamera_deps)
>   
>   libcamera_public = declare_dependency(sources : [
> -                                          libcamera_ipa_headers,
>                                             libcamera_public_headers,
>                                         ],
>                                         include_directories : libcamera_includes,
> @@ -216,6 +215,7 @@ libcamera_public = declare_dependency(sources : [
>   
>   # Internal dependency for components and plugins which can use private APIs
>   libcamera_private = declare_dependency(sources : [
> +                                           libcamera_ipa_headers,
>                                              libcamera_generated_ipa_headers,
>                                          ],
>                                          dependencies : [
Kieran Bingham Aug. 7, 2024, 11:12 a.m. UTC | #2
Quoting Laurent Pinchart (2024-08-05 15:36:45)
> The IPA headers are listed in the libcamera_public and libcamera_private
> dependency objects, with the generated headers part of the private
> dependency object and the non-generated headers part of the public
> dependency object. As neither set of IPA headers are part of the public
> API, list them both in the libcamera_private dependency object.
> 


Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
>  src/libcamera/meson.build | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
> index deffff356091..61a97c738ae8 100644
> --- a/src/libcamera/meson.build
> +++ b/src/libcamera/meson.build
> @@ -207,7 +207,6 @@ libcamera = shared_library('libcamera',
>                             dependencies : libcamera_deps)
>  
>  libcamera_public = declare_dependency(sources : [
> -                                          libcamera_ipa_headers,
>                                            libcamera_public_headers,
>                                        ],
>                                        include_directories : libcamera_includes,
> @@ -216,6 +215,7 @@ libcamera_public = declare_dependency(sources : [
>  
>  # Internal dependency for components and plugins which can use private APIs
>  libcamera_private = declare_dependency(sources : [
> +                                           libcamera_ipa_headers,
>                                             libcamera_generated_ipa_headers,
>                                         ],
>                                         dependencies : [
> -- 
> Regards,
> 
> Laurent Pinchart
>

Patch
diff mbox series

diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
index deffff356091..61a97c738ae8 100644
--- a/src/libcamera/meson.build
+++ b/src/libcamera/meson.build
@@ -207,7 +207,6 @@  libcamera = shared_library('libcamera',
                            dependencies : libcamera_deps)
 
 libcamera_public = declare_dependency(sources : [
-                                          libcamera_ipa_headers,
                                           libcamera_public_headers,
                                       ],
                                       include_directories : libcamera_includes,
@@ -216,6 +215,7 @@  libcamera_public = declare_dependency(sources : [
 
 # Internal dependency for components and plugins which can use private APIs
 libcamera_private = declare_dependency(sources : [
+                                           libcamera_ipa_headers,
                                            libcamera_generated_ipa_headers,
                                        ],
                                        dependencies : [