]> git.proxmox.com Git - ceph.git/blob - ceph/src/zstd/build/meson/README.md
import 15.2.0 Octopus source
[ceph.git] / ceph / src / zstd / build / meson / README.md
1 Meson build system for zstandard
2 ================================
3
4 Meson is a build system designed to optimize programmer productivity.
5 It aims to do this by providing simple, out-of-the-box support for
6 modern software development tools and practices, such as unit tests,
7 coverage reports, Valgrind, CCache and the like.
8
9 This Meson build system is provided with no guarantee and maintained
10 by Dima Krasner \<dima@dimakrasner.com\>.
11
12 It outputs one `libzstd`, either shared or static, depending on
13 `default_library` option.
14
15 ## How to build
16
17 `cd` to this meson directory (`build/meson`)
18
19 ```sh
20 meson --buildtype=release -Dbuild_{programs,contrib}=true builddir
21 cd builddir
22 ninja # to build
23 ninja install # to install
24 ```
25
26 You might want to install it in staging directory:
27
28 ```sh
29 DESTDIR=./staging ninja install
30 ```
31
32 To configure build options, use:
33
34 ```sh
35 meson configure
36 ```
37
38 See [man meson(1)](https://manpages.debian.org/testing/meson/meson.1.en.html).