MESON-MULTILIB.ECLASS

Section: eclass-manpages (5)
Updated: Jun 2021
Index Return to Main Contents

NAME

meson-multilib.eclass - meson wrapper for multilib builds

DESCRIPTION

The meson-multilib.eclass provides a glue between meson.eclass(5) and multilib-minimal.eclass(5), aiming to provide a convenient way to build packages using meson for multiple ABIs.

Inheriting this eclass sets IUSE and exports default multilib_src_*() sub-phases that call meson phase functions for each ABI enabled. The multilib_src_*() functions can be defined in ebuild just like in multilib-minimal, yet they ought to call appropriate meson phase rather than 'default'.

SUPPORTED EAPIS

7

FUNCTIONS

meson_native_use_bool <USE flag> [option name]
Given a USE flag and a meson project option, output a string like:


  -Doption=true
  -Doption=false

if building for the native ABI (multilib_is_native_abi is true). Otherwise, output -Doption=false. If the project option is unspecified, it defaults to the USE flag.

meson_native_use_feature <USE flag> [option name]
Given a USE flag and a meson project option, output a string like:


  -Doption=enabled
  -Doption=disabled

if building for the native ABI (multilib_is_native_abi is true). Otherwise, output -Doption=disabled. If the project option is unspecified, it defaults to the USE flag.

meson_native_enabled <option name>
Output -Doption=enabled option if executables are being built (multilib_is_native_abi is true). Otherwise, output -Doption=disabled option.
meson_native_true <option name>
Output -Doption=true option if executables are being built (multilib_is_native_abi is true). Otherwise, output -Doption=false option.

AUTHORS

Author: Michał Górny <mgorny@gentoo.org>
Author: Matt Turner <mattst88@gentoo.org>

MAINTAINERS

Author: Matt Turner <mattst88@gentoo.org>

REPORTING BUGS

Please report bugs via https://bugs.gentoo.org/

FILES

meson-multilib.eclass

SEE ALSO

ebuild(5)
https://gitweb.gentoo.org/repo/gentoo.git/log/eclass/meson-multilib.eclass


Index

NAME
DESCRIPTION
SUPPORTED EAPIS
FUNCTIONS
AUTHORS
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:27:02 GMT, June 21, 2021