[vlc-devel] [vlc-commits] [Git][videolan/npapi-vlc][master] don't build stdole2.tlb if it already exists

Konstantin Pavlov thresh at videolan.org
Wed Apr 1 18:48:15 CEST 2020


Hi,

This commit broke nightlies on win32/win64 with gcc, as seen by jenkins
and gitlab: https://code.videolan.org/thresh/vlc/-/jobs/374823

On Tue, Mar 31, 2020 at 10:52:48AM +0200, Jean-Baptiste Kempf wrote:
> Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC Browser Plugins
> 
> 
> Commits:
> 4c7155f3 by Steve Lhomme at 2020-03-31T10:02:43+02:00
> don't build stdole2.tlb if it already exists
> 
> - - - - -
> 
> 
> 2 changed files:
> 
> - activex/Makefile.am
> - configure.ac
> 
> 
> Changes:
> 
> =====================================
> activex/Makefile.am
> =====================================
> @@ -102,7 +102,11 @@ WINE_SDK_PATH ?= /usr/include/wine/windows
>  stdole2.tlb stdole2_idl.c stdole2_idl.h: $(WINE_SDK_PATH)/stdole2.idl
>  	$(WIDL) $(WIDLFLAGS) -I$(WINE_SDK_PATH) -t -u -h -T stdole2.tlb -U stdole2_idl.c -H stdole2_idl.h $<
>  
> -axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl stdole2.tlb
> +if !HAS_STDOLE2_TLB
> +axvlc.tlb: stdole2.tlb
> +endif
> +
> +axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
>  	$(WIDL) $(WIDLFLAGS) -I$(WINE_SDK_PATH) -I. -t -u -h -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h $<
>  
>  clean-tlb:
> 
> 
> =====================================
> configure.ac
> =====================================
> @@ -133,15 +133,33 @@ AS_IF([test "${SYS}" = "mingw32"],[
>      AC_CHECK_HEADER(ole2.h,,[AC_MSG_ERROR([required OLE header ole2.h is missing from your system])])
>      AC_CHECK_HEADER(olectl.h,,[AC_MSG_ERROR([required OLE header olectl.h is missing from your system])])
>      AC_CHECK_HEADERS(objsafe.h,,,[#include <ole2.h>])
> +    AS_IF([test "${WIDL}" != "no"],[
> +      ac_ext=idl
> +      ac_objext=tlb
> +      ac_compile='$WIDL -t conftest.$ac_ext -o conftest.$ac_objext'
> +      cat <<_ACEOF >conftest.idl
> +import "ocidl.idl";
> +[[
> +  uuid(DF2BBE39-40A8-433b-A279-073F48DA94B6),
> +]]
> +library AXVLC
> +{
> +  importlib("stdole2.tlb");
> +}
> +_ACEOF
> +AS_IF([ac_fn_cxx_try_compile "$LINENO"],[has_stdole2_tlb=yes],[has_stdole2_tlb=no])
> +    ],[has_stdole2_tlb=no])
>      AC_LANG_POP(C++)
>  ],[
>      MIDL="no"
>      WIDL="no"
> +    has_stdole2_tlb="no"
>  ])
>  
>  AC_SUBST(WIDLFLAGS)
>  AM_CONDITIONAL(HAS_MIDL_COMPILER, test "${MIDL}" != "no")
>  AM_CONDITIONAL(HAS_WIDL_COMPILER, test "${WIDL}" != "no")
> +AM_CONDITIONAL(HAS_STDOLE2_TLB, test "${has_stdole2_tlb}" = "yes")
>  
>  dnl
>  dnl Buggy glibc prevention. Purposedly not cached.


-- 
VideoLAN, Vice President
www.videolan.org
+7 926 165 45 31
@cryothresh


More information about the vlc-devel mailing list