meson pluginΒΆ

Meson build element

A BuildElement implementation for using Meson build scripts

The meson default configuration:
# Meson default configuration

variables:

  build-dir: _builddir
  meson: |

    meson %{build-dir} --prefix=%{prefix} \
                       --bindir=%{bindir} \
                       --sbindir=%{sbindir} \
                       --sysconfdir=%{sysconfdir} \
                       --datadir=%{datadir} \
                       --includedir=%{includedir} \
                       --libdir=%{libdir} \
                       --libexecdir=%{libexecdir} \
                       --localstatedir=%{localstatedir} \
                       --sharedstatedir=%{sharedstatedir} \
                       --mandir=%{mandir} \
                       --infodir=%{infodir}

  ninja: |
    ninja -j ${NINJAJOBS} -C %{build-dir}

  ninja-install: |
    env DESTDIR="%{install-root}" ninja -C %{build-dir} install

  # Set this if the sources cannot handle parallelization.
  #
  # notparallel: True

config:

  # Commands for configuring the software
  #
  configure-commands:
  - |
    %{meson}

  # Commands for building the software
  #
  build-commands:
  - |
    %{ninja}

  # Commands for installing the software into a
  # destination folder
  #
  install-commands:
  - |
    %{ninja-install}

  # Commands for stripping debugging information out of
  # installed binaries
  #
  strip-commands:
  - |
    %{strip-binaries}

# Use max-jobs CPUs for building
environment:
  NINJAJOBS: |
    %{max-jobs}

# And dont consider NINJAJOBS as something which may
# effect build output.
environment-nocache:
- NINJAJOBS