win32: build: set subsystem version

This sets the minimum supported Windows version to Windows Vista. The
subsystem version also affects some Windows API functions, including
GetSystemMetrics(SM_CXPADDEDBORDER).
This commit is contained in:
James Ross-Gowan 2015-12-07 18:51:25 +11:00
parent 6205d87a7f
commit abbb43759a
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ def __add_clang_flags__(ctx):
def __add_mswin_flags__(ctx):
ctx.env.CFLAGS += ['-D_WIN32_WINNT=0x0601', '-DUNICODE', '-DCOBJMACROS',
'-U__STRICT_ANSI__']
ctx.env.LAST_LINKFLAGS += ['-Wl,--major-os-version=6,--minor-os-version=0',
'-Wl,--major-subsystem-version=6,--minor-subsystem-version=0']
def __add_mingw_flags__(ctx):
__add_mswin_flags__(ctx)