Merge branch 'meson-fixes' into 'master'
[cairo.git] / INSTALL
blob2229680496c317e1af2a289ca4c32be73c9261d1
1 Installation Instructions
2 =========================
4 Requirements
5 ------------
6 As well as the requirements listed in README, the meson build also requires:
7   meson (http://mesonbuild.com)
8   ninja (http://ninja-build.org)
10 Basic Installation
11 ------------------
12   meson setup $builddir
13   ninja -C $builddir
14   ninja -C $builddir install
16 where $builddir is the name of the directory where the build artifacts
17 will be written to.
19 Some of the common options that can be used with "meson setup" include:
21 Set the install prefix.
22   --prefix=<path>
24 Set the build type. Some common build types include "debug" and "release"
25   --buildtype=<buildtype>
27 Compiler and linker flags can be set with the CFLAGS and LDFLAGS
28 environment variables.
30 Configuring cairo backends
31 --------------------------
32 After running "meson build", "meson configure" can be used to display
33 or modify the build configuration.
37  Display configuration:
38     meson configure $builddir
40  Enable pdf and disable ps:
41     meson configure $builddir -Dpdf=enabled -Dps=disabled
43 The "-D" options can also be used with "meson setup"
45 Tests
46 -----
47 Refer to test/README