libsoup: re-disable introspection if no emulator
e.g. when cross compiling from Linux to FreeBSD.
Fixes: 1bd8727a4c
("various: enable gobject-introspection when cross-compiling")
This commit is contained in:
parent
ffb1b62b5f
commit
e1bd8afb07
|
@ -15,6 +15,8 @@
|
||||||
, gnomeSupport ? true
|
, gnomeSupport ? true
|
||||||
, sqlite
|
, sqlite
|
||||||
, glib-networking
|
, glib-networking
|
||||||
|
, buildPackages
|
||||||
|
, withIntrospection ? stdenv.hostPlatform.emulatorAvailable buildPackages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -37,6 +39,7 @@ stdenv.mkDerivation rec {
|
||||||
ninja
|
ninja
|
||||||
pkg-config
|
pkg-config
|
||||||
glib
|
glib
|
||||||
|
] ++ lib.optionals withIntrospection [
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
vala
|
vala
|
||||||
];
|
];
|
||||||
|
@ -58,6 +61,8 @@ stdenv.mkDerivation rec {
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Dtls_check=false" # glib-networking is a runtime dependency, not a compile-time dependency
|
"-Dtls_check=false" # glib-networking is a runtime dependency, not a compile-time dependency
|
||||||
"-Dgssapi=disabled"
|
"-Dgssapi=disabled"
|
||||||
|
"-Dvapi=${if withIntrospection then "enabled" else "disabled"}"
|
||||||
|
"-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
|
||||||
"-Dgnome=${lib.boolToString gnomeSupport}"
|
"-Dgnome=${lib.boolToString gnomeSupport}"
|
||||||
"-Dntlm=disabled"
|
"-Dntlm=disabled"
|
||||||
] ++ lib.optionals (!stdenv.isLinux) [
|
] ++ lib.optionals (!stdenv.isLinux) [
|
||||||
|
|
Loading…
Reference in a new issue