[libcamera-devel] [PATCH] gitignore: Ignore all build directories

Laurent Pinchart laurent.pinchart at ideasonboard.com
Thu Jun 4 11:07:05 CEST 2020


Hi Kieran,

Thank you for the patch.

On Thu, Jun 04, 2020 at 09:49:08AM +0100, Kieran Bingham wrote:
> It can be common to have multiple build directories with different
> configurations. Ignore them all.
> 
> Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
> ---
>  .gitignore | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/.gitignore b/.gitignore
> index f989dee3bcb0..aecf971d30aa 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -1,5 +1,5 @@
>  __pycache__/
> -build/
> +*build*/

That's a bit of a too generic pattern, we could later have a directory
with build in its name.

I personally have a single build/ directory directly at the root of the
source tree, and create subdirectories there for different builds. All
it requires is 'meson setup ../..' instead of 'meson setup ..' (and it
works fine with the the run-from-build-dir support we have). Could that
be a solution you would consider instead of this patch ?

>  patches/
>  *.patch
>  *.pyc

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list