Disable wxMediaCtrl and wxWebView when OLE is disabled in wxMSW

Avoid errors in wx/msw/chkconf.h during compilation by proactively
turning these options off in configure if wxUSE_OLE==0.
This commit is contained in:
Vadim Zeitlin
2019-11-15 17:09:43 +01:00
parent 37d8b6018c
commit db846f15ab
2 changed files with 25 additions and 1 deletions

14
configure vendored
View File

@@ -35450,9 +35450,21 @@ if test "$USE_WIN32" = 1 ; then
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
else
wxUSE_CLIPBOARD=no
wxUSE_CLIPBOARD=no
wxUSE_DRAG_AND_DROP=no
wxUSE_DATAOBJ=no
if test "$wxUSE_MEDIACTRL" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxMediaCtrl requires wxUSE_OLE... disabled" >&5
$as_echo "$as_me: WARNING: wxMediaCtrl requires wxUSE_OLE... disabled" >&2;}
wxUSE_MEDIACTRL=no
fi
if test "$wxUSE_WEBVIEW" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxWebView requires wxUSE_OLE... disabled" >&5
$as_echo "$as_me: WARNING: wxWebView requires wxUSE_OLE... disabled" >&2;}
wxUSE_WEBVIEW=no
fi
fi
fi

View File

@@ -6526,9 +6526,21 @@ if test "$USE_WIN32" = 1 ; then
AC_DEFINE(wxUSE_ACTIVEX)
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
else
dnl Turn off features depending on OLE directly...
wxUSE_CLIPBOARD=no
wxUSE_DRAG_AND_DROP=no
wxUSE_DATAOBJ=no
dnl ... or indirectly (via wxUSE_ACTIVEX)
if test "$wxUSE_MEDIACTRL" = "yes"; then
AC_MSG_WARN(wxMediaCtrl requires wxUSE_OLE... disabled)
wxUSE_MEDIACTRL=no
fi
if test "$wxUSE_WEBVIEW" = "yes"; then
AC_MSG_WARN(wxWebView requires wxUSE_OLE... disabled)
wxUSE_WEBVIEW=no
fi
fi
fi