mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-15 10:40:58 +01:00
INSTALL: Re-word CMake build instructions
Originally part of commit "README,INSTALL: remove references to the autotools build system" in dbus!378. Co-authored-by: Simon McVittie <smcv@collabora.com> Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
4325a0fcc8
commit
041b236251
1 changed files with 23 additions and 6 deletions
29
INSTALL
29
INSTALL
|
|
@ -71,13 +71,30 @@ https://mesonbuild.com/Running-Meson.html
|
|||
|
||||
The CMake equivalent is:
|
||||
|
||||
mkdir dbus-build-dir
|
||||
cd dbus-build-dir
|
||||
cmake -G <makefile-generator-name> [-D<option>] <dbus-src-root>/cmake
|
||||
make
|
||||
make install
|
||||
``` sh
|
||||
cd <dbus-src-root>
|
||||
cmake -G <makefile-generator-name> [-D<option>] -B dbus-build-dir
|
||||
cmake --build <dbus-build-dir>
|
||||
cmake --build <dbus-build-dir> -t check
|
||||
```
|
||||
|
||||
See README.cmake for more details.
|
||||
The installation of the build with CMake is performed with:
|
||||
|
||||
``` sh
|
||||
cmake --build <dbus-build-dir> -t install [DESTDIR=<install-dir>]
|
||||
```
|
||||
|
||||
When using makefile generator `-t install/fast` can also be used,
|
||||
which prevents rebuilding.
|
||||
|
||||
CMake will automatically determine whether to build some features
|
||||
based on what tools and/or libraries are installed on the host system.
|
||||
The default build behaviour can be overridden using the
|
||||
-DENABLE_<XXX> arguments to cmake.
|
||||
A typical scenario in which it is desirable to override automatic
|
||||
detection, is during packaging of binary builds, where a predictable
|
||||
dependancy chain is required. For more details on cmake installation,
|
||||
consult http://www.cmake.org/cmake/help/help.html.
|
||||
|
||||
External software dependencies
|
||||
==============================
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue