mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-26 23:45:00 +00:00
54176f1bbc
* meson: allow to build with openssl * use MD4 from openssl * meson: use MD5 from openssl too * meson: use SHA* functions from ssl library * libr/hash: fix makefile when using openssl
48 lines
868 B
Meson
48 lines
868 B
Meson
files = [
|
|
'adler32.c',
|
|
'calc.c',
|
|
'crca.c',
|
|
'entropy.c',
|
|
'hamdist.c',
|
|
'hash.c',
|
|
'luhn.c',
|
|
'state.c'
|
|
]
|
|
|
|
dependencies = [mth, r_util_dep]
|
|
|
|
if use_sys_xxhash
|
|
dependencies += [sys_xxhash]
|
|
else
|
|
files += ['xxhash.c']
|
|
endif
|
|
|
|
if use_sys_openssl
|
|
dependencies += [sys_openssl]
|
|
else
|
|
files += ['md4.c', 'md5.c', 'sha1.c', 'sha2.c']
|
|
endif
|
|
|
|
r_hash = library('r_hash', files,
|
|
include_directories: [platform_inc],
|
|
dependencies: dependencies,
|
|
install: true,
|
|
implicit_include_directories: false,
|
|
soversion: r2_libversion
|
|
)
|
|
|
|
r_hash_dep = declare_dependency(link_with: r_hash,
|
|
include_directories: [platform_inc])
|
|
|
|
pkgconfig_mod.generate(
|
|
libraries: [r_hash],
|
|
subdirs: 'libr',
|
|
version: r2_version,
|
|
name: 'r_hash',
|
|
filebase: 'r_hash',
|
|
requires: [
|
|
'r_util'
|
|
],
|
|
description: 'radare foundation libraries'
|
|
)
|