diff options
-rwxr-xr-x | meta/recipes-devtools/meson/meson/meson-wrapper | 17 |
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. |
14 | unset CC CXX CPP LD AR NM STRIP | 14 | unset CC CXX CPP LD AR NM STRIP |
15 | 15 | ||
16 | for arg in "$@"; do | 16 | case "$1" in |
17 | case "$arg" in | 17 | setup|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 ;; | 19 | esac |
20 | esac | ||
21 | done | ||
22 | 20 | ||
23 | if [ "$SUBCMD" = "setup" ] || [ -d "$SUBCMD" ]; then | 21 | if [ "$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\" | ||
28 | fi | 27 | fi |
29 | 28 | ||
30 | exec "$OECORE_NATIVE_SYSROOT/usr/bin/meson.real" \ | 29 | exec "$OECORE_NATIVE_SYSROOT/usr/bin/meson.real" \ |
31 | "$@" \ | 30 | "$@" \ |
32 | $MESON_SUB_OPTS | 31 | $MESON_SETUP_OPTS |