diff mbox series

[1/2] configure: Add cross prefix for widl tool

Message ID 20220428181525.300521-1-kkostiuk@redhat.com (mailing list archive)
State New, archived
Headers show
Series [1/2] configure: Add cross prefix for widl tool | expand

Commit Message

Konstantin Kostiuk April 28, 2022, 6:15 p.m. UTC
The mingw-w64-tool package in Fedora provides widl tool with a
cross prefix, so adds it automatically for cross builds.

WIDL env can be used to redefine the path to tool.
The same behavior as with windres.

Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
---
 configure | 3 +++
 1 file changed, 3 insertions(+)

Comments

Marc-André Lureau April 28, 2022, 7:17 p.m. UTC | #1
On Thu, Apr 28, 2022 at 10:17 PM Konstantin Kostiuk <kkostiuk@redhat.com>
wrote:

> The mingw-w64-tool package in Fedora provides widl tool with a
> cross prefix, so adds it automatically for cross builds.
>
> WIDL env can be used to redefine the path to tool.
> The same behavior as with windres.
>
> Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
>

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>


> ---
>  configure | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/configure b/configure
> index 59c43bea05..8b775492d0 100755
> --- a/configure
> +++ b/configure
> @@ -415,6 +415,7 @@ ranlib="${RANLIB-${cross_prefix}ranlib}"
>  nm="${NM-${cross_prefix}nm}"
>  smbd="$SMBD"
>  strip="${STRIP-${cross_prefix}strip}"
> +widl="${WIDL-${cross_prefix}widl}"
>  windres="${WINDRES-${cross_prefix}windres}"
>  pkg_config_exe="${PKG_CONFIG-${cross_prefix}pkg-config}"
>  query_pkg_config() {
> @@ -2786,6 +2787,7 @@ if test "$skip_meson" = no; then
>      echo "sdl2-config = [$(meson_quote $sdl2_config)]" >> $cross
>    fi
>    echo "strip = [$(meson_quote $strip)]" >> $cross
> +  echo "widl = [$(meson_quote $widl)]" >> $cross
>    echo "windres = [$(meson_quote $windres)]" >> $cross
>    if test "$cross_compile" = "yes"; then
>      cross_arg="--cross-file config-meson.cross"
> @@ -2907,6 +2909,7 @@ preserve_env PYTHON
>  preserve_env SDL2_CONFIG
>  preserve_env SMBD
>  preserve_env STRIP
> +preserve_env WIDL
>  preserve_env WINDRES
>
>  printf "exec" >>config.status
> --
> 2.25.1
>
>
>
diff mbox series

Patch

diff --git a/configure b/configure
index 59c43bea05..8b775492d0 100755
--- a/configure
+++ b/configure
@@ -415,6 +415,7 @@  ranlib="${RANLIB-${cross_prefix}ranlib}"
 nm="${NM-${cross_prefix}nm}"
 smbd="$SMBD"
 strip="${STRIP-${cross_prefix}strip}"
+widl="${WIDL-${cross_prefix}widl}"
 windres="${WINDRES-${cross_prefix}windres}"
 pkg_config_exe="${PKG_CONFIG-${cross_prefix}pkg-config}"
 query_pkg_config() {
@@ -2786,6 +2787,7 @@  if test "$skip_meson" = no; then
     echo "sdl2-config = [$(meson_quote $sdl2_config)]" >> $cross
   fi
   echo "strip = [$(meson_quote $strip)]" >> $cross
+  echo "widl = [$(meson_quote $widl)]" >> $cross
   echo "windres = [$(meson_quote $windres)]" >> $cross
   if test "$cross_compile" = "yes"; then
     cross_arg="--cross-file config-meson.cross"
@@ -2907,6 +2909,7 @@  preserve_env PYTHON
 preserve_env SDL2_CONFIG
 preserve_env SMBD
 preserve_env STRIP
+preserve_env WIDL
 preserve_env WINDRES
 
 printf "exec" >>config.status