mirror of
https://github.com/Source2ZE/MovementUnlocker.git
synced 2026-09-27 20:57:04 +02:00
Build script updates, move to manifest-based build
This commit is contained in:
parent
ec6913115e
commit
a152f5b1e0
6 changed files with 122 additions and 347 deletions
33
AMBuilder
generated
33
AMBuilder
generated
|
|
@ -6,28 +6,19 @@ import os
|
|||
# which in the end would ruin the multi-platform (unix, win etc) loading by metamod as it won't be able to append platform specific extension
|
||||
# so just fall back to the single binary.
|
||||
# Multi-sdk solutions should be manually loaded with a custom plugin loader (examples being sourcemod, stripper:source)
|
||||
for sdk_name in MMSPlugin.sdks:
|
||||
for cxx in MMSPlugin.all_targets:
|
||||
sdk = MMSPlugin.sdks[sdk_name]
|
||||
for sdk_target in MMSPlugin.sdk_targets:
|
||||
sdk = sdk_target.sdk
|
||||
cxx = sdk_target.cxx
|
||||
|
||||
if not cxx.target.arch in sdk.platformSpec[cxx.target.platform]:
|
||||
continue
|
||||
binary = MMSPlugin.HL2Library(builder, cxx, MMSPlugin.plugin_name, sdk)
|
||||
|
||||
binary = MMSPlugin.HL2Library(builder, cxx, MMSPlugin.plugin_name, sdk)
|
||||
binary.sources += [
|
||||
'MovementUnlocker.cpp',
|
||||
]
|
||||
|
||||
binary.sources += [
|
||||
'MovementUnlocker.cpp',
|
||||
]
|
||||
binary.custom = [builder.tools.Protoc(protoc = sdk_target.protoc, sources = [
|
||||
os.path.join(sdk['path'], 'common', 'network_connection.proto'),
|
||||
])]
|
||||
|
||||
if sdk_name in ['dota', 'cs2']:
|
||||
binary.sources += [
|
||||
os.path.join(sdk.path, 'tier1', 'convar.cpp'),
|
||||
os.path.join(sdk.path, 'public', 'tier0', 'memoverride.cpp'),
|
||||
]
|
||||
|
||||
if cxx.target.arch == 'x86':
|
||||
binary.sources += ['sourcehook/sourcehook_hookmangen.cpp']
|
||||
nodes = builder.Add(binary)
|
||||
MMSPlugin.binaries += [nodes]
|
||||
|
||||
break
|
||||
nodes = builder.Add(binary)
|
||||
MMSPlugin.binaries += [nodes]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue