[libcamera-devel] [PATCH 02/14] py: meson: add pystubs build target

Tomi Valkeinen tomi.valkeinen at ideasonboard.com
Tue May 17 10:19:32 CEST 2022


On 17/05/2022 11:15, Laurent Pinchart wrote:
> Hi Tomi,
> 
> Thank you for the patch.
> 
> On Mon, May 16, 2022 at 05:10:10PM +0300, Tomi Valkeinen wrote:
>> Add a 'pystubs' build target for building the python stubs.
>>
>> For now this needs to be ran manually. I didn't figure out how to
>> generate the stubs after the libcamera bindings are built.
> 
> What did you try ? custom_target() seems to be the right function for
> this, did it fail ?

custom_target() needs a list of output files, which is not obvious here, 
and it also expects the outputs to be in the build dir of this source 
directory, which is also not the case.

  Tomi


More information about the libcamera-devel mailing list