mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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:
parent
f548a7b586
commit
2205468108
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue