mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-07 02:18:30 +00:00
Adds unified place to edit plugin metadata, plugin versioning with git support and multi-sdk support
20 lines
513 B
Python
20 lines
513 B
Python
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
|
import os
|
|
|
|
for sdk_target in MMSPlugin.sdk_targets:
|
|
sdk = sdk_target.sdk
|
|
cxx = sdk_target.cxx
|
|
|
|
binary = MMSPlugin.HL2Library(builder, cxx, f'{MMSPlugin.metadata["name"]}.{sdk["name"]}', sdk)
|
|
|
|
binary.sources += [
|
|
'src/plugin.cpp',
|
|
]
|
|
|
|
binary.custom = [builder.tools.Protoc(protoc = sdk_target.protoc, sources = [
|
|
os.path.join(sdk['path'], 'common', 'network_connection.proto'),
|
|
])]
|
|
|
|
nodes = builder.Add(binary)
|
|
MMSPlugin.binaries += [nodes]
|