2013-11-23 19:10:27 -08:00
|
|
|
# vim: sts=2 ts=8 sw=2 tw=99 et ft=python:
|
|
|
|
|
2016-07-23 18:39:12 -07:00
|
|
|
lib = builder.cxx.StaticLibrary("version")
|
2015-04-11 10:22:15 -04:00
|
|
|
lib.compiler.defines.remove('MMS_USE_VERSIONLIB')
|
2013-11-23 19:10:27 -08:00
|
|
|
lib.compiler.sourcedeps += MMS.generated_headers
|
|
|
|
lib.sources += [
|
|
|
|
'versionlib.cpp'
|
|
|
|
]
|
2016-07-22 14:01:34 -04:00
|
|
|
|
|
|
|
# Temporary Source2 hack. Always build linux with -m64
|
2016-07-23 18:39:12 -07:00
|
|
|
if builder.target.platform == 'linux':
|
2016-07-22 14:01:34 -04:00
|
|
|
lib.compiler.cflags.remove('-m32')
|
|
|
|
lib.compiler.cflags += ['-m64', '-fPIC']
|
|
|
|
|
|
|
|
|
2013-11-23 19:10:27 -08:00
|
|
|
cmd = builder.Add(lib)
|
|
|
|
|
|
|
|
rvalue = cmd.binary
|
|
|
|
|