mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Turn off using wx-dpi-aware.manifest for Python 2.7 builds
This commit is contained in:
3
build.py
3
build.py
@@ -1394,6 +1394,9 @@ def cmd_build_wx(options, args):
|
||||
if options.jom:
|
||||
build_options.append('--jom')
|
||||
|
||||
if version2 == '2.7':
|
||||
build_options.append('--no_dpi_aware')
|
||||
|
||||
else:
|
||||
# Platform is something other than MSW
|
||||
if options.osx_carbon:
|
||||
|
||||
@@ -226,6 +226,7 @@ def main(wxDir, args):
|
||||
"features" : ("", "A comma-separated list of wxUSE_XYZ defines on Win, or a list of configure flags on unix."),
|
||||
"verbose" : (False, "Print commands as they are run, (to aid with debugging this script)"),
|
||||
"jom" : (False, "Use jom.exe instead of nmake for MSW builds."),
|
||||
"no_dpi_aware" : (False, "Don't use the DPI_AWARE_MANIFEST."),
|
||||
}
|
||||
|
||||
parser = optparse.OptionParser(usage="usage: %prog [options]", version="%prog 1.0")
|
||||
@@ -468,6 +469,10 @@ def main(wxDir, args):
|
||||
if options.jom:
|
||||
nmakeCommand = 'jom.exe'
|
||||
|
||||
if options.no_dpi_aware:
|
||||
args.append("USE_DPI_AWARE_MANIFEST=0")
|
||||
|
||||
|
||||
wxBuilder = builder.MSVCBuilder(commandName=nmakeCommand)
|
||||
|
||||
if toolkit == "msvcProject":
|
||||
|
||||
Reference in New Issue
Block a user