Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Link mathlib on BMS now (for vec3_origin required by tier1 ConVar).
- Loading branch information
Showing
with
4 additions
and
0 deletions.
-
+4
−0
AMBuildScript
|
@@ -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) |
|
|
|
|
@@ -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)) |
|
|