Lines Matching full:meson
1 Compilation and Installation Using Meson
7 For general information about Meson see the `Meson
12 Mesa requires Meson >= 0.60.0 to build.
16 <https://mesonbuild.com/Getting-meson.html>`__ to install the
17 current version of Meson.
19 The Meson build of Mesa is tested on Linux, macOS, Windows, Cygwin,
25 If Meson is not already installed on your system, you can typically
30 sudo apt-get install meson # Ubuntu
36 sudo dnf install meson # Fedora
38 Some older versions of Meson do not check that they are too old and will
109 You will need to install Python 3 and Meson as a module using pip. This
111 modules (Mako). You also need pkg-config (a hard dependency of Meson),
126 Then install Meson using pip
130 py -3 -m pip install meson packaging mako
133 Meson.
138 The Meson program is used to configure the source directory and
143 Meson only supports out-of-tree builds, and must be passed a directory
153 meson setup build/
156 you can install them, or try to remove the dependency with a Meson
157 configuration option (see below). Meson will print a summary of the
160 To review the options which Meson chose, run:
164 meson configure build/
166 Recent version of Meson can print the available options and their
167 default values by running ``meson configure`` in the source directory.
168 If your Meson version is too old, you can always look in the
172 With additional arguments ``meson configure`` can be used to change
178 meson configure build/ -Dprefix=/tmp/install -Dglx=true
186 Once you've run the initial ``meson`` command successfully you can use
224 Meson with these it to open a shell. For clang-cl you will need to open
231 ``--backend=vs`` to Meson will generate a Visual Studio solution.
239 Meson default to installing :file:`libGL.so` in your system's main
248 meson --prefix="${PWD}/build/install" build/
254 Meson also honors ``DESTDIR`` for installs.
259 Meson supports the common CFLAGS, CXXFLAGS, etc. environment variables
271 meson setup builddir/ -Dc_args=-fmax-errors=10 -Dcpp_args=-DMAGIC=123
276 Meson supports the standard CC and CXX environment variables for
277 changing the default compiler. Note that Meson does not allow changing
286 CC=clang CXX=clang++ meson setup build-clang
289 meson configure build -Dc_args="-Wno-typedef-redefinition"
292 The default compilers depends on your operating system. Meson supports
299 Meson includes upstream logic to wrap llvm-config using its standard
302 Meson can use CMake to find LLVM. But due to the way LLVM implements its
310 meson setup builddir -Dcmake_module_path=/home/user/mycmake/prefix
312 As of Meson 0.49.0 Meson also has the concept of a `"native
324 Then configure Meson:
328 meson setup builddir/ --native-file custom-llvm.ini
344 Then configure Meson:
348 meson setup builddir/ --cross-file cross-llvm.ini
354 either undesirable or impossible. Meson's solution for this is a
360 - Add a :file:`meson.build` file to that directory (more on that later)
373 such a :file:`meson.build` file might look like:
379 cpp = meson.get_compiler('cpp')
382 _search = join_paths(meson.current_source_dir(), 'lib')
432 One of the oddities of Meson is that some options are different when
433 passed to :program:`meson` than to ``meson configure``. These options are
434 passed as --option=foo to :program:`meson`, but -Doption=foo to
435 ``meson configure``. Mesa defined options are always passed as
444 Note that in Meson this defaults to ``debugoptimized``, and not
450 ``plain`` buildtype, which causes Meson to inject no additional
455 This option controls assertions in Meson projects. When set to
465 `Meson supports
468 this file to ``meson`` or ``meson configure`` with the ``--cross-file``
473 :file:`$XDG_DATA_HOME/meson/cross` or :file:`~/.local/share/meson/cross`
481 - `meson-cross-x86-linux-gnu <https://aur.archlinux.org/packages/meson-cross-x86-linux-gnu>`__
482 - `meson-cross-aarch64-linux-gnu <https://github.com/dcbaker/archlinux-meson-cross-aarch64-linux-g…