at-spi2-core: re-disable introspection if no emulator

e.g. when cross compiling from Linux to FreeBSD.

Fixes: e31262c3ee ("at-spi2-core: make introspection unconditional")
This commit is contained in:
Alyssa Ross 2023-02-06 15:28:47 +00:00
parent 7c643c3312
commit 8ea1ca271b
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -5,6 +5,8 @@
, ninja
, pkg-config
, gobject-introspection
, buildPackages
, withIntrospection ? stdenv.hostPlatform.emulatorAvailable buildPackages
, gsettings-desktop-schemas
, makeWrapper
, dbus
@ -30,11 +32,13 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [
glib
meson
ninja
pkg-config
gobject-introspection
makeWrapper
] ++ lib.optionals withIntrospection [
gobject-introspection
];
buildInputs = [
@ -58,7 +62,6 @@ stdenv.mkDerivation rec {
doCheck = false;
mesonFlags = [
"-Dintrospection=yes"
# Provide dbus-daemon fallback when it is not already running when
# at-spi2-bus-launcher is executed. This allows us to avoid
# including the entire dbus closure in libraries linked with