libhandy: support cross-compilation
This commit is contained in:
parent
3d52e344bd
commit
dd1e75a9b2
|
@ -31,6 +31,7 @@ stdenv.mkDerivation rec {
|
||||||
outputs = [
|
outputs = [
|
||||||
"out"
|
"out"
|
||||||
"dev"
|
"dev"
|
||||||
|
] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [
|
||||||
"devdoc"
|
"devdoc"
|
||||||
] ++ lib.optionals enableGlade [
|
] ++ lib.optionals enableGlade [
|
||||||
"glade"
|
"glade"
|
||||||
|
@ -69,8 +70,9 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Dgtk_doc=true"
|
"-Dgtk_doc=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
|
||||||
"-Dglade_catalog=${if enableGlade then "enabled" else "disabled"}"
|
"-Dglade_catalog=${if enableGlade then "enabled" else "disabled"}"
|
||||||
|
"-Dintrospection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "enabled" else "disabled"}"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Uses define_variable in pkg-config, but we still need it to use the glade output
|
# Uses define_variable in pkg-config, but we still need it to use the glade output
|
||||||
|
|
Loading…
Reference in a new issue