Thanks, applied as 5b40e4845c52cb1449d60a491c4d6965ab270f57.

Michael

[sent from post-receive hook]

On Fri, 12 Jul 2024 10:05:33 +0200, Philipp Zabel <[email protected]> 
wrote:
> This works with the LLVM style CMake build systems.
> 
> Signed-off-by: Philipp Zabel <[email protected]>
> Message-Id: <[email protected]>
> Signed-off-by: Michael Olbrich <[email protected]>
> 
> diff --git a/scripts/configure_helper.py b/scripts/configure_helper.py
> index 5efedf28a4da..3e9e1810db0b 100755
> --- a/scripts/configure_helper.py
> +++ b/scripts/configure_helper.py
> @@ -332,6 +332,7 @@ def handle_dir(d, subdir):
>       if not d:
>               return (None, None, None)
>  
> +     builddir = d + "-build"
>       if subdir:
>               d = os.path.join(d, subdir)
>  
> @@ -345,9 +346,9 @@ def handle_dir(d, subdir):
>       if os.path.exists(configure) and tool in ("autoconf", ""):
>               return handle_dir_configure(d, configure)
>       elif os.path.exists(meson_build) and tool in ("meson", ""):
> -             return handle_dir_meson(d)
> +             return handle_dir_meson(d, builddir)
>       elif os.path.exists(cmakelists) and tool in ("cmake", ""):
> -             return handle_dir_cmake(d)
> +             return handle_dir_cmake(d, builddir)
>       else:
>               abort("not a autoconf/meson/cmake package: configure script / 
> meson.build / CMakeLists.txt file not found in '%s'" % d)
>               exit(1)
> @@ -375,8 +376,7 @@ def handle_dir_configure(d, configure):
>       label = os.path.basename(d)
>       return (parsed, args, label)
>  
> -def handle_dir_meson(d):
> -     meson_builddir = d + "-build"
> +def handle_dir_meson(d, meson_builddir):
>       if not os.path.exists(meson_builddir):
>               abort("package must be configured")
>               exit(1)
> @@ -405,8 +405,7 @@ def handle_dir_meson(d):
>       label = os.path.basename(d)
>       return (options, args, label)
>  
> -def handle_dir_cmake(d):
> -     cmake_builddir = d + "-build"
> +def handle_dir_cmake(d, cmake_builddir):
>       if not os.path.exists(cmake_builddir):
>               abort("package must be configured")
>               exit(1)

Reply via email to