1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-12-01 13:24:25 +01:00

More changes for AMBuild 2.1 api.

This commit is contained in:
Nicholas Hastings 2016-07-24 14:12:52 -04:00
parent 1b91dc28ca
commit 4104721ce2

View File

@ -186,7 +186,7 @@ class MMSConfig(object):
else:
cxx.cxxflags += ['-Wno-deprecated']
elif cxx.name == 'msvc':
elif cxx.like('msvc'):
if builder.options.debug == '1':
cxx.cflags += ['/MTd']
cxx.linkflags += ['/NODEFAULTLIB:libcmt']
@ -248,7 +248,7 @@ class MMSConfig(object):
cxx.linkflags += ['-static-libgcc']
elif cxx.family == 'clang':
cxx.linkflags += ['-lgcc_eh']
elif builder.target_platform == 'mac':
elif builder.target.platform == 'mac':
cxx.defines += ['OSX', '_OSX', 'POSIX']
cxx.cflags += ['-mmacosx-version-min=10.5']
cxx.linkflags += [
@ -256,7 +256,7 @@ class MMSConfig(object):
'-arch', 'i386',
'-lstdc++',
]
elif builder.target_platform == 'windows':
elif builder.target.platform == 'windows':
cxx.defines += ['WIN32', '_WINDOWS']
# Finish up.
@ -376,7 +376,7 @@ class MMSConfig(object):
lib_folder = os.path.join(sdk.path, 'lib', 'public', 'linux32')
else:
lib_folder = os.path.join(sdk.path, 'lib', 'linux')
elif builder.target_platform == 'mac':
elif builder.target.platform == 'mac':
if sdk.name in ['sdk2013', 'bms']:
lib_folder = os.path.join(sdk.path, 'lib', 'public', 'osx32')
else: