Add support to compile using VS 2015 & 2017

This commit is contained in:
Peace-Maker 2017-07-11 14:00:53 +02:00
parent ced005af38
commit d222493040
2 changed files with 6 additions and 0 deletions

View File

@ -337,6 +337,8 @@ class ExtensionConfig(object):
if compiler.like('msvc'):
compiler.defines += ['COMPILER_MSVC', 'COMPILER_MSVC32']
if compiler.version >= 1900:
compiler.linkflags += ['legacy_stdio_definitions.lib']
else:
compiler.defines += ['COMPILER_GCC']

View File

@ -55,6 +55,10 @@ for sdk_name in ['css', 'tf2', 'dods', 'hl2dm', 'csgo', 'l4d', 'l4d2']:
vs_year = ''
if msvc_ver == 1800:
vs_year = '2013'
elif msvc_ver == 1900:
vs_year = '2015'
elif msvc_ver == 1910:
vs_year = '2017'
else:
raise Exception('Cannot find libprotobuf for MSVC version "' + str(compiler.version) + '"')