mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-30 19:52:17 +01:00
Update s2 sample protoc usage for sdkhelpers update.
(TODO: update submodule after merge)
This commit is contained in:
parent
c0dd94fb76
commit
6c62ea0360
@ -9,29 +9,20 @@ import os
|
|||||||
for sdk_target in MMSPlugin.sdk_targets:
|
for sdk_target in MMSPlugin.sdk_targets:
|
||||||
sdk = sdk_target.sdk
|
sdk = sdk_target.sdk
|
||||||
cxx = sdk_target.cxx
|
cxx = sdk_target.cxx
|
||||||
protoc = sdk_target.protoc
|
|
||||||
|
|
||||||
binary = MMSPlugin.HL2Library(builder, cxx, MMSPlugin.plugin_name, sdk)
|
binary = MMSPlugin.HL2Library(builder, cxx, MMSPlugin.plugin_name, sdk)
|
||||||
|
|
||||||
binary.sources += [
|
binary.sources += [
|
||||||
'sample_mm.cpp'
|
'sample_mm.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
binary.sources += [
|
binary.sources += [
|
||||||
os.path.join(sdk['path'], 'tier1', 'convar.cpp'),
|
os.path.join(sdk['path'], 'tier1', 'convar.cpp'),
|
||||||
os.path.join(sdk['path'], 'public', 'tier0', 'memoverride.cpp')
|
os.path.join(sdk['path'], 'public', 'tier0', 'memoverride.cpp')
|
||||||
]
|
]
|
||||||
|
binary.custom = [builder.tools.Protoc(protoc = sdk_target.protoc, sources = [
|
||||||
proto_files = [
|
|
||||||
os.path.join(sdk['path'], 'common', 'network_connection.proto'),
|
os.path.join(sdk['path'], 'common', 'network_connection.proto'),
|
||||||
]
|
])]
|
||||||
|
|
||||||
protoc.includes = [
|
|
||||||
os.path.join(sdk['path'], 'thirdparty', 'protobuf-3.21.8', 'src'),
|
|
||||||
os.path.join(sdk['path'], 'common'),
|
|
||||||
]
|
|
||||||
|
|
||||||
binary.custom = [builder.tools.Protoc(sources = proto_files, protoc = protoc)]
|
|
||||||
|
|
||||||
nodes = builder.Add(binary)
|
nodes = builder.Add(binary)
|
||||||
MMSPlugin.binaries += [nodes]
|
MMSPlugin.binaries += [nodes]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user