summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororbea <orbea@riseup.net>2021-04-09 11:42:40 -0700
committerMike Gilbert <floppym@gentoo.org>2022-05-10 22:13:53 -0400
commitce04c0d73800992a2cea29537516573e5bfd20cc (patch)
tree80b5219b494b973ad5adc65167e6e91d399c1eaa /eclass/meson.eclass
parentninja-utils.eclass: Support dev-util/samurai (diff)
downloadgentoo-ce04c0d73800992a2cea29537516573e5bfd20cc.tar.gz
gentoo-ce04c0d73800992a2cea29537516573e5bfd20cc.tar.bz2
gentoo-ce04c0d73800992a2cea29537516573e5bfd20cc.zip
meson.eclass: Support dev-util/samurai
samurai is a ninja-compatible build tool written in C which works with cmake, meson and other users of ninja. It is feature-complete and supports most of the same options as ninja. Signed-off-by: orbea <orbea@riseup.net> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass/meson.eclass')
-rw-r--r--eclass/meson.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index f2f7173f5a9a..905c4d89f501 100644
--- a/eclass/meson.eclass
+++ b/eclass/meson.eclass
@@ -48,7 +48,7 @@ inherit multiprocessing ninja-utils python-utils-r1 toolchain-funcs
EXPORT_FUNCTIONS src_configure src_compile src_test src_install
_MESON_DEPEND=">=dev-util/meson-0.59.4
- >=dev-util/ninja-1.8.2
+ ${NINJA_DEPEND}
dev-util/meson-format-array
"
@@ -285,6 +285,8 @@ meson_feature() {
meson_src_configure() {
debug-print-function ${FUNCNAME} "$@"
+ [[ -n "${NINJA_DEPEND}" ]] || ewarn "Unknown value '${NINJA}' for \${NINJA}"
+
local BUILD_CFLAGS=${BUILD_CFLAGS}
local BUILD_CPPFLAGS=${BUILD_CPPFLAGS}
local BUILD_CXXFLAGS=${BUILD_CXXFLAGS}