From nobody Sun Feb 8 07:52:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1594894749; cv=none; d=zohomail.com; s=zohoarc; b=Jf1jUVqu0YqVFFb4YFy+xcmAhUQ/ZfRKlxvq2WunzbqM/h7YcnUNwtNODFF/KK0cK3SmSyIeeEcp2Bhpekhif0wKEtLV5DOFHA+n8xWGbzdacDE6J3IRAdeBBDBGHJP2jrf0dN8e410SdIzJX5WTwsT60MbeVJaWKzf9MP/z2wI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594894749; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ND3wBuDbVxdBu4no5livksNRRRixCYIMr7Y0/ZbEIXQ=; b=FYtxVP/H8KFHy5jsTh+HhsceZQWouC5rQgUeJ7OtPLyRTZ3oHlkVBR78MqGwMrPgX3VOBRqzJwgesmdsVK6Xvm9pweBgbodaZZm47Yt9keeAcz61bjZxo1dICKSwqJc0EJsQtaiw+5oxarEWYJimoHZ+T3nHwtJw+yhZKGSNlMc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1594894749754951.9674242540484; Thu, 16 Jul 2020 03:19:09 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-367-2EcRdd3dPzyhQA6l6AvRDw-1; Thu, 16 Jul 2020 06:08:31 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1202D8027FB; Thu, 16 Jul 2020 10:08:25 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E3DCD1001B07; Thu, 16 Jul 2020 10:08:24 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B26B7730DA; Thu, 16 Jul 2020 10:08:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 06GA5Uki018497 for ; Thu, 16 Jul 2020 06:05:30 -0400 Received: by smtp.corp.redhat.com (Postfix) id CF0F62B6DC; Thu, 16 Jul 2020 10:05:30 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4A4B42B6DB for ; Thu, 16 Jul 2020 10:05:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594894748; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ND3wBuDbVxdBu4no5livksNRRRixCYIMr7Y0/ZbEIXQ=; b=RqQpH2w+vs7qQPkRWWCwlNQr4l4He8AFR6kwULAjrtVoxXbuQbXtebv8yfX0oO4FCa1cwz 6oKrubVVGOVizAH5jrfdPfWFu8lXH4Z3gaGYNszDOr+mIfX+bwXprKUr8NC9m8gehY1tzp 2v/6Q9fP/K8Xzyv7qv7vPzWhdODyPWs= X-MC-Unique: 2EcRdd3dPzyhQA6l6AvRDw-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 214/351] meson: src: add support for building helpers Date: Thu, 16 Jul 2020 11:57:30 +0200 Message-Id: <4e3e110a80de90fba8de99f65c4316b2efe087eb.1594891445.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- src/meson.build | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/meson.build b/src/meson.build index 3774e2bb4ba..bb970f10c61 100644 --- a/src/meson.build +++ b/src/meson.build @@ -139,6 +139,16 @@ virt_modules =3D [] # * include =3D include_directories (optional, default []) virt_daemons =3D [] =20 +# virt_helpers: +# each entry is a dictionary with following items: +# * name - binary name (required) +# * sources - binary sources (required) +# * c_args - compile arguments (optional, default []) +# * include - include_directories (optional, default []) +# * deps - dependencies (optional, default []) +# * install_dir - installation directory (optional, libexecdir) +virt_helpers =3D [] + =20 # list subdirectories =20 @@ -509,3 +519,31 @@ foreach daemon : virt_daemons install_rpath: libdir, ) endforeach + + +# build libvirt helpers + +foreach helper : virt_helpers + bin =3D executable( + helper['name'], + [ + helper['sources'], + ], + c_args: [ + helper.get('c_args', []), + ], + include_directories: [ + helper.get('include', []), + ], + dependencies: [ + src_dep, + helper.get('deps', []), + ], + link_with: [ + libvirt_lib, + ], + install: true, + install_dir: helper.get('install_dir', libexecdir), + install_rpath: libdir, + ) +endforeach --=20 2.26.2