mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-01 13:55:36 +00:00
CONTRIBUTING: remove autotools instructions, add more information about meson
This commit updates the CONTRIBUTING.md file to remove information about Autotools and add some additional tips for using meson. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1927
This commit is contained in:
parent
7faa351e4d
commit
32063f01b3
|
@ -197,17 +197,11 @@ you can look at [this](contrib/fedora/REQUIRED_PACKAGES)
|
|||
script and [here](contrib/debian/REQUIRED_PACKAGES)
|
||||
is a script for Debian/Ubuntu.
|
||||
|
||||
Both meson and autotools are supported. You may choose whatever you prefer.
|
||||
For autotools the common steps are
|
||||
meson is the recommended way for building NetworkManager. You can configure
|
||||
the build environment using the `meson setup` command:
|
||||
|
||||
```
|
||||
./autogen.sh $CONFIGURE_OPTIONS
|
||||
make -j 8
|
||||
# optional: sudo make install
|
||||
```
|
||||
and for meson it's
|
||||
```
|
||||
meson build $CONFIGURE_OPTIONS
|
||||
meson setup build/ $CONFIGURE_OPTIONS
|
||||
ninja -C build
|
||||
# optional: sudo meson install -C build
|
||||
```
|
||||
|
@ -216,6 +210,13 @@ Beware to set the correct `$CONFIGURE_OPTIONS`. In particular, you may
|
|||
not want the default installation prefix and not overwrite files in
|
||||
`/usr`.
|
||||
|
||||
To specify options when setting up the meson environment, the `-D` argument
|
||||
is used, like: `meson setup build -Ddocs=true`.
|
||||
|
||||
To get a list of all possible configuration options, you can use `meson configure`.
|
||||
|
||||
For additional usage, refer to the meson manual.
|
||||
|
||||
### Fedora
|
||||
|
||||
For Fedora/RHEL/CentOS, you can build an RPM from upstream sources with
|
||||
|
|
Loading…
Reference in a new issue