4 **jack_mixer** uses [meson] and optionally a Python [PEP-517]-compliant build
5 system for building, installation and packaging.
12 * GCC (version 9.x or 10.x recommended, package `build-essential` on Debian/Ubuntu)
15 * Python headers (`python3-dev`)
16 * [JACK] headers (`libjack-jackd2-dev` (recommended) or `libjack-dev`)
17 * glib2 headers (`libglib-2.0-dev`)
18 * [Cython] (optional, required if building from a Git checkout)
19 * [docutils] (optional, `rst2man` required if building from a Git checkout)
23 * Python (at least 3.6)
26 * `libjack` and JACK server (`jackd2` (recommended) or `jackd`)
28 Optional run-time dependencies:
30 * [pyxdg] - For saving your preferences (strongly recommended)
31 * [NSM] - For NSM session management support
36 Building with meson always happens in a special build directory. Set up the
37 build in the `builddir` sub-directory and configure the build with:
40 meson setup builddir --prefix=/usr --buildtype=release
43 Then build the software with:
46 meson compile -C builddir
53 [sudo] meson install -C builddir
56 **Note for packagers**: to install all files under a destination directory
57 other than the filesystem root, set the `DESTDIR` environment variable for
63 DESTDIR="/tmp/jack_mixer-install-root" meson install -C builddir
69 There are several project-specific [options] to configure the build and the
70 resulting installation. To see all supported options (including [standard
71 meson options]) and their possible values run:
77 If you have already set up the build directory, you can append its name
78 to see the current values of all options for this build configuration.
80 To change an option, pass the build directory and `-Doption=value` to
81 `meson setup` or `meson configure`. For example:
84 meson configure builddir -Dgui=disabled
88 ## Building a Python wheel (for maintainers)
90 1. Make sure you have Python 3, `git` and [pip] installed:
91 2. Run the following command to build a binary wheel:
97 This will automatically download the required build tools, e.g. Cython, meson,
98 ninja, the Python `wheel` package etc. (see the [pyproject.toml] file for
99 details), build the software with meson and then package it into a wheel, which
100 will be placed in the project's root directory.
102 The wheel can be installed with `pip install jack_mixer-*.whl`.
105 [docutils]: https://pypi.org/project/docutils/
106 [Cython]: https://cython.org/
107 [JACK]: https://jackaudio.org/
108 [meson]: https://mesonbuild.com/
109 [ninja]: https://ninja-build.org/
110 [NSM]: https://github.com/linuxaudio/new-session-manager
111 [options]: https://mesonbuild.com/Build-options.html
112 [pip]: https://pypi.org/project/pip/
113 [pycairo]: https://pypi.org/project/pycairo/
114 [PyGObject]: https://pypi.org/project/PyGObject/
115 [pyxdg]: https://freedesktop.org/wiki/Software/pyxdg/
116 [PEP-517]: https://www.python.org/dev/peps/pep-0517/
117 [pyproject.toml]: ./pyproject.toml
118 [standard meson options]: https://mesonbuild.com/Builtin-options.html