Build documentation (#1744)

* explain how to pass options to meson

* fix typo in INSTALL.md
This commit is contained in:
cognitiond
2022-11-17 14:36:13 +00:00
committed by GitHub
parent c9faa69a1b
commit 0bbccc3137

View File

@@ -109,11 +109,15 @@ From this point, use the same steps you use for a release.
## Options for configure ## Options for configure
When you run the configure step there are several options you can configure. When you run the configure step there are several options you can configure.
For Autotools, you can see the full list with `./configure --help`.
For Meson, before the initial setup, you can see rofi options in `meson_options.txt` and Meson options with `meson setup --help`.
After the initial setup, use `meson configure build`.
The most useful one to set the installation prefix: For Autotools, you can see the full list with `./configure --help`.
For Meson, before the initial setup, you can see rofi options in `meson_options.txt` and Meson options with `meson setup --help`.
Meson's built-in options can be set using regular command line arguments, like so: `meson setup build --option=value`.
Rofi-specific options can be set using the `-D` argument, like so: `meson setup build -Doption=value`.
After the build dir is set up by `meson setup build`, the `meson configure build` command can be used to configure options, by the same means.
The most useful one to set is the installation prefix:
# Autotools # Autotools
../configure --prefix=<installation path> ../configure --prefix=<installation path>