wayland: allow building without tests
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user