]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: compiling: Encourage force-enabling required functionality
authorPeter Krempa <pkrempa@redhat.com>
Fri, 9 Sep 2022 13:45:47 +0000 (15:45 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 13 Sep 2022 11:36:49 +0000 (13:36 +0200)
To prevent surprises when a build doesn't in fact contain the required
functionality suggest that users force-enable required modules.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/compiling.rst

index e9d055914f4c857b010cb7c877d34751c3730b7e..8560d4ba7a8a011b3e296bb42a767cfa09244f46 100644 (file)
@@ -81,6 +81,25 @@ normal OS vendor prefixes, use
 
    $ meson build -Dsystem=true
 
+Explicitly enabling required functionality
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+By default each module of functionality of libvirtd is optionally enabled,
+meaning it will be enabled if the build environment contains the required
+dependencies.
+
+To ensure that your build contains the required functionality it's recommended
+to explicitly enable given modules, in which case the configure step will end
+with an error if dependencies are not present. **Example:** to build the
+libvirt project with support for the **qemu** driver use the following options:
+
+::
+
+   $ meson build -Dsystem=true -Ddriver_qemu=enabled
+
+Notes:
+~~~~~~
+
 By default when the ``meson`` is run from within a GIT checkout, it will turn
 on -Werror for builds. This can be disabled with --werror=false, but this is
 not recommended.