build-system/meson: Add #:out-of-source? argument to build system.

Meson currently supports only out-of-source builds.  Add the argument
out-of-source? with default to #t such that the install-license-files phase
searches for the license files in the source directory.

* guix/build-system/meson.scm (meson-build): Add out-of-source? argument.
(meson-cross-build): Likewise.

Change-Id: Ib59d9d93b34fd567f05f5f9a10293f6ab924e399
Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Dariqq 2024-06-26 15:43:32 +00:00 committed by Ludovic Courtès
parent f548a7b586
commit 2205468108
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -188,6 +188,7 @@ (define* (meson-build name inputs
(outputs '("out"))
(configure-flags ''())
(search-paths '())
(out-of-source? #t)
(build-type "debugoptimized")
(tests? #t)
(test-options ''())
@ -237,6 +238,7 @@ (define build-phases
#$(if (pair? configure-flags)
(sexp->gexp configure-flags)
configure-flags)
#:out-of-source? #$out-of-source?
#:build-type #$build-type
#:tests? #$tests?
#:test-options #$(if (pair? test-options)
@ -271,7 +273,7 @@ (define* (meson-cross-build name
(configure-flags ''())
(search-paths '())
(native-search-paths '())
(out-of-source? #t)
(build-type "debugoptimized")
(tests? #f)
(test-options ''())
@ -352,6 +354,7 @@ (define build-phases
,@#$(if (pair? configure-flags)
(sexp->gexp configure-flags)
configure-flags))
#:out-of-source? #$out-of-source?
#:build-type #$build-type
#:tests? #$tests?
#:test-options #$(if (pair? test-options)