Unverified Commit b6ed9fc3 by Joachim Metz Committed by GitHub

Changed setup.py to build hash support on Windows (#167)

parent 28996406
......@@ -240,6 +240,9 @@ class BuildExtCommand(build_ext):
module.define_macros.append(('HASH_MODULE', '1'))
module.define_macros.append(('HAVE_LIBCRYPTO', '1'))
module.libraries.append('crypto')
elif building_for_windows:
module.define_macros.append(('HASH_MODULE', '1'))
module.define_macros.append(('HAVE_WINCRYPT_H', '1'))
else:
exclusions.append('yara/libyara/modules/hash/hash.c')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment