diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-12-06 20:06:59 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-06 20:06:59 -0300 |
commit | a7440cd81ae391993fbee85a6a260ca6dd41f09b (patch) | |
tree | 148ba929fea2eabdf50adb7eaa3e02484da6a1e0 /platform/windows/detect.py | |
parent | e6f3253f7d638cbae13a75778a57b46b04ba868c (diff) | |
parent | 6f3343f1ce2612cea233975c635a2f37b79fce2f (diff) | |
download | redot-engine-a7440cd81ae391993fbee85a6a260ca6dd41f09b.tar.gz |
Merge pull request #14347 from RandomShaper/adpod-mt
Implement multitouch on X11 and improve it on Windows
Diffstat (limited to 'platform/windows/detect.py')
-rw-r--r-- | platform/windows/detect.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py index fbb02c9d1b..890decf962 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -64,6 +64,10 @@ def get_opts(): return [ ('mingw_prefix_32', 'MinGW prefix (Win32)', mingw32), ('mingw_prefix_64', 'MinGW prefix (Win64)', mingw64), + # Targeted Windows version: 7 (and later), minimum supported version + # XP support dropped after EOL due to missing API for IPv6 and other issues + # Vista support dropped after EOL due to GH-10243 + ('target_win_version', 'Targeted Windows version, >= 0x0601 (Windows 7)', '0x0601'), EnumVariable('debug_symbols', 'Add debug symbols to release version', 'yes', ('yes', 'no', 'full')), ] @@ -97,11 +101,6 @@ def configure(env): env.Append(CPPPATH=['#platform/windows']) - # Targeted Windows version: 7 (and later), minimum supported version - # XP support dropped after EOL due to missing API for IPv6 and other issues - # Vista support dropped after EOL due to GH-10243 - winver = "0x0601" - if (os.name == "nt" and os.getenv("VCINSTALLDIR")): # MSVC env['ENV']['TMP'] = os.environ['TMP'] @@ -175,7 +174,7 @@ def configure(env): env.Append(CCFLAGS=['/DWASAPI_ENABLED']) env.Append(CCFLAGS=['/DTYPED_METHOD_BIND']) env.Append(CCFLAGS=['/DWIN32']) - env.Append(CCFLAGS=['/DWINVER=%s' % winver, '/D_WIN32_WINNT=%s' % winver]) + env.Append(CCFLAGS=['/DWINVER=%s' % env['target_win_version'], '/D_WIN32_WINNT=%s' % env['target_win_version']]) if env["bits"] == "64": env.Append(CCFLAGS=['/D_WIN64']) |