1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-29 11:24:19 +01:00
HLMetaModOfficial/versionlib/AMBuildScript
Nicholas Hastings a88de796a3 Build Dota core and loader + versionlib as 64-bit.
TODO: we need both x86 and x64 of versionlib and loader.
2016-07-22 14:01:34 -04:00

20 lines
470 B
Python

# vim: sts=2 ts=8 sw=2 tw=99 et ft=python:
lib = builder.compiler.StaticLibrary("version")
lib.compiler.defines.remove('MMS_USE_VERSIONLIB')
lib.compiler.sourcedeps += MMS.generated_headers
lib.sources += [
'versionlib.cpp'
]
# Temporary Source2 hack. Always build linux with -m64
if builder.target_platform == 'linux':
lib.compiler.cflags.remove('-m32')
lib.compiler.cflags += ['-m64', '-fPIC']
cmd = builder.Add(lib)
rvalue = cmd.binary