1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-28 10:24:20 +01:00

CS2: Add network_connections proto with new ambuild for updated sdk

This commit is contained in:
Nick Hastings 2023-11-13 19:54:01 -05:00 committed by Nicholas Hastings
parent 30f0aa65b4
commit 90521711f4

View File

@ -1,7 +1,10 @@
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
import os
for sdk, cxx in MMS.sdk_targets:
for sdk_target in MMS.sdk_targets:
sdk = sdk_target.sdk
cxx = sdk_target.cxx
name = 'metamod.' + sdk['extension']
binary = MMS.HL2Library(builder, cxx, name, sdk)
@ -31,6 +34,11 @@ for sdk, cxx in MMS.sdk_targets:
'vsp_bridge.cpp'
]
if sdk['name'] == 'cs2':
binary.custom = [builder.tools.Protoc(protoc = sdk_target.protoc, sources = [
os.path.join(sdk['path'], 'common', 'network_connection.proto'),
])]
if cxx.target.arch == 'x86':
binary.sources += ['sourcehook/sourcehook_hookmangen.cpp']
nodes = builder.Add(binary)