1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-28 10:24:20 +01:00
HLMetaModOfficial/versionlib/AMBuildScript
2020-08-19 14:41:55 -07:00

16 lines
374 B
Python

# vim: sts=2 ts=8 sw=2 tw=99 et ft=python:
rvalue = {}
for cxx in MMS.all_targets:
libname = 'version'
lib = MMS.StaticLibrary(cxx, libname)
lib.compiler.defines.remove('MMS_USE_VERSIONLIB')
lib.compiler.sourcedeps += MMS.generated_headers
lib.sources += [
'versionlib.cpp'
]
cmd = builder.Add(lib)
rvalue[cxx.target.arch] = cmd.binary