# 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
