added wxUSE_DC_CACHEING
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
54
configure
vendored
54
configure
vendored
@@ -1029,9 +1029,10 @@ Optional Features:
|
|||||||
--enable-validators use wxValidator and derived classes
|
--enable-validators use wxValidator and derived classes
|
||||||
--enable-busyinfo use wxBusyInfo
|
--enable-busyinfo use wxBusyInfo
|
||||||
--enable-joystick use wxJoystick
|
--enable-joystick use wxJoystick
|
||||||
--enable-metafiles use wxMetaFile (Windows only)
|
--enable-metafiles use wxMetaFile (Win32 only)
|
||||||
--enable-dragimage use wxDragImage
|
--enable-dragimage use wxDragImage
|
||||||
--enable-accessibility enable accessibility support
|
--enable-accessibility enable accessibility support
|
||||||
|
--enable-dccache cache temporary wxDC objects (Win32 only)
|
||||||
--enable-palette use wxPalette class
|
--enable-palette use wxPalette class
|
||||||
--enable-image use wxImage class
|
--enable-image use wxImage class
|
||||||
--enable-gif use gif images (GIF file format)
|
--enable-gif use gif images (GIF file format)
|
||||||
@@ -10044,6 +10045,50 @@ echo "${ECHO_T}no" >&6
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if test "$wxUSE_MSW" = "1"; then
|
||||||
|
|
||||||
|
enablestring=
|
||||||
|
echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
|
||||||
|
echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
|
||||||
|
no_cache=0
|
||||||
|
# Check whether --enable-dccache or --disable-dccache was given.
|
||||||
|
if test "${enable_dccache+set}" = set; then
|
||||||
|
enableval="$enable_dccache"
|
||||||
|
|
||||||
|
if test "$enableval" = yes; then
|
||||||
|
ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
|
||||||
|
else
|
||||||
|
ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
|
||||||
|
fi
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
|
||||||
|
if test "x$LINE" != x ; then
|
||||||
|
eval "DEFAULT_$LINE"
|
||||||
|
else
|
||||||
|
no_cache=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
|
||||||
|
|
||||||
|
fi;
|
||||||
|
|
||||||
|
eval "$ac_cv_use_dccache"
|
||||||
|
if test "$no_cache" != 1; then
|
||||||
|
echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$wxUSE_DC_CACHEING" = yes; then
|
||||||
|
echo "$as_me:$LINENO: result: yes" >&5
|
||||||
|
echo "${ECHO_T}yes" >&6
|
||||||
|
else
|
||||||
|
echo "$as_me:$LINENO: result: no" >&5
|
||||||
|
echo "${ECHO_T}no" >&6
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
enablestring=
|
enablestring=
|
||||||
@@ -40268,6 +40313,13 @@ _ACEOF
|
|||||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$wxUSE_DC_CACHEING" = "yes"; then
|
||||||
|
cat >>confdefs.h <<\_ACEOF
|
||||||
|
#define wxUSE_DC_CACHEING 1
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$wxUSE_DRAGIMAGE" = "yes"; then
|
if test "$wxUSE_DRAGIMAGE" = "yes"; then
|
||||||
cat >>confdefs.h <<\_ACEOF
|
cat >>confdefs.h <<\_ACEOF
|
||||||
#define wxUSE_DRAGIMAGE 1
|
#define wxUSE_DRAGIMAGE 1
|
||||||
|
10
configure.in
10
configure.in
@@ -1139,10 +1139,14 @@ WX_ARG_ENABLE(mousewheel, [ --enable-mousewheel use mousewheel], wxUSE_MOU
|
|||||||
WX_ARG_ENABLE(validators, [ --enable-validators use wxValidator and derived classes], wxUSE_VALIDATORS)
|
WX_ARG_ENABLE(validators, [ --enable-validators use wxValidator and derived classes], wxUSE_VALIDATORS)
|
||||||
WX_ARG_ENABLE(busyinfo, [ --enable-busyinfo use wxBusyInfo], wxUSE_BUSYINFO)
|
WX_ARG_ENABLE(busyinfo, [ --enable-busyinfo use wxBusyInfo], wxUSE_BUSYINFO)
|
||||||
WX_ARG_ENABLE(joystick, [ --enable-joystick use wxJoystick], wxUSE_JOYSTICK)
|
WX_ARG_ENABLE(joystick, [ --enable-joystick use wxJoystick], wxUSE_JOYSTICK)
|
||||||
WX_ARG_ENABLE(metafile, [ --enable-metafiles use wxMetaFile (Windows only)], wxUSE_METAFILE)
|
WX_ARG_ENABLE(metafile, [ --enable-metafiles use wxMetaFile (Win32 only)], wxUSE_METAFILE)
|
||||||
WX_ARG_ENABLE(dragimage, [ --enable-dragimage use wxDragImage], wxUSE_DRAGIMAGE)
|
WX_ARG_ENABLE(dragimage, [ --enable-dragimage use wxDragImage], wxUSE_DRAGIMAGE)
|
||||||
WX_ARG_ENABLE(accessibility,[ --enable-accessibility enable accessibility support], wxUSE_ACCESSIBILITY)
|
WX_ARG_ENABLE(accessibility,[ --enable-accessibility enable accessibility support], wxUSE_ACCESSIBILITY)
|
||||||
|
|
||||||
|
if test "$wxUSE_MSW" = "1"; then
|
||||||
|
WX_ARG_ENABLE(dccache, [ --enable-dccache cache temporary wxDC objects (Win32 only)], wxUSE_DC_CACHEING)
|
||||||
|
fi
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl support for image formats that do not rely on external library
|
dnl support for image formats that do not rely on external library
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
@@ -6098,6 +6102,10 @@ if test "$wxUSE_ACCESSIBILITY" = "yes"; then
|
|||||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$wxUSE_DC_CACHEING" = "yes"; then
|
||||||
|
AC_DEFINE(wxUSE_DC_CACHEING)
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$wxUSE_DRAGIMAGE" = "yes"; then
|
if test "$wxUSE_DRAGIMAGE" = "yes"; then
|
||||||
AC_DEFINE(wxUSE_DRAGIMAGE)
|
AC_DEFINE(wxUSE_DRAGIMAGE)
|
||||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
|
||||||
|
@@ -505,6 +505,8 @@
|
|||||||
|
|
||||||
#define wxUSE_UNICODE_MSLU 0
|
#define wxUSE_UNICODE_MSLU 0
|
||||||
|
|
||||||
|
#define wxUSE_DC_CACHEING 0
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Supports bool type
|
* Supports bool type
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user