wayland: allow building without tests
This commit is contained in:
parent
396918ad01
commit
3d1d0bf910
1 changed files with 5 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
|||
, expat
|
||||
, libxml2
|
||||
, withLibraries ? stdenv.isLinux
|
||||
, withTests ? stdenv.isLinux
|
||||
, libffi
|
||||
, withDocumentation ? withLibraries && stdenv.hostPlatform == stdenv.buildPlatform
|
||||
, graphviz-nox
|
||||
|
@ -24,6 +25,9 @@
|
|||
# Documentation is only built when building libraries.
|
||||
assert withDocumentation -> withLibraries;
|
||||
|
||||
# Tests are only built when building libraries.
|
||||
assert withTests -> withLibraries;
|
||||
|
||||
let
|
||||
isCross = stdenv.buildPlatform != stdenv.hostPlatform;
|
||||
in
|
||||
|
@ -50,7 +54,7 @@ stdenv.mkDerivation rec {
|
|||
mesonFlags = [
|
||||
"-Ddocumentation=${lib.boolToString withDocumentation}"
|
||||
"-Dlibraries=${lib.boolToString withLibraries}"
|
||||
"-Dtests=${lib.boolToString withLibraries}"
|
||||
"-Dtests=${lib.boolToString withTests}"
|
||||
];
|
||||
|
||||
depsBuildBuild = [
|
||||
|
|
Loading…
Reference in a new issue