summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rwxr-xr-xmeta/recipes-devtools/meson/meson/meson-wrapper17
1 files changed, 8 insertions, 9 deletions
diff --git a/meta/recipes-devtools/meson/meson/meson-wrapper b/meta/recipes-devtools/meson/meson/meson-wrapper
index fca64a5692..7455985297 100755
--- a/meta/recipes-devtools/meson/meson/meson-wrapper
+++ b/meta/recipes-devtools/meson/meson/meson-wrapper
@@ -13,20 +13,19 @@ fi
13# config is already in meson.cross. 13# config is already in meson.cross.
14unset CC CXX CPP LD AR NM STRIP 14unset CC CXX CPP LD AR NM STRIP
15 15
16for arg in "$@"; do 16case "$1" in
17 case "$arg" in 17setup|configure|dist|install|introspect|init|test|wrap|subprojects|rewrite|compile|devenv|env2mfile|help) MESON_CMD="$1" ;;
18 -*) continue ;; 18*) echo meson-wrapper: Implicit setup command assumed; MESON_CMD=setup ;;
19 *) SUBCMD="$arg"; break ;; 19esac
20 esac
21done
22 20
23if [ "$SUBCMD" = "setup" ] || [ -d "$SUBCMD" ]; then 21if [ "$MESON_CMD" = "setup" ]; then
24 MESON_SUB_OPTS=" \ 22 MESON_SETUP_OPTS=" \
25 --cross-file="$OECORE_NATIVE_SYSROOT/usr/share/meson/${TARGET_PREFIX}meson.cross" \ 23 --cross-file="$OECORE_NATIVE_SYSROOT/usr/share/meson/${TARGET_PREFIX}meson.cross" \
26 --native-file="$OECORE_NATIVE_SYSROOT/usr/share/meson/meson.native" \ 24 --native-file="$OECORE_NATIVE_SYSROOT/usr/share/meson/meson.native" \
27 " 25 "
26 echo meson-wrapper: Running meson with setup options: \"$MESON_SETUP_OPTS\"
28fi 27fi
29 28
30exec "$OECORE_NATIVE_SYSROOT/usr/bin/meson.real" \ 29exec "$OECORE_NATIVE_SYSROOT/usr/bin/meson.real" \
31 "$@" \ 30 "$@" \
32 $MESON_SUB_OPTS 31 $MESON_SETUP_OPTS