mirror of
https://github.com/Source2ZE/MovementUnlocker.git
synced 2026-09-27 20:57:04 +02:00
Switch to AMBuild & WIP port to Counter-Strike 2
This commit is contained in:
parent
b03db8ad19
commit
100636cd10
13 changed files with 671 additions and 1520 deletions
33
AMBuilder
Normal file
33
AMBuilder
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os
|
||||
|
||||
# Here only one sdk should be available to generate only one executable in the end,
|
||||
# as multi-sdk loading isn't supported out of the box by metamod, and would require specifying the full path in the vdf
|
||||
# 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]
|
||||
|
||||
if not cxx.target.arch in sdk.platformSpec[cxx.target.platform]:
|
||||
continue
|
||||
|
||||
binary = MMSPlugin.HL2Library(builder, cxx, MMSPlugin.plugin_name, sdk)
|
||||
|
||||
binary.sources += [
|
||||
'MovementUnlocker.cpp',
|
||||
]
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue