Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mail.openembedded.org (Postfix) with ESMTP id 91FE86FF3D for ; Mon, 2 May 2016 12:16:47 +0000 (UTC) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 02 May 2016 05:16:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,567,1455004800"; d="scan'208";a="957081269" Received: from kanavin-desktop.fi.intel.com ([10.237.68.161]) by fmsmga001.fm.intel.com with ESMTP; 02 May 2016 05:16:38 -0700 From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Date: Mon, 2 May 2016 15:17:12 +0300 Message-Id: <1462191432-9516-1-git-send-email-alexander.kanavin@linux.intel.com> X-Mailer: git-send-email 2.8.1 Subject: [PATCH] gobject-introspection.bbclass: disable introspection for -native recipes X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2016 12:16:50 -0000 It is not necessary for native, adds to the build time, and pulls in the unneeded qemu-native dependency. Signed-off-by: Alexander Kanavin --- meta/classes/gobject-introspection.bbclass | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/meta/classes/gobject-introspection.bbclass b/meta/classes/gobject-introspection.bbclass index 2d73e40..d320b5b 100644 --- a/meta/classes/gobject-introspection.bbclass +++ b/meta/classes/gobject-introspection.bbclass @@ -3,13 +3,21 @@ # This sets up autoconf-based recipes to build introspection data (or not), # depending on distro and machine features (see gobject-introspection-data class). inherit gobject-introspection-data -EXTRA_OECONF_prepend = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} " +EXTRA_OECONF_prepend_class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} " + +# When building native recipes, disable introspection, as it is not necessary, +# pulls in additional dependencies, and makes build times longer +EXTRA_OECONF_prepend_class-native = "--disable-introspection " UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection" # Generating introspection data depends on a combination of native and target # introspection tools, and qemu to run the target tools. -DEPENDS_append = " gobject-introspection gobject-introspection-native qemu-native" +DEPENDS_append_class-target = " gobject-introspection gobject-introspection-native qemu-native" + +# Even though introspection is disable on -native, gobject-introspection package is still +# needed for m4 macros. +DEPENDS_append_class-native = " gobject-introspection-native" # This is necessary for python scripts to succeed - distutils fails if these # are not set -- 2.8.1