[vlc-devel] [PATCH] contrib: detect the winstore target from the prefix triplet
Jean-Baptiste Kempf
jb at videolan.org
Tue Mar 5 13:41:42 CET 2019
LGTM.
On Tue, 5 Mar 2019, at 13:24, Steve Lhomme wrote:
> The MSVC toolchain already uses custom triplets depending on the
> Winstore flavor:
> - mingw32uwp (win10)
> - mingw32winrt (win8.1)
>
> We are considering doing the same with the LLVM toolchain
> ---
> contrib/bootstrap | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/contrib/bootstrap b/contrib/bootstrap
> index 96c59f71fa..266817bfcc 100755
> --- a/contrib/bootstrap
> +++ b/contrib/bootstrap
> @@ -49,6 +49,7 @@ GPL="1"
> GNUV3="1"
> AD_CLAUSES=
> WITH_OPTIMIZATION="1"
> +HAVE_WINSTORE=
>
> if test ! -f "../../contrib/src/main.mak"
> then
> @@ -71,6 +72,11 @@ do
> ;;
> --prefix=*)
> PREFIX="${1#--prefix=}"
> + case "${PREFIX}" in
> + *winphone*|*windowsphone*|*winrt*|*uwp*)
> + HAVE_WINSTORE="1"
> + ;;
> + esac
> ;;
> --disable-disc)
> BUILD_DISCS=
> @@ -355,7 +361,7 @@ case "${OS}" in
> esac
> case "${HOST}" in
> *winphone*|*windowsphone*|*winrt*|*uwp*)
> - add_make_enabled "HAVE_WINSTORE"
> + HAVE_WINSTORE="1"
> ;;
> esac
> case "${HOST}" in
> @@ -377,6 +383,8 @@ case "${OS}" in
> ;;
> esac
>
> +test -z "$HAVE_WINSTORE" || add_make_enabled "HAVE_WINSTORE"
> +
> #
> # Results output
> #
> --
> 2.17.1
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
--
Jean-Baptiste Kempf - President
+33 672 704 734
More information about the vlc-devel
mailing list