rules: Use Meson-style options
The knobs available with Meson are basically the same that were
present before, but the syntax is different. Perform a straight
conversion between the two so that we keep enabling the same
set of features.
Gbp-Dch: Ignore
Andrea Bolognani
3 years ago
16 | 16 | |
17 | 17 | ifneq (,$(findstring $(DEB_HOST_ARCH_OS), linux)) |
18 | 18 | ifneq (,$(findstring $(DEB_HOST_ARCH), i386 amd64)) |
19 | WITH_VBOX = --with-vbox | |
19 | WITH_VBOX = -Ddriver_vbox=enabled | |
20 | 20 | else |
21 | WITH_VBOX = --without-vbox | |
21 | WITH_VBOX = -Ddriver_vbox=disabled | |
22 | 22 | endif |
23 | 23 | ifneq (,$(findstring $(DEB_HOST_ARCH), i386 amd64 armhf arm64)) |
24 | WITH_LIBXL = --with-libxl | |
24 | WITH_LIBXL = -Ddriver_libxl=enabled | |
25 | 25 | XEN_ENABLED = 1 |
26 | 26 | else |
27 | WITH_LIBXL = --without-libxl | |
27 | WITH_LIBXL = -Ddriver_libxl=disabled | |
28 | 28 | endif |
29 | WITH_STORAGE_LVM = --with-storage-lvm | |
30 | WITH_STORAGE_ISCSI = --with-storage-iscsi | |
31 | WITH_STORAGE_DISK = --with-storage-disk | |
32 | WITH_STORAGE_RBD = --with-storage-rbd | |
33 | WITH_STORAGE_GLUSTER = --with-storage-gluster | |
34 | WITH_UDEV = --with-udev | |
35 | WITH_CAPNG = --with-capng | |
36 | WITH_MACVTAP = --with-macvtap | |
37 | WITH_NETWORK = --with-network | |
38 | WITH_OPENVZ = --with-openvz | |
39 | WITH_NETCF = --with-netcf | |
40 | WITH_POLKIT = --with-polkit | |
41 | WITH_SANLOCK = --with-sanlock | |
42 | WITH_INIT_SCRIPT = --with-init-script=systemd | |
43 | WITH_FIREWALLD = --with-firewalld | |
44 | WITH_ATTR = --with-attr | |
45 | WITH_AUDIT = --with-audit | |
46 | WITH_SELINUX = --with-selinux --with-secdriver-selinux --with-selinux-mount=/sys/fs/selinux | |
47 | WITH_APPARMOR = --with-apparmor --with-secdriver-apparmor --with-apparmor-profiles | |
48 | WITH_NSS_PLUGIN = --with-nss-plugin | |
49 | WITH_DTRACE = --with-dtrace | |
50 | WITH_NUMA = --with-numactl --with-numad | |
29 | WITH_STORAGE_LVM = -Dstorage_lvm=enabled | |
30 | WITH_STORAGE_ISCSI = -Dstorage_iscsi=enabled | |
31 | WITH_STORAGE_DISK = -Dstorage_disk=enabled | |
32 | WITH_STORAGE_RBD = -Dstorage_rbd=enabled | |
33 | WITH_STORAGE_GLUSTER = -Dstorage_gluster=enabled | |
34 | WITH_UDEV = -Dudev=enabled | |
35 | WITH_CAPNG = -Dcapng=enabled | |
36 | WITH_MACVTAP = -Dmacvtap=enabled | |
37 | WITH_NETWORK = -Ddriver_network=enabled | |
38 | WITH_OPENVZ = -Ddriver_openvz=enabled | |
39 | WITH_NETCF = -Dnetcf=enabled | |
40 | WITH_POLKIT = -Dpolkit=enabled | |
41 | WITH_SANLOCK = -Dsanlock=enabled | |
42 | WITH_INIT_SCRIPT = -Dinit_script=systemd | |
43 | WITH_FIREWALLD = -Dfirewalld=enabled | |
44 | WITH_ATTR = -Dattr=enabled | |
45 | WITH_AUDIT = -Daudit=enabled | |
46 | WITH_SELINUX = -Dselinux=enabled -Dsecdriver_selinux=enabled -Dselinux-mount=/sys/fs/selinux | |
47 | WITH_APPARMOR = -Dapparmor=enabled -Dsecdriver_apparmor=enabled -Dapparmor_profiles=true | |
48 | WITH_NSS_PLUGIN = -Dnss=enabled | |
49 | WITH_DTRACE = -Ddtrace=enabled | |
50 | WITH_NUMA = -Dnumactl=enabled -Dnumad=enabled | |
51 | 51 | ifneq (,$(findstring $(DEB_HOST_ARCH), ia64)) |
52 | WITH_LXC = --without-lxc | |
52 | WITH_LXC = -Ddriver_lxc=disabled | |
53 | 53 | else |
54 | WITH_LXC = --with-lxc | |
54 | WITH_LXC = -Ddriver_lxc=enabled | |
55 | 55 | endif |
56 | 56 | else |
57 | WITH_STORAGE_LVM = --without-storage-lvm | |
58 | WITH_STORAGE_ISCSI = --without-storage-iscsi | |
59 | WITH_STORAGE_DISK = --without-storage-disk | |
60 | WITH_STORAGE_RBD = --without-storage-rbd | |
61 | WITH_STORAGE_GLUSTER = --without-storage-gluster | |
62 | WITH_UDEV = --without-udev | |
63 | WITH_CAPNG = --without-capng | |
64 | WITH_MACVTAP = --without-macvtap | |
65 | WITH_NETWORK = --without-network | |
66 | WITH_OPENVZ = --without-openvz | |
67 | WITH_LXC = --without-lxc | |
68 | WITH_NUMA = --without-numactl --without-numad | |
69 | WITH_NETCF = --without-netcf | |
70 | WITH_INIT_SCRIPT = --with-init-script=none | |
71 | WITH_POLKIT = --without-polkit | |
72 | WITH_SANLOCK = --without-sanlock | |
73 | WITH_FIREWALLD = --without-firewalld | |
74 | WITH_ATTR = --without-attr | |
75 | WITH_AUDIT = --without-audit | |
76 | WITH_SELINUX = --without-selinux | |
77 | WITH_APPARMOR = --without-apparmor | |
78 | WITH_NSS_PLUGIN = --without-nss-plugin | |
79 | WITH_DTRACE = --without-dtrace | |
80 | WITH_LIBXL = --without-libxl | |
81 | WITH_VBOX = --without-vbox | |
57 | WITH_VBOX = -Ddriver_vbox=disabled | |
58 | WITH_LIBXL = -Ddriver_libxl=disabled | |
59 | WITH_STORAGE_LVM = -Dstorage_lvm=disabled | |
60 | WITH_STORAGE_ISCSI = -Dstorage_iscsi=disabled | |
61 | WITH_STORAGE_DISK = -Dstorage_disk=disabled | |
62 | WITH_STORAGE_RBD = -Dstorage_rbd=disabled | |
63 | WITH_STORAGE_GLUSTER = -Dstorage_gluster=disabled | |
64 | WITH_UDEV = -Dudev=disabled | |
65 | WITH_CAPNG = -Dcapng=disabled | |
66 | WITH_MACVTAP = -Dmacvtap=disabled | |
67 | WITH_NETWORK = -Ddriver_network=disabled | |
68 | WITH_OPENVZ = -Ddriver_openvz=disabled | |
69 | WITH_NETCF = -Dnetcf=disabled | |
70 | WITH_POLKIT = -Dpolkit=disabled | |
71 | WITH_SANLOCK = -Dsanlock=disabled | |
72 | WITH_INIT_SCRIPT = -Dinit_script=none | |
73 | WITH_FIREWALLD = -Dfirewalld=disabled | |
74 | WITH_ATTR = -Dattr=disabled | |
75 | WITH_AUDIT = -Daudit=disabled | |
76 | WITH_SELINUX = -Dselinux=disabled -Dsecdriver_selinux=disabled -Dselinux-mount= | |
77 | WITH_APPARMOR = -Dapparmor=disabled -Dsecdriver_apparmor=disabled -Dapparmor_profiles=false | |
78 | WITH_NSS_PLUGIN = -Dnss=disabled | |
79 | WITH_DTRACE = -Ddtrace=disabled | |
80 | WITH_NUMA = -Dnumactl=disabled -Dnumad=disabled | |
81 | WITH_LXC = -Ddriver_lxc=disabled | |
82 | 82 | endif |
83 | 83 | |
84 | 84 | DEB_CONFIGURE_EXTRA_ARGS := \ |
85 | 85 | --libexecdir=/usr/lib/libvirt \ |
86 | --with-packager="$(DEB_BUILDUSER) $(DEB_BUILDDATE)" \ | |
87 | --with-packager-version="$(DEB_RELEASE)" \ | |
88 | --with-qemu \ | |
89 | --with-qemu-user=libvirt-qemu \ | |
90 | --with-qemu-group=libvirt-qemu \ | |
86 | -Dpackager="$(DEB_BUILDUSER) $(DEB_BUILDDATE)" \ | |
87 | -Dpackager_version="$(DEB_RELEASE)" \ | |
88 | -Ddriver_qemu=enabled \ | |
89 | -Dqemu_user=libvirt-qemu \ | |
90 | -Dqemu_group=libvirt-qemu \ | |
91 | 91 | $(WITH_OPENVZ) \ |
92 | --with-sasl \ | |
93 | --with-yajl \ | |
94 | --with-ssh2 \ | |
92 | -Dsasl=enabled \ | |
93 | -Dyajl=enabled \ | |
94 | -Dlibssh2=enabled \ | |
95 | 95 | $(WITH_POLKIT) \ |
96 | 96 | $(WITH_SANLOCK) \ |
97 | 97 | $(WITH_UDEV) \ |
98 | --with-storage-fs \ | |
99 | --with-storage-dir \ | |
98 | -Dstorage_fs=enabled \ | |
99 | -Dstorage_dir=enabled \ | |
100 | 100 | $(WITH_STORAGE_LVM) \ |
101 | 101 | $(WITH_STORAGE_ISCSI) \ |
102 | 102 | $(WITH_STORAGE_DISK) \ |
103 | --without-storage-sheepdog \ | |
103 | -Dstorage_sheepdog=disabled \ | |
104 | 104 | $(WITH_STORAGE_RBD) \ |
105 | 105 | $(WITH_STORAGE_GLUSTER) \ |
106 | --with-storage-zfs \ | |
106 | -Dstorage_zfs=enabled \ | |
107 | 107 | $(WITH_INIT_SCRIPT) \ |
108 | 108 | $(WITH_NUMA) \ |
109 | 109 | $(WITH_SELINUX) \ |
110 | 110 | $(WITH_APPARMOR) \ |
111 | --with-esx \ | |
111 | -Ddriver_esx=enabled \ | |
112 | 112 | $(WITH_CAPNG) \ |
113 | 113 | $(WITH_MACVTAP) \ |
114 | 114 | $(WITH_NETWORK) \ |
118 | 118 | $(WITH_LXC) \ |
119 | 119 | $(WITH_DTRACE) \ |
120 | 120 | $(WITH_AUDIT) \ |
121 | --without-hal \ | |
121 | -Dhal=disabled \ | |
122 | 122 | $(WITH_FIREWALLD) \ |
123 | 123 | $(WITH_ATTR) \ |
124 | 124 | $(WITH_NSS_PLUGIN) \ |
125 | --with-wireshark-dissector \ | |
125 | -Dwireshark_dissector=enabled \ | |
126 | 126 | $(NULL) |
127 | 127 | |
128 | 128 | LIBVIRT_SYSTEM_SERVICES = \ |