mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-26 19:54:14 +01:00
CS2: Add network_connections proto with new ambuild for updated sdk
This commit is contained in:
parent
30f0aa65b4
commit
90521711f4
@ -1,7 +1,10 @@
|
|||||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||||
import os
|
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']
|
name = 'metamod.' + sdk['extension']
|
||||||
binary = MMS.HL2Library(builder, cxx, name, sdk)
|
binary = MMS.HL2Library(builder, cxx, name, sdk)
|
||||||
|
|
||||||
@ -31,6 +34,11 @@ for sdk, cxx in MMS.sdk_targets:
|
|||||||
'vsp_bridge.cpp'
|
'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':
|
if cxx.target.arch == 'x86':
|
||||||
binary.sources += ['sourcehook/sourcehook_hookmangen.cpp']
|
binary.sources += ['sourcehook/sourcehook_hookmangen.cpp']
|
||||||
nodes = builder.Add(binary)
|
nodes = builder.Add(binary)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user