Add DPI Awareness option to configure and bakefile
Add option --with-dpi=[none,system,per-monitor] to configure the dpi awareness on Windows. Support DPI Awareness in makefile.gcc and makefile.bcc. The default DPI awareness is set to per-monitor.
This commit is contained in:
19
configure
vendored
19
configure
vendored
@@ -883,6 +883,7 @@ INSTALL_DATA
|
||||
INSTALL_SCRIPT
|
||||
INSTALL_PROGRAM
|
||||
RANLIB
|
||||
USE_DPI_AWARE_MANIFEST
|
||||
HOST_SUFFIX
|
||||
HEADER_PAD_OPTION
|
||||
SAMPLES_CXXFLAGS
|
||||
@@ -1058,6 +1059,7 @@ enable_official_build
|
||||
enable_vendor
|
||||
enable_all_features
|
||||
enable_sys_libs
|
||||
with_dpi
|
||||
enable_universal
|
||||
with_themes
|
||||
with_gtk
|
||||
@@ -2312,6 +2314,7 @@ Optional Packages:
|
||||
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
||||
--without-subdirs don't generate makefiles for samples/demos/...
|
||||
--with-flavour=NAME specify a name to identify this build
|
||||
--with-dpi=none|system|per-monitor use dpi-awareness (Win32 only)
|
||||
--with-themes=all|list use only the specified comma-separated list of wxUniversal themes
|
||||
--with-gtk[=VERSION] use GTK+, VERSION can be 4 (EXPERIMENTAL), 3, 2 (default), 1 or "any"
|
||||
--with-motif use Motif/Lesstif
|
||||
@@ -4306,6 +4309,13 @@ if test "$wxUSE_ALL_FEATURES" = "no"; then
|
||||
fi
|
||||
|
||||
|
||||
# Check whether --with-dpi was given.
|
||||
if test "${with_dpi+set}" = set; then :
|
||||
withval=$with_dpi; wxWITH_DPI_MANIFEST="$withval"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if test "$wxUSE_GUI" = "yes"; then
|
||||
|
||||
|
||||
@@ -18402,6 +18412,14 @@ $as_echo "#define HAVE_CXX17 1" >>confdefs.h
|
||||
fi
|
||||
fi
|
||||
|
||||
USE_DPI_AWARE_MANIFEST=0
|
||||
if test "$wxWITH_DPI_MANIFEST" = "system" ; then
|
||||
USE_DPI_AWARE_MANIFEST=1
|
||||
fi
|
||||
if test "$wxWITH_DPI_MANIFEST" = "per-monitor" ; then
|
||||
USE_DPI_AWARE_MANIFEST=2
|
||||
fi
|
||||
|
||||
if test "x$SUNCXX" != xyes; then
|
||||
if test -n "$ac_tool_prefix"; then
|
||||
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
||||
@@ -37820,6 +37838,7 @@ TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
|
||||
|
||||
|
||||
|
||||
|
||||
case "$TOOLKIT" in
|
||||
GTK)
|
||||
TOOLKIT_DESC="GTK+"
|
||||
|
Reference in New Issue
Block a user