2017-10-21 14:37:31 -07:00
|
|
|
** COMPILING and INSTALLING **
|
|
|
|
------------------------------
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
Meson is the build system used for this project. For more information please
|
|
|
|
see:
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
http://mesonbuild.com
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
----
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
Normal compilation in /usr/local:
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
meson . build
|
|
|
|
ninja -C build
|
|
|
|
sudo ninja -C build install
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2020-04-01 02:12:20 -07:00
|
|
|
Normal compilation without libclang:
|
|
|
|
|
|
|
|
meson build -Dlibclang=false
|
|
|
|
ninja -C build
|
|
|
|
sudo ninja -C build install
|
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
For meson build generic options:
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
meson --help
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
For a list of project specific options supported:
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
cat meson_options.txt
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
To set 1 or more project specific options:
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
meson --prefix=/path/to -Doption=value [-Dother=value2] [...] . build
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
To display current configuration:
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
mesonconf build
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
The above will only work after at least the following is done:
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
meson . build
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
** QUICK AND DIRTY HELP **
|
|
|
|
--------------------------
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2019-05-02 07:44:46 -07:00
|
|
|
How to clean out the build and config and start fresh:
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
rm -rf build
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
How to make a dist tarball and check its build:
|
|
|
|
(must do it from git tree clone and commit all changes to git first)
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
ninja -C build dist
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
How to change prefix:
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
meson --prefix=/path/to/prefix . build
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
How to install in a specific destination directory for packaging:
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
DESTDIR=/path/to/destdir ninja -C build install
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
How to build with verbose output (full commands run):
|
2014-02-12 12:56:20 -08:00
|
|
|
|
2017-10-21 14:37:31 -07:00
|
|
|
ninja -C build -v
|
2014-02-12 12:56:20 -08:00
|
|
|
|