2019-03-08 13:22:59 +00:00
|
|
|
r_main_sources = [
|
|
|
|
'main.c',
|
|
|
|
'r2agent.c',
|
2021-12-16 11:47:40 +00:00
|
|
|
'r2pm.c',
|
2019-03-08 13:22:59 +00:00
|
|
|
'rabin2.c',
|
|
|
|
'radare2.c',
|
|
|
|
'radiff2.c',
|
|
|
|
'rafind2.c',
|
|
|
|
'ragg2.c',
|
|
|
|
'rahash2.c',
|
|
|
|
'rarun2.c',
|
2020-05-16 16:36:43 +00:00
|
|
|
'rasign2.c',
|
2019-03-08 13:22:59 +00:00
|
|
|
'rasm2.c',
|
2021-07-25 22:05:35 +00:00
|
|
|
'ravc2.c',
|
2020-04-08 11:56:52 +00:00
|
|
|
'rax2.c'
|
2019-03-08 13:22:59 +00:00
|
|
|
]
|
|
|
|
|
2020-07-05 02:53:37 +00:00
|
|
|
r_main_deps = [
|
|
|
|
r_config_dep,
|
|
|
|
r_cons_dep,
|
|
|
|
r_io_dep,
|
|
|
|
r_util_dep,
|
|
|
|
r_flag_dep,
|
|
|
|
r_asm_dep,
|
|
|
|
r_core_dep,
|
|
|
|
r_debug_dep,
|
|
|
|
r_hash_dep,
|
|
|
|
r_bin_dep,
|
|
|
|
r_lang_dep,
|
|
|
|
r_io_dep,
|
|
|
|
r_anal_dep,
|
|
|
|
r_parse_dep,
|
|
|
|
r_bp_dep,
|
|
|
|
r_egg_dep,
|
|
|
|
r_reg_dep,
|
|
|
|
r_search_dep,
|
|
|
|
r_syscall_dep,
|
|
|
|
r_socket_dep,
|
|
|
|
r_fs_dep,
|
|
|
|
r_magic_dep,
|
|
|
|
r_crypto_dep
|
|
|
|
]
|
|
|
|
|
2022-03-22 10:59:13 +00:00
|
|
|
r_main = library('r_main', r_main_sources,
|
|
|
|
include_directories: [platform_inc],
|
|
|
|
c_args: library_cflags,
|
|
|
|
dependencies: r_main_deps,
|
|
|
|
install: true,
|
|
|
|
implicit_include_directories: false,
|
|
|
|
install_rpath: rpath_lib,
|
|
|
|
soversion: r2_libversion
|
|
|
|
)
|
|
|
|
|
|
|
|
r_main_dep = declare_dependency(link_with: r_main,
|
|
|
|
include_directories: [platform_inc],
|
|
|
|
dependencies: r_main_deps)
|
|
|
|
|
|
|
|
if get_option('blob')
|
2022-03-02 00:20:43 +00:00
|
|
|
r_main_static_deps = [
|
|
|
|
r_config_static_dep,
|
|
|
|
r_cons_static_dep,
|
|
|
|
r_io_static_dep,
|
|
|
|
r_util_static_dep,
|
|
|
|
r_flag_static_dep,
|
|
|
|
r_asm_static_dep,
|
|
|
|
r_core_static_dep,
|
|
|
|
r_debug_static_dep,
|
|
|
|
r_hash_static_dep,
|
|
|
|
r_bin_static_dep,
|
|
|
|
r_lang_static_dep,
|
|
|
|
r_io_static_dep,
|
|
|
|
r_anal_static_dep,
|
|
|
|
r_parse_static_dep,
|
|
|
|
r_bp_static_dep,
|
|
|
|
r_egg_static_dep,
|
|
|
|
r_reg_static_dep,
|
|
|
|
r_search_static_dep,
|
|
|
|
r_syscall_static_dep,
|
|
|
|
r_socket_static_dep,
|
|
|
|
r_fs_static_dep,
|
|
|
|
r_magic_static_dep,
|
|
|
|
r_crypto_static_dep
|
|
|
|
]
|
2022-03-22 10:59:13 +00:00
|
|
|
r_main_static = static_library('r_main_static', r_main_sources,
|
|
|
|
include_directories: [platform_inc],
|
|
|
|
c_args: library_cflags,
|
|
|
|
dependencies: r_main_static_deps,
|
|
|
|
install: true,
|
|
|
|
implicit_include_directories: false,
|
|
|
|
)
|
|
|
|
r_main_static_dep = declare_dependency(
|
|
|
|
link_with: r_main_static,
|
|
|
|
include_directories: [platform_inc],
|
|
|
|
dependencies: r_main_static_deps
|
|
|
|
)
|
2022-03-22 10:12:43 +00:00
|
|
|
endif
|
2022-03-02 00:20:43 +00:00
|
|
|
|
2019-03-08 13:22:59 +00:00
|
|
|
pkgconfig_mod.generate(r_main,
|
|
|
|
subdirs: 'libr',
|
|
|
|
version: r2_version,
|
|
|
|
name: 'r_main',
|
2020-07-16 12:47:30 +00:00
|
|
|
libraries: pkgcfg_sanitize_libs,
|
2019-03-08 13:22:59 +00:00
|
|
|
filebase: 'r_main',
|
|
|
|
requires: [
|
|
|
|
'r_core',
|
|
|
|
'r_asm',
|
|
|
|
'r_syscall'
|
|
|
|
],
|
|
|
|
description: 'radare foundation libraries'
|
|
|
|
)
|