Compiling and Installing
========================
-#. `Prerequisites for building <#prereq-general>`__
+.. toctree::
+ :maxdepth: 1
+ :hidden:
- - `General prerequisites <#prereq-general>`__
- - `For DRI and hardware acceleration <#prereq-dri>`__
-
-#. `Building with meson <#meson>`__
-#. `Building with SCons (Windows/Linux) <#scons>`__
-#. `Building with AOSP (Android) <#android>`__
-#. `Library Information <#libs>`__
-#. `Building OpenGL programs with pkg-config <#pkg-config>`__
-
-.. _prereq-general:
+ meson
1. Prerequisites for building
-----------------------------
For MSVC on Windows, install `Win
flex-bison <http://winflexbison.sourceforge.net/>`__.
-**Note**: Some versions can be buggy (eg. flex 2.6.2) so do try others
-if things fail.
+.. note::
-.. _prereq-dri:
+ Some versions can be buggy (eg. flex 2.6.2) so do try others
+ if things fail.
1.2 Requirements
~~~~~~~~~~~~~~~~
apt-get build-dep mesa # Debian and derivatives
... # others
-.. _meson:
-
2. Building with meson
----------------------
cd builddir
msbuild mesa.sln /m
-Please read the `detailed meson instructions <meson.html>`__ for more
+Please read the :doc:`detailed meson instructions <meson>` for more
information
-.. _scons:
-
3. Building with SCons (Windows/Linux)
--------------------------------------
Put them all in the same directory to test them. Additional information
is available in `README.WIN32 <README.WIN32>`__.
-.. _android:
-
4. Building with AOSP (Android)
-------------------------------
FINISHME: Improve on the instructions add references to Rob H
repos/Jenkins, Android-x86 and/or other resources.
-.. _libs:
-
5. Library Information
----------------------
If you built with Gallium support, look in lib/gallium/ for
Gallium-based versions of libGL and device drivers.
-.. _pkg-config:
-
6. Building OpenGL programs with pkg-config
-------------------------------------------