meson-multilib.eclass
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'.
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.
Maintainers
Matt Turner <mattst88@gentoo.org>
Reporting Bugs
Please report bugs via https://bugs.gentoo.org/