Compile Hashing lib as static and link to AMXX

This commit is contained in:
Arkshine
2015-03-10 12:15:46 +01:00
parent c03bb3693e
commit aaafe0f3f2
3 changed files with 30 additions and 10 deletions

20
third_party/hashing/AMBuilder vendored Normal file
View File

@ -0,0 +1,20 @@
# vim: sts=2 ts=8 sw=2 tw=99 et ft=python:
import os, platform
lib = builder.compiler.StaticLibrary('hashinglib')
lib.compiler.includes += [
os.path.join(builder.sourcePath, 'third_party', 'hashing'),
]
lib.sources += [
'hashing.cpp',
'hashers/crc32.cpp',
'hashers/keccak.cpp',
'hashers/md5.cpp',
'hashers/sha1.cpp',
'hashers/sha3.cpp',
'hashers/sha256.cpp',
]
rvalue = builder.Add(lib)