1Build & Test
2============
3
4Clone gobject-introspection with git:
5
6.. code:: shell
7
8    git clone https://gitlab.gnome.org/GNOME/gobject-introspection.git
9    cd gobject-introspection
10
11
12Autotools
13---------
14
15Build:
16    .. code:: shell
17
18        ./autogen.sh
19        # To see the build options run "./configure --help"
20        make
21
22Test:
23    .. code:: shell
24
25        make check  # run tests
26        make check.quality  # run code quality checks
27
28
29Meson
30-----
31
32Build:
33    .. code:: shell
34
35        meson _build
36        cd _build
37        # To see the build options run "meson configure"
38        ninja _build
39
40Test:
41    .. code:: shell
42
43        meson test  # run tests
44        flake8 ..  # run code quality checks
45
46
47Dependencies
48------------
49
50gobject-introspection depends on a row of other packages, either strictly,
51optionally or only for testing. The following installation instructions should
52over all cases for some common Distributions.
53
54Debian/Ubuntu:
55    .. code:: shell
56
57        sudo apt install pkg-config python3-dev flex bison libglib2.0-dev \
58            autoconf-archive libcairo2-dev libffi-dev python3-mako \
59            python3-markdown python3-distutils meson build-essential \
60            gtk-doc-tools
61
62Fedora:
63    .. code:: shell
64
65        sudo dnf install pkg-config flex bison cairo-devel
66            cairo-gobject-devel autoconf-archive python3-mako gcc automake \
67            autoconf python3-markdown meson libffi-devel python3-devel \
68            python3 gtk-doc
69