[libcamera-devel] [PATCH v3 1/4] android: Import libutils/libui headers from vndk v33

Laurent Pinchart laurent.pinchart at ideasonboard.com
Sun Sep 24 17:51:15 CEST 2023


Hi Mattijs,

Thank you for the patch.

On Sat, Sep 23, 2023 at 06:23:31PM +0200, Mattijs Korpershoek via libcamera-devel wrote:
> In order to switch to the more modern GraphicBufferAllocator class, we need
> additional compile-time dependencies.
> 
> Import all the needed headers from the Android Vendor Native Development
> Kit (vndk) and add them to the android_includes.
> 
> These have been imported from:
> URL: https://android.googlesource.com/platform/prebuilts/vndk/v33/

This doesn't look like the upstream for those files, it's a prebuild
repository for binaries, with header files that are regularly imported
from upstream. for frameworks/native the upstream seems to be
https://android.googlesource.com/platform/frameworks/native/, while for
system/core it seems to be
https://android.googlesource.com/platform/system/core/.

If we import files from those repositories, I think we should update the
headers already included in libcamera to the same version. Mixing two
versions seems dangerous.

> rev: 390028a9da88 ("Update VNDK snapshot v33 to build 9948968. am: 3042508aee am: 7092391a46")

Would it make sense to go for a tagged release instead of the latest
commit in the main branch ?

> No changes have been made to the files, besides adding the SPDX comment.
> 
> Signed-off-by: Mattijs Korpershoek <mkorpershoek at baylibre.com>
> ---
>  .../native/libs/ui/include/ui/PixelFormat.h        |  75 +++++++
>  include/android/meson.build                        |   2 +
>  .../system/core/libutils/include/utils/Compat.h    |  94 +++++++++
>  .../system/core/libutils/include/utils/Errors.h    |  78 ++++++++
>  .../system/core/libutils/include/utils/Mutex.h     | 219 +++++++++++++++++++++
>  .../system/core/libutils/include/utils/Singleton.h | 102 ++++++++++
>  .../system/core/libutils/include/utils/Timers.h    | 103 ++++++++++
>  7 files changed, 673 insertions(+)

[snip]

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list