mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-04 19:47:31 +00:00
486 lines
7.2 KiB
Meson
486 lines
7.2 KiB
Meson
anal_plugins = [
|
|
'6502',
|
|
'8051',
|
|
'arc',
|
|
'arm_cs',
|
|
'arm_gnu',
|
|
'avr',
|
|
'bf',
|
|
'chip8',
|
|
'cr16',
|
|
'cris',
|
|
'dalvik',
|
|
'ebc',
|
|
'gb',
|
|
'h8300',
|
|
'hexagon',
|
|
'i4004',
|
|
'i8080',
|
|
'java',
|
|
'm68k_cs',
|
|
'malbolge',
|
|
'mcore',
|
|
'mips_cs',
|
|
'mips_gnu',
|
|
'msp430',
|
|
'nios2',
|
|
'null',
|
|
'pic',
|
|
'ppc_cs',
|
|
'ppc_gnu',
|
|
'propeller',
|
|
'riscv',
|
|
'rsp',
|
|
'sh',
|
|
'snes',
|
|
'sparc_cs',
|
|
'sparc_gnu',
|
|
'sysz',
|
|
'tms320',
|
|
#'tms320c64x',
|
|
'v810',
|
|
'v850',
|
|
'vax',
|
|
'wasm',
|
|
'ws',
|
|
'x86_cs',
|
|
'xap',
|
|
'xcore_cs',
|
|
'xtensa',
|
|
'z80',
|
|
]
|
|
|
|
asm_plugins = [
|
|
'6502',
|
|
'8051',
|
|
'arc',
|
|
'arm_as',
|
|
'arm_cs',
|
|
'arm_gnu',
|
|
'arm_winedbg',
|
|
'avr',
|
|
'bf',
|
|
'chip8',
|
|
'cr16',
|
|
'cris_gnu',
|
|
'dalvik',
|
|
'dcpu16',
|
|
'ebc',
|
|
'gb',
|
|
'h8300',
|
|
'hexagon',
|
|
#'hexagon_gnu',
|
|
'hppa_gnu',
|
|
'i4004',
|
|
'i8080',
|
|
'java',
|
|
'lanai_gnu',
|
|
'lh5801',
|
|
'lm32',
|
|
'm68k_cs',
|
|
'malbolge',
|
|
'mcs96',
|
|
'mips_cs',
|
|
'mips_gnu',
|
|
'msp430',
|
|
'nios2',
|
|
'pic',
|
|
'ppc_cs',
|
|
'ppc_gnu',
|
|
'propeller',
|
|
'riscv',
|
|
'rsp',
|
|
'sh',
|
|
'snes',
|
|
'sparc_cs',
|
|
'sparc_gnu',
|
|
'spc700',
|
|
'sysz',
|
|
'tms320',
|
|
'tms320c64x',
|
|
'tricore',
|
|
'v810',
|
|
'v850',
|
|
'vax',
|
|
'wasm',
|
|
'ws',
|
|
'x86_as',
|
|
'x86_cs',
|
|
'x86_nasm',
|
|
'x86_nz',
|
|
'xap',
|
|
'xcore_cs',
|
|
'xtensa',
|
|
'z80',
|
|
]
|
|
|
|
bin_plugins = [
|
|
'any',
|
|
'art',
|
|
'avr',
|
|
'bf',
|
|
'bflt',
|
|
'bios',
|
|
'bootimg',
|
|
'cgc',
|
|
'coff',
|
|
'dex',
|
|
'dol',
|
|
'dyldcache',
|
|
'elf',
|
|
'elf64',
|
|
'fs',
|
|
'java',
|
|
'mach0',
|
|
'mach064',
|
|
'mbn',
|
|
'mdmp',
|
|
'menuet',
|
|
'mz',
|
|
'nes',
|
|
'nin3ds',
|
|
'ninds',
|
|
'ningb',
|
|
'ningba',
|
|
'nro',
|
|
'nso',
|
|
'omf',
|
|
'p9',
|
|
'pe',
|
|
'pe64',
|
|
'pebble',
|
|
'psxexe',
|
|
'sfc',
|
|
'smd',
|
|
'sms',
|
|
'spc700',
|
|
'te',
|
|
'vsf',
|
|
'wasm',
|
|
'xbe',
|
|
'z64',
|
|
'zimg',
|
|
]
|
|
|
|
bin_ldr_plugins = [
|
|
'ldr_linux',
|
|
]
|
|
|
|
bin_xtr_plugins = [
|
|
'xtr_dyldcache',
|
|
'xtr_fatmach0',
|
|
]
|
|
|
|
bp_plugins = [
|
|
'arm',
|
|
'bf',
|
|
'mips',
|
|
'ppc',
|
|
'sh',
|
|
'x86'
|
|
]
|
|
|
|
core_plugins = [
|
|
'a2f',
|
|
'java'
|
|
]
|
|
|
|
crypto_plugins = [
|
|
'aes',
|
|
'aes_cbc',
|
|
'base64',
|
|
'base91',
|
|
'blowfish',
|
|
'cps2',
|
|
'des',
|
|
'punycode',
|
|
'rc2',
|
|
'rc4',
|
|
'rc6',
|
|
'rol',
|
|
'ror',
|
|
'rot',
|
|
'serpent',
|
|
'xor',
|
|
]
|
|
|
|
debug_plugins = [
|
|
'bf',
|
|
'bochs',
|
|
'esil',
|
|
'gdb',
|
|
'io',
|
|
'native',
|
|
'null',
|
|
'qnx',
|
|
'rap',
|
|
'windbg'
|
|
]
|
|
|
|
egg_plugins = [
|
|
'exec',
|
|
#'shya',
|
|
'xor'
|
|
]
|
|
|
|
fs_plugins = [
|
|
'cpio',
|
|
'ext2',
|
|
'fat',
|
|
'fb',
|
|
'hfs',
|
|
'hfsplus',
|
|
'io',
|
|
'iso9660',
|
|
'jfs',
|
|
'minix',
|
|
'ntfs',
|
|
'posix',
|
|
'r2',
|
|
'reiserfs',
|
|
'sfs',
|
|
'tar',
|
|
'udf',
|
|
'ufs',
|
|
'ufs2',
|
|
'xfs'
|
|
]
|
|
|
|
io_plugins = [
|
|
'ar',
|
|
'bfdbg',
|
|
'bochs',
|
|
'debug',
|
|
'default',
|
|
'gdb',
|
|
'gprobe',
|
|
'gzip',
|
|
'http',
|
|
'ihex',
|
|
'mach',
|
|
'malloc',
|
|
'mmap',
|
|
'null',
|
|
'procpid',
|
|
'ptrace',
|
|
'qnx',
|
|
'r2k',
|
|
'r2pipe',
|
|
'r2web',
|
|
'rap',
|
|
'rbuf',
|
|
'self',
|
|
'shm',
|
|
'sparse',
|
|
'tcp',
|
|
'windbg',
|
|
'winedbg',
|
|
'zip'
|
|
]
|
|
|
|
if host_machine.system() == 'windows'
|
|
io_plugins += [
|
|
'w32dbg',
|
|
'w32',
|
|
]
|
|
endif
|
|
|
|
lang_plugins = [
|
|
'c',
|
|
'cpipe',
|
|
'lib',
|
|
'pipe',
|
|
'rust',
|
|
'vala'
|
|
]
|
|
|
|
parse_plugins = [
|
|
'6502_pseudo',
|
|
'arm_pseudo',
|
|
'att2intel',
|
|
'avr_pseudo',
|
|
'dalvik_pseudo',
|
|
'm68k_pseudo',
|
|
'mips_pseudo',
|
|
'mreplace',
|
|
'ppc_pseudo',
|
|
'sh_pseudo',
|
|
'wasm_pseudo',
|
|
'x86_pseudo',
|
|
'z80_pseudo'
|
|
]
|
|
|
|
include_files =[
|
|
'include/r2naked.h',
|
|
'include/r_anal_ex.h',
|
|
'include/r_anal.h',
|
|
'include/r_asm.h',
|
|
'include/r_bind.h',
|
|
'include/r_bin_dwarf.h',
|
|
'include/r_bin.h',
|
|
'include/r_binheap.h',
|
|
'include/r_bp.h',
|
|
'include/r_cmd.h',
|
|
'include/r_config.h',
|
|
'include/r_cons.h',
|
|
'include/r_core.h',
|
|
'include/r_crypto.h',
|
|
'include/r_debug.h',
|
|
'include/r_diff.h',
|
|
'include/r_egg.h',
|
|
'include/r_endian.h',
|
|
'include/r_flag.h',
|
|
'include/r_flist.h',
|
|
'include/r_fs.h',
|
|
'include/r_hash.h',
|
|
'include/r_heap_glibc.h',
|
|
'include/r_heap_jemalloc.h',
|
|
'include/r_io.h',
|
|
'include/r_lang.h',
|
|
'include/r_lib.h',
|
|
'include/r_list.h',
|
|
'include/r_magic.h',
|
|
'include/r_parse.h',
|
|
'include/r_pdb.h',
|
|
'include/r_qrcode.h',
|
|
'include/r_regex.h',
|
|
'include/r_reg.h',
|
|
'include/r_search.h',
|
|
'include/r_sign.h',
|
|
'include/r_skiplist.h',
|
|
'include/r_socket.h',
|
|
'include/r_syscall.h',
|
|
'include/r_th.h',
|
|
'include/r_types_base.h',
|
|
'include/r_types.h',
|
|
'include/r_util.h',
|
|
'include/r_vector.h',
|
|
'include/sdb.h'
|
|
]
|
|
install_headers(include_files,
|
|
subdir: 'libr')
|
|
|
|
r_util_files = [
|
|
'include/r_util/pj.h',
|
|
'include/r_util/r_ascii_table.h',
|
|
'include/r_util/r_asn1.h',
|
|
'include/r_util/r_assert.h',
|
|
'include/r_util/r_base64.h',
|
|
'include/r_util/r_base91.h',
|
|
'include/r_util/r_big.h',
|
|
'include/r_util/r_bitmap.h',
|
|
'include/r_util/r_buf.h',
|
|
'include/r_util/r_cache.h',
|
|
'include/r_util/r_constr.h',
|
|
'include/r_util/r_ctypes.h',
|
|
'include/r_util/r_debruijn.h',
|
|
'include/r_util/r_event.h',
|
|
'include/r_util/r_file.h',
|
|
'include/r_util/r_graph.h',
|
|
'include/r_util/r_hex.h',
|
|
'include/r_util/r_idpool.h',
|
|
'include/r_util/r_itv.h',
|
|
'include/r_util/r_log.h',
|
|
'include/r_util/r_mem.h',
|
|
'include/r_util/r_name.h',
|
|
'include/r_util/r_num.h',
|
|
'include/r_util/r_panels.h',
|
|
'include/r_util/r_pkcs7.h',
|
|
'include/r_util/r_pool.h',
|
|
'include/r_util/r_print.h',
|
|
'include/r_util/r_punycode.h',
|
|
'include/r_util/r_queue.h',
|
|
'include/r_util/r_range.h',
|
|
'include/r_util/r_rbtree.h',
|
|
'include/r_util/r_sandbox.h',
|
|
'include/r_util/r_signal.h',
|
|
'include/r_util/r_spaces.h',
|
|
'include/r_util/r_stack.h',
|
|
'include/r_util/r_strbuf.h',
|
|
'include/r_util/r_str.h',
|
|
'include/r_util/r_strpool.h',
|
|
'include/r_util/r_str_util.h',
|
|
'include/r_util/r_sys.h',
|
|
'include/r_util/r_alloc.h',
|
|
'include/r_util/r_date.h',
|
|
'include/r_util/r_time.h',
|
|
'include/r_util/r_tree.h',
|
|
'include/r_util/r_uleb128.h',
|
|
'include/r_util/r_utf16.h',
|
|
'include/r_util/r_utf32.h',
|
|
'include/r_util/r_utf8.h',
|
|
'include/r_util/r_x509.h'
|
|
]
|
|
install_headers(r_util_files, subdir: 'libr/r_util')
|
|
|
|
r_crypto_files = [
|
|
'include/r_crypto/r_des.h'
|
|
]
|
|
install_headers(r_crypto_files, subdir: 'libr/r_crypto')
|
|
|
|
sdb_files = [
|
|
'include/sdb/buffer.h',
|
|
'include/sdb/cdb.h',
|
|
'include/sdb/cdb_make.h',
|
|
'include/sdb/config.h',
|
|
'include/sdb/dict.h',
|
|
'include/sdb/ht_inc.h',
|
|
'include/sdb/ht_pp.h',
|
|
'include/sdb/ht_up.h',
|
|
'include/sdb/ht_uu.h',
|
|
'include/sdb/ls.h',
|
|
'include/sdb/sdb.h',
|
|
'include/sdb/sdbht.h',
|
|
'include/sdb/sdb_version.h',
|
|
'include/sdb/types.h'
|
|
]
|
|
install_headers(sdb_files, subdir: 'libr/sdb')
|
|
|
|
sflib_common_files = [
|
|
'include/sflib/common/sftypes.h',
|
|
'include/sflib/common/sfsocketcall.h'
|
|
]
|
|
|
|
sflib_arch = [
|
|
'linux-x86-64',
|
|
'linux-x86-32',
|
|
'linux-arm-64',
|
|
'linux-arm-32',
|
|
'darwin-x86-64',
|
|
'darwin-x86-32',
|
|
'darwin-arm-64'
|
|
]
|
|
|
|
sflib_arch_files = [
|
|
'sflib.h',
|
|
'sfsyscall.h',
|
|
'sfsysnr.h'
|
|
]
|
|
|
|
install_headers(sflib_common_files, subdir: 'libr/sflib/common')
|
|
foreach arch : sflib_arch
|
|
foreach file : sflib_arch_files
|
|
install_headers(join_paths('include/sflib', arch, file), subdir: join_paths('libr/sflib', arch))
|
|
endforeach
|
|
endforeach
|
|
|
|
sdb_readlink_script = '''#script
|
|
import os
|
|
import sys
|
|
infile = sys.argv[1]
|
|
if os.name == 'nt' and os.path.getsize(infile) <= 64:
|
|
with open(infile) as sdb_txt:
|
|
fname = sdb_txt.readline()
|
|
if fname.endswith('.sdb.txt'):
|
|
infile = fname
|
|
else:
|
|
infile = os.path.basename(infile)
|
|
print(infile)
|
|
'''
|
|
|
|
sdb_readlink_cmd = [
|
|
py3_exe,
|
|
'-c',
|
|
sdb_readlink_script
|
|
]
|