2013-12-30 23:51:00 +01:00
|
|
|
# vim: sts=2 ts=8 sw=2 tw=99 et ft=python:
|
|
|
|
import os
|
|
|
|
|
2017-12-20 08:56:23 +01:00
|
|
|
rvalue = {}
|
|
|
|
for arch in SM.archs:
|
|
|
|
lib = SM.StaticLibrary(builder, 'version', arch)
|
|
|
|
lib.compiler.includes += [
|
|
|
|
os.path.join(builder.sourcePath, 'public')
|
|
|
|
]
|
|
|
|
lib.compiler.defines.remove('SM_USE_VERSIONLIB')
|
|
|
|
lib.compiler.sourcedeps += SM.generated_headers
|
|
|
|
lib.sources += [
|
|
|
|
'versionlib.cpp'
|
|
|
|
]
|
|
|
|
task = builder.Add(lib)
|
2013-12-30 23:51:00 +01:00
|
|
|
|
2017-12-20 08:56:23 +01:00
|
|
|
rvalue[arch] = task.binary
|