Skip to content

Commit

Permalink
Link mathlib on BMS now (for vec3_origin required by tier1 ConVar).
Browse files Browse the repository at this point in the history
  • Loading branch information
psychonic committed Jul 7, 2018
1 parent e2c0348 commit 20c72b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AMBuildScript
Expand Up @@ -326,6 +326,8 @@ class MMSConfig(object):

if sdk.name in ['blade', 'insurgency', 'doi', 'csgo', 'dota']:
compiler.postlink += [compiler.Dep(os.path.join(lib_folder, 'interfaces_i486.a'))]
if sdk.name == 'bms':
compiler.postlink += [compiler.Dep(os.path.join(lib_folder, 'mathlib.a'))]

binary = self.LibraryBuilder(compiler, name)

Expand All @@ -345,6 +347,8 @@ class MMSConfig(object):
libs = ['tier0', 'tier1', 'vstdlib']
if sdk.name in ['swarm', 'blade', 'insurgency', 'doi', 'csgo', 'dota']:
libs.append('interfaces')
if sdk.name == 'bms':
libs.append('mathlib')
for lib in libs:
lib_path = os.path.join(sdk.path, 'lib', 'public', lib) + '.lib'
binary.compiler.linkflags.append(binary.Dep(lib_path))
Expand Down

0 comments on commit 20c72b5

Please sign in to comment.