diff --git a/docs/reference/gtk/building.sgml b/docs/reference/gtk/building.sgml
index 02e3347c1d..a7ca6c4832 100644
--- a/docs/reference/gtk/building.sgml
+++ b/docs/reference/gtk/building.sgml
@@ -35,64 +35,37 @@ How to compile GTK+ itself
already.
- On UNIX-like systems GTK+ uses the standard GNU build system,
- using autoconf for package
- configuration and resolving portability issues,
- automake for building makefiles that
- comply with the GNU Coding Standards, and
- libtool for building shared libraries
- on multiple platforms.
-
-
- If you are building GTK+ from the distributed source packages,
- then you won't need these tools installed; the necessary pieces
- of the tools are already included in the source packages. But
- it's useful to know a bit about how packages that use these
- tools work. A source package is distributed as a
- tar.bz2 or tar.xz file
- which you unpack into a directory full of the source files as follows:
+ On all supported platforms, GTK+ uses the Meson build system.
- tar xvfj gtk+-3.2.0.tar.bz2
- tar xvfJ gtk+-3.2.0.tar.xz
+ tar xvfJ gtk+-3.24.0.tar.xz
- In the toplevel directory that is created, there will be
- a shell script called configure which
- you then run to take the template makefiles called
- Makefile.in in the package and create
- makefiles customized for your operating system.
- The configure script can be passed
- various command line arguments to determine how the package
- is built and installed. The most commonly useful argument is
- the --prefix argument which
- determines where the package is installed. To install a package
- in /opt/gtk you would run configure as:
+ Once you have extracted the files from the release archive, and
+ you entered the source directory, you can use the meson
+ command to configure the project.
- ./configure --prefix=/opt/gtk
+ meson setup --prefix=/opt/gtk _builddir .
A full list of options can be found by running
- configure with the
- --help argument. In general, the defaults are
- right and should be trusted. After you've run
- configure, you then run the
- make command to build the package and install
- it.
+ meson configure from within the build directory.
+ In general, the defaults are right and should be trusted.
+
+
+ After you've run meson setup, you then run the
+ meson compile command to build the project and
+ install it.
- make
- make install
+ meson compile -C _builddir
+ meson install -C _builddir
If you don't have permission to write to the directory you are
installing in, you may have to change to root temporarily before
- running make install. Also, if you are
- installing in a system directory, on some systems (such as
- Linux), you will need to run ldconfig after
- make install so that the newly installed
- libraries will be found.
+ running meson install.
Several environment variables are useful to pass to set before
@@ -131,10 +104,10 @@ How to compile GTK+ itself
Before you can compile the GTK+ widget toolkit, you need to have
various other tools and libraries installed on your
- system. The two tools needed during the build process (as
+ system. The main tool needed during the build process (as
differentiated from the tools used in when creating GTK+
- mentioned above such as autoconf)
- are pkg-config and GNU make.
+ mentioned above such as meson)
+ is pkg-config.
@@ -148,17 +121,6 @@ How to compile GTK+ itself
needed for that library along with version number information.)
-
-
- The GTK+ makefiles will mostly work with different versions
- of make, however, there tends to be
- a few incompatibilities, so the GTK+ team recommends
- installing GNU
- make if you don't already have it on your system
- and using it. (It may be called gmake
- rather than make.)
-
-
Some of the libraries that GTK+ depends on are maintained by
@@ -168,17 +130,15 @@ How to compile GTK+ itself
- The GLib library provides core non-graphical functionality
- such as high level data types, Unicode manipulation, and
- an object and type system to C programs. It is available
- from the GTK+
- FTP site or
- here.
+ The GLib library
+ provides core non-graphical functionality such as high level data types,
+ Unicode manipulation, and an object and type system to C programs. It is
+ available here.
- The GdkPixbuf library
+ The GdkPixbuf library
provides facilities for loading images in a variety of file formats.
It is available
here.
@@ -186,14 +146,15 @@ How to compile GTK+ itself
- Pango is a library
+ Pango is a library
for internationalized text handling. It is available
here.
- ATK is the Accessibility Toolkit. It provides a set of generic
+ ATK is the
+ Accessibility Toolkit. It provides a set of generic
interfaces allowing accessibility technologies such as
screen readers to interact with a graphical user interface.
It is available
@@ -202,7 +163,7 @@ How to compile GTK+ itself
- Gobject Introspection
+ Gobject Introspection
is a framework for making introspection data available to
language bindings. It is available
here.
@@ -304,244 +265,80 @@ How to compile GTK+ itself
GTK+ installs.
- If one of the configure scripts fails or running
- make fails, look closely at the error
- messages printed; these will often provide useful information
- as to what went wrong. When configure
- fails, extra information, such as errors that a test compilation
- ran into, is found in the file config.log.
- Looking at the last couple of hundred lines in this file will
- frequently make clear what went wrong. If all else fails, you
- can ask for help on the gtk-list mailing list.
- See for more information.
+ If either the meson setup or the
+ meson compile commands fail, look closely
+ at the error messages printed; these will often provide useful
+ information as to what went wrong.
-