* Move binrz meson directives to binrz/ dir * Move rizin-shell-parser to a subproject * Move bochs to a meson subproject * Move rzqnx to meson subproject * Move winkd to a meson subproject * Move rzar to a meson subproject * Move rzw32dbg_wrap to a meson subproject * Move ptrace-wrap to a meson subproject * Move rzgdb to a meson subproject * Rename w32dbg_wrap to rzw32dbg_wrap * Update CODEOWNERS * Remove old references to shlr * Move shlr/heap stuff in core and remove shlr/arm * Move spp to a meson subproject * Remove last references to shlr * Remove use_webui option * Move include files directives to librz/include/meson.build * Move librz meson directives into librz/meson.build * Handle d/ directories inside the specific module meson.build * Move plugins listing to specific module meson.build * Move rzheap to its own subproject * Fix js linter and licenses * Use meson.override_dependency for all rz_ modules
88 lines
2.2 KiB
Meson
88 lines
2.2 KiB
Meson
rz_hash_sources = [
|
|
'msg_digest.c',
|
|
'p/algo_crca.c',
|
|
'p/algo_adler32.c',
|
|
'p/algo_fletcher.c',
|
|
'p/algo_md4.c',
|
|
'p/algo_md5.c',
|
|
'p/algo_mod255.c',
|
|
'p/algo_sha1.c',
|
|
'p/algo_sha256.c',
|
|
'p/algo_sha384.c',
|
|
'p/algo_sha512.c',
|
|
'p/algo_xor8.c',
|
|
'p/algo_xor16.c',
|
|
'p/algo_xxhash32.c',
|
|
'p/algo_parity.c',
|
|
'p/algo_entropy.c',
|
|
'p/algo_entropy_fractional.c',
|
|
'algorithms/mod255/mod255.c',
|
|
'algorithms/parity/parity.c',
|
|
'algorithms/entropy/entropy.c',
|
|
'algorithms/adler32/adler32.c',
|
|
'algorithms/crc/crca.c',
|
|
'algorithms/xor/xor.c',
|
|
'algorithms/fletcher/fletcher.c'
|
|
]
|
|
|
|
dependencies = [mth, rz_util_dep, xxhash_dep]
|
|
|
|
if sys_openssl.found()
|
|
dependencies += [sys_openssl]
|
|
else
|
|
rz_hash_sources += [
|
|
'algorithms/md4/md4.c',
|
|
'algorithms/md5/md5.c',
|
|
'algorithms/sha1/sha1.c',
|
|
'algorithms/sha2/sha2.c'
|
|
]
|
|
endif
|
|
|
|
rz_hash = library('rz_hash', rz_hash_sources,
|
|
include_directories: [platform_inc],
|
|
c_args: library_cflags,
|
|
dependencies: dependencies,
|
|
install: true,
|
|
implicit_include_directories: false,
|
|
install_rpath: rpath_lib,
|
|
link_args: library_linkflags,
|
|
soversion: rizin_libversion,
|
|
name_suffix: lib_name_suffix,
|
|
name_prefix: lib_name_prefix,
|
|
)
|
|
|
|
rz_hash_dep = declare_dependency(link_with: rz_hash,
|
|
include_directories: [platform_inc])
|
|
meson.override_dependency('rz_hash', rz_hash_dep)
|
|
|
|
pkgconfig_mod.generate(rz_hash,
|
|
subdirs: 'librz',
|
|
version: rizin_version,
|
|
name: 'rz_hash',
|
|
filebase: 'rz_hash',
|
|
requires: [
|
|
'rz_util'
|
|
],
|
|
description: 'rizin foundation libraries',
|
|
variables: [
|
|
'plugindir=@0@'.format(rizin_plugins),
|
|
],
|
|
)
|
|
|
|
if not is_static_libs_only
|
|
conf = configuration_data()
|
|
conf.set('RZ_VERSION', rizin_version)
|
|
conf.set('RIZIN_MODULE', rz_hash.name())
|
|
conf.set('RIZIN_MODULE_DEPS', ' '.join(['rz_util']))
|
|
conf.set('PACKAGE_RELATIVE_PATH', cmake_package_relative_path)
|
|
conf.set('INSTALL_INCDIR', rizin_incdir)
|
|
conf.set('INSTALL_LIBDIR', rizin_libdir)
|
|
conf.set('INSTALL_PLUGDIR', rizin_plugins)
|
|
conf.set('rizin_libname', rz_hash.name())
|
|
cmake_mod.configure_package_config_file(
|
|
name: conf.get('rizin_libname'),
|
|
input: '../RzModulesConfig.cmake.in',
|
|
install_dir: rizin_cmakedir / conf.get('rizin_libname'),
|
|
configuration: conf,
|
|
)
|
|
endif
|