DBus Installation ================= Quick start =========== This branch of dbus can be built by using Meson, GNU Autotools or CMake. The Meson build system is the recommended build system for the master branch (versions >= 1.15.0), except when building on Windows, for which CMake is recommended (this recommendation might change to Meson in future). Meson only supports out-of-tree builds, and must be passed a directory to put built and generated sources into. We'll call that directory "build" here. It's recommended to create a separate build directory for each configuration you might want to use. Basic configuration is done with: ``` sh meson build/ ``` This will create the build directory. If any dependencies are missing, you can install them, or try to remove the dependency with a Meson configuration option (see below). Older versions of dbus required Autotools or CMake, with Autotools recommended for Unix systems and CMake recommended for Windows systems. Configuration flags =================== When using Meson, to review the options which Meson chose, run: ``` sh meson configure build/ ``` With additional arguments meson configure can be used to change options for a previously configured build directory. All options passed to this command are in the form `-D "option"="value"`. For example: ``` sh meson configure build/ -Dprefix=/tmp/install ``` See `meson_options.txt` for details of dbus-specific options, and for details of generic Meson options. Other build systems ------------------- When using Autotools, run "./configure --help" to see the possible configuration options and environment variables. When using CMake, inspect README.cmake to see the possible configuration options and environment variables. Building ======== To build with meson, here is a quick guide: ``` sh cd dbus meson setup build/ && cd build/ meson compile meson test ``` Full build instructions can be found on mesonbuild website: https://mesonbuild.com/Running-Meson.html Building with CMake ------------------- The CMake equivalent is: ``` sh cd cmake -G [-D