From nobody Sat Feb 7 15:26:29 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 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=1569582736; cv=none; d=zoho.com; s=zohoarc; b=jmZPb3ZH+ohvIn1Afy6Y1R52yvwjMSmO8t4Yq4zkXo4NZqRmmMl1P+GrolXgun65oF7M43+xEtOBKfcMre8lsv1MRtlEp4NjzfjbsXOuVEYfbftVCEiZO28bu0aEUQifjEq0y3nQwMHjja3LzlnqyIvq85v9fQHfgWicNSuPGZM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1569582736; h=Content-Type:Content-Transfer-Encoding:Cc: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:ARC-Authentication-Results; bh=Ega95enZd+S5OoiqG1lV5Mf+QYbpE19iBlKWVj5uJds=; b=UlmO+tYWjlcJvAvzZHCprxEcRC+FlycFXkT7KcBBddxQT4+0DNRmJQwx2CnlGyjxVf3bWnKrIhMCEtwgYin1Zf3K6Ub86qwYWINla8FI1rkE8Dsab4YRMVXjspOVkFZ96p560gPettvP62EDZO6LI1FJmm96/TyO7Pw5dpwPP7E= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 156958273657346.81249673834873; Fri, 27 Sep 2019 04:12:16 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E463E18CB8E0; Fri, 27 Sep 2019 11:12:14 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C1B815C220; Fri, 27 Sep 2019 11:12:14 +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 866B1180BA99; Fri, 27 Sep 2019 11:12:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x8RBCDql028256 for ; Fri, 27 Sep 2019 07:12:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id 5236660C18; Fri, 27 Sep 2019 11:12:13 +0000 (UTC) Received: from domokun.gsslab.fab.redhat.com (dhcp-94.gsslab.fab.redhat.com [10.33.9.94]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9743A60C5D; Fri, 27 Sep 2019 11:12:12 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Fri, 27 Sep 2019 12:11:55 +0100 Message-Id: <20190927111158.20653-9-berrange@redhat.com> In-Reply-To: <20190927111158.20653-1-berrange@redhat.com> References: <20190927111158.20653-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: Pavel Hrdina Subject: [libvirt] [PATCH 08/11] build: add command line options for enabling each driver 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: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.63]); Fri, 27 Sep 2019 11:12:15 +0000 (UTC) Placeholder options for enabling each driver, which will be fleshed out in later commits. Signed-off-by: Daniel P. Berrang=C3=A9 --- meson_options.txt | 23 +++++++++++++++++++++++ src/bhyve/meson.build | 5 +++++ src/esx/meson.build | 2 ++ src/hyperv/meson.build | 2 ++ src/interface/meson.build | 5 +++++ src/libxl/meson.build | 5 +++++ src/lxc/meson.build | 5 +++++ src/meson.build | 25 +++++++++++++++++++++++++ src/network/meson.build | 5 +++++ src/node_device/meson.build | 5 +++++ src/nwfilter/meson.build | 5 +++++ src/openvz/meson.build | 2 ++ src/phyp/meson.build | 2 ++ src/qemu/meson.build | 5 +++++ src/remote/meson.build | 6 ++++++ src/secret/meson.build | 5 +++++ src/storage/meson.build | 5 +++++ src/test/meson.build | 2 ++ src/vbox/meson.build | 2 ++ src/vmware/meson.build | 2 ++ src/vz/meson.build | 5 +++++ 21 files changed, 123 insertions(+) create mode 100644 meson_options.txt create mode 100644 src/bhyve/meson.build create mode 100644 src/esx/meson.build create mode 100644 src/hyperv/meson.build create mode 100644 src/interface/meson.build create mode 100644 src/libxl/meson.build create mode 100644 src/lxc/meson.build create mode 100644 src/network/meson.build create mode 100644 src/node_device/meson.build create mode 100644 src/nwfilter/meson.build create mode 100644 src/openvz/meson.build create mode 100644 src/phyp/meson.build create mode 100644 src/qemu/meson.build create mode 100644 src/remote/meson.build create mode 100644 src/secret/meson.build create mode 100644 src/storage/meson.build create mode 100644 src/test/meson.build create mode 100644 src/vbox/meson.build create mode 100644 src/vmware/meson.build create mode 100644 src/vz/meson.build diff --git a/meson_options.txt b/meson_options.txt new file mode 100644 index 0000000000..4667fa6580 --- /dev/null +++ b/meson_options.txt @@ -0,0 +1,23 @@ + +option('with-driver-remote', type: 'boolean', value: true, description: 'E= nable remote driver') +option('with-remote-daemon', type: 'boolean', value: true, description: 'E= nable remote daemon') + +option('with-driver-bhyve', type: 'boolean', value: true, description: 'En= able bhyve driver') +option('with-driver-esx', type: 'boolean', value: true, description: 'Enab= le esx driver') +option('with-driver-hyperv', type: 'boolean', value: true, description: 'E= nable hyperv driver') +option('with-driver-libxl', type: 'boolean', value: true, description: 'En= able libxl driver') +option('with-driver-lxc', type: 'boolean', value: true, description: 'Enab= le lxc driver') +option('with-driver-openvz', type: 'boolean', value: true, description: 'E= nable openvz driver') +option('with-driver-phyp', type: 'boolean', value: true, description: 'Ena= ble phyp driver') +option('with-driver-qemu', type: 'boolean', value: true, description: 'Ena= ble qemu driver') +option('with-driver-test', type: 'boolean', value: true, description: 'Ena= ble test driver') +option('with-driver-vbox', type: 'boolean', value: true, description: 'Ena= ble vbox driver') +option('with-driver-vz', type: 'boolean', value: true, description: 'Enabl= e vz driver') +option('with-driver-vmware', type: 'boolean', value: true, description: 'E= nable vmware driver') + +option('with-driver-interface', type: 'boolean', value: true, description:= 'Enable interface driver') +option('with-driver-network', type: 'boolean', value: true, description: '= Enable network driver') +option('with-driver-nodedev', type: 'boolean', value: true, description: '= Enable nodedev driver') +option('with-driver-nwfilter', type: 'boolean', value: true, description: = 'Enable nwfilter driver') +option('with-driver-secret', type: 'boolean', value: true, description: 'E= nable secret driver') +option('with-driver-storage', type: 'boolean', value: true, description: '= Enable storage driver') diff --git a/src/bhyve/meson.build b/src/bhyve/meson.build new file mode 100644 index 0000000000..1c2d41050b --- /dev/null +++ b/src/bhyve/meson.build @@ -0,0 +1,5 @@ + +with_driver_bhyve =3D get_option('with-driver-bhyve') +if not with_remote_daemon or host_machine.system() !=3D 'freebsd' + with_driver_bhyve =3D false +endif diff --git a/src/esx/meson.build b/src/esx/meson.build new file mode 100644 index 0000000000..e9b379d1bb --- /dev/null +++ b/src/esx/meson.build @@ -0,0 +1,2 @@ + +with_driver_esx =3D get_option('with-driver-esx') diff --git a/src/hyperv/meson.build b/src/hyperv/meson.build new file mode 100644 index 0000000000..ebaed11cf3 --- /dev/null +++ b/src/hyperv/meson.build @@ -0,0 +1,2 @@ + +with_driver_hyperv =3D get_option('with-driver-hyperv') diff --git a/src/interface/meson.build b/src/interface/meson.build new file mode 100644 index 0000000000..ca8bcc83c2 --- /dev/null +++ b/src/interface/meson.build @@ -0,0 +1,5 @@ + +with_driver_interface =3D get_option('with-driver-interface') +if not with_remote_daemon + with_driver_interface =3D false +endif diff --git a/src/libxl/meson.build b/src/libxl/meson.build new file mode 100644 index 0000000000..52093656f9 --- /dev/null +++ b/src/libxl/meson.build @@ -0,0 +1,5 @@ + +with_driver_libxl =3D get_option('with-driver-libxl') +if not with_remote_daemon or host_machine.system() !=3D 'linux' + with_driver_libxl =3D false +endif diff --git a/src/lxc/meson.build b/src/lxc/meson.build new file mode 100644 index 0000000000..37a2558623 --- /dev/null +++ b/src/lxc/meson.build @@ -0,0 +1,5 @@ + +with_driver_lxc =3D get_option('with-driver-lxc') +if not with_remote_daemon or host_machine.system() !=3D 'linux' + with_driver_lxc =3D false +endif diff --git a/src/meson.build b/src/meson.build index a86d3a6980..71b42baf22 100644 --- a/src/meson.build +++ b/src/meson.build @@ -23,3 +23,28 @@ libvirt_lxc_dep =3D declare_dependency( dependencies: libvirt_lxc, include_directories: [public_inc_dir] ) + +# General +subdir('remote') + +# Primary virt drivers +subdir('bhyve') +subdir('esx') +subdir('hyperv') +subdir('libxl') +subdir('lxc') +subdir('openvz') +subdir('phyp') +subdir('qemu') +subdir('test') +subdir('vbox') +subdir('vz') +subdir('vmware') + +# Secondary drivers +subdir('interface') +subdir('network') +subdir('node_device') +subdir('nwfilter') +subdir('secret') +subdir('storage') diff --git a/src/network/meson.build b/src/network/meson.build new file mode 100644 index 0000000000..aa8d1ebc5e --- /dev/null +++ b/src/network/meson.build @@ -0,0 +1,5 @@ + +with_driver_network =3D get_option('with-driver-network') +if not with_remote_daemon + with_driver_network =3D false +endif diff --git a/src/node_device/meson.build b/src/node_device/meson.build new file mode 100644 index 0000000000..ae011ad735 --- /dev/null +++ b/src/node_device/meson.build @@ -0,0 +1,5 @@ + +with_driver_nodedev =3D get_option('with-driver-nodedev') +if not with_remote_daemon + with_driver_nodedev =3D false +endif diff --git a/src/nwfilter/meson.build b/src/nwfilter/meson.build new file mode 100644 index 0000000000..b85c58fed4 --- /dev/null +++ b/src/nwfilter/meson.build @@ -0,0 +1,5 @@ + +with_driver_nwfilter =3D get_option('with-driver-nwfilter') +if not with_remote_daemon + with_driver_nwfilter =3D false +endif diff --git a/src/openvz/meson.build b/src/openvz/meson.build new file mode 100644 index 0000000000..be116ba074 --- /dev/null +++ b/src/openvz/meson.build @@ -0,0 +1,2 @@ + +with_driver_openvz =3D get_option('with-driver-openvz') diff --git a/src/phyp/meson.build b/src/phyp/meson.build new file mode 100644 index 0000000000..f16c579426 --- /dev/null +++ b/src/phyp/meson.build @@ -0,0 +1,2 @@ + +with_driver_phyp =3D get_option('with-driver-phyp') diff --git a/src/qemu/meson.build b/src/qemu/meson.build new file mode 100644 index 0000000000..f4ceb6be4d --- /dev/null +++ b/src/qemu/meson.build @@ -0,0 +1,5 @@ + +with_driver_qemu =3D get_option('with-driver-qemu') +if not with_remote_daemon + with_driver_qemu =3D false +endif diff --git a/src/remote/meson.build b/src/remote/meson.build new file mode 100644 index 0000000000..0240ceb17c --- /dev/null +++ b/src/remote/meson.build @@ -0,0 +1,6 @@ + +with_driver_remote =3D get_option('with-driver-remote') +with_remote_daemon =3D get_option('with-remote-daemon') +if not with_remote_daemon or host_machine.system() =3D=3D 'windows' + with_remote_daemon =3D false +endif diff --git a/src/secret/meson.build b/src/secret/meson.build new file mode 100644 index 0000000000..a13bd66665 --- /dev/null +++ b/src/secret/meson.build @@ -0,0 +1,5 @@ + +with_driver_secret =3D get_option('with-driver-secret') +if not with_remote_daemon + with_driver_secret =3D false +endif diff --git a/src/storage/meson.build b/src/storage/meson.build new file mode 100644 index 0000000000..9a18a1f731 --- /dev/null +++ b/src/storage/meson.build @@ -0,0 +1,5 @@ + +with_driver_storage =3D get_option('with-driver-storage') +if not with_remote_daemon + with_driver_storage =3D false +endif diff --git a/src/test/meson.build b/src/test/meson.build new file mode 100644 index 0000000000..451de4cc54 --- /dev/null +++ b/src/test/meson.build @@ -0,0 +1,2 @@ + +with_driver_test =3D get_option('with-driver-test') diff --git a/src/vbox/meson.build b/src/vbox/meson.build new file mode 100644 index 0000000000..71f2136e4c --- /dev/null +++ b/src/vbox/meson.build @@ -0,0 +1,2 @@ + +with_driver_vbox =3D get_option('with-driver-vbox') diff --git a/src/vmware/meson.build b/src/vmware/meson.build new file mode 100644 index 0000000000..f34fdd746b --- /dev/null +++ b/src/vmware/meson.build @@ -0,0 +1,2 @@ + +with_driver_vmware =3D get_option('with-driver-vmware') diff --git a/src/vz/meson.build b/src/vz/meson.build new file mode 100644 index 0000000000..c1c5a4cef4 --- /dev/null +++ b/src/vz/meson.build @@ -0,0 +1,5 @@ + +with_driver_vz =3D get_option('with-driver-vz') +if not with_remote_daemon + with_driver_vz =3D false +endif --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list