radare2/libr/meson.build

498 lines
7.4 KiB
Meson
Raw Normal View History

2018-05-16 11:24:35 +03:00
anal_plugins = [
2018-02-20 11:33:19 +03:00
'6502',
'8051',
'amd29k',
2018-02-20 11:33:19 +03:00
'arc',
'arm_cs',
2018-03-24 15:23:57 +03:00
'arm_gnu',
2018-05-16 11:24:35 +03:00
'avr',
2018-02-20 11:33:19 +03:00
'bf',
2018-05-16 11:24:35 +03:00
'chip8',
2018-02-20 11:33:19 +03:00
'cr16',
'cris',
'dalvik',
'ebc',
2018-05-16 11:24:35 +03:00
'gb',
'h8300',
'hexagon',
2018-02-20 11:33:19 +03:00
'i4004',
'i8080',
'java',
2018-02-20 11:33:19 +03:00
'm68k_cs',
2019-09-16 01:10:29 -03:00
'm680x_cs',
2018-02-20 11:33:19 +03:00
'malbolge',
'mcore',
2018-02-20 11:33:19 +03:00
'mips_cs',
'mips_gnu',
'msp430',
'nios2',
'null',
'or1k',
2018-02-20 11:33:19 +03:00
'pic',
'ppc_cs',
'ppc_gnu',
'propeller',
2018-02-20 11:33:19 +03:00
'riscv',
2018-05-16 11:24:35 +03:00
'rsp',
2018-02-20 11:33:19 +03:00
'sh',
'snes',
'sparc_cs',
'sparc_gnu',
'sysz',
'tms320',
2018-05-16 11:24:35 +03:00
#'tms320c64x',
'tricore',
2018-02-20 11:33:19 +03:00
'v810',
'v850',
2018-05-16 11:24:35 +03:00
'vax',
'wasm',
2018-02-20 11:33:19 +03:00
'ws',
'x86_cs',
'xap',
'xcore_cs',
'xtensa',
2018-02-20 11:33:19 +03:00
'z80',
]
2018-02-20 11:33:19 +03:00
2018-05-16 11:24:35 +03:00
asm_plugins = [
2018-02-20 11:33:19 +03:00
'6502',
'8051',
'amd29k',
2018-02-20 11:33:19 +03:00
'arc',
'arm_as',
'arm_cs',
2018-03-24 15:23:57 +03:00
'arm_gnu',
2018-02-20 11:33:19 +03:00
'arm_winedbg',
2018-05-16 11:24:35 +03:00
'avr',
2018-02-20 11:33:19 +03:00
'bf',
2018-05-16 11:24:35 +03:00
'chip8',
2018-02-20 11:33:19 +03:00
'cr16',
'cris_gnu',
'dalvik',
'dcpu16',
'ebc',
2018-05-16 11:24:35 +03:00
'gb',
2018-02-20 11:33:19 +03:00
'h8300',
2018-05-16 11:24:35 +03:00
'hexagon',
#'hexagon_gnu',
2018-02-20 11:33:19 +03:00
'hppa_gnu',
'i4004',
'i8080',
'java',
2018-02-20 11:33:19 +03:00
'lanai_gnu',
'lh5801',
'lm32',
'm68k_cs',
2019-09-16 01:10:29 -03:00
'm680x_cs',
2018-02-20 11:33:19 +03:00
'malbolge',
2019-09-16 01:20:21 -03:00
'mcore',
2018-02-20 11:33:19 +03:00
'mcs96',
'mips_cs',
'mips_gnu',
'msp430',
'nios2',
'or1k',
2018-02-20 11:33:19 +03:00
'pic',
'ppc_cs',
'ppc_gnu',
'propeller',
2018-02-20 11:33:19 +03:00
'riscv',
2018-05-16 11:24:35 +03:00
'rsp',
2018-02-20 11:33:19 +03:00
'sh',
'snes',
'sparc_cs',
'sparc_gnu',
'sysz',
'tms320',
'tms320c64x',
2018-02-20 11:33:19 +03:00
'tricore',
'v810',
'v850',
'vax',
'wasm',
'ws',
'x86_as',
'x86_cs',
'x86_nasm',
'x86_nz',
'xap',
'xcore_cs',
'xtensa',
2018-02-20 11:33:19 +03:00
'z80',
]
2018-05-16 11:24:35 +03:00
bin_plugins = [
2018-02-20 11:33:19 +03:00
'any',
'art',
'avr',
2018-02-20 11:33:19 +03:00
'bf',
'bflt',
'bios',
'bootimg',
'cgc',
'coff',
'dex',
'dmp64',
2018-02-20 11:33:19 +03:00
'dol',
'dyldcache',
'elf',
'elf64',
'fs',
'java',
'le',
2018-02-20 11:33:19 +03:00
'mach0',
'mach064',
'mbn',
'mdmp',
'menuet',
'mz',
'ne',
2018-02-20 11:33:19 +03:00
'nes',
'nin3ds',
'ninds',
'ningb',
'ningba',
'nro',
2018-05-16 11:24:35 +03:00
'nso',
2018-02-20 11:33:19 +03:00
'omf',
'qnx',
2018-02-20 11:33:19 +03:00
'p9',
'pe',
'pe64',
'pebble',
'prg',
2018-02-20 11:33:19 +03:00
'psxexe',
'sfc',
'smd',
'sms',
'symbols',
2018-02-20 11:33:19 +03:00
'te',
'vsf',
'wasm',
'xbe',
'xnu_kernelcache',
2018-02-20 11:33:19 +03:00
'z64',
2018-05-16 11:24:35 +03:00
'zimg',
]
bin_ldr_plugins = [
'ldr_linux',
]
2018-05-16 11:24:35 +03:00
bin_xtr_plugins = [
'xtr_dyldcache',
'xtr_fatmach0',
2019-12-13 15:49:35 +01:00
'xtr_sep64',
]
2018-05-16 11:24:35 +03:00
bp_plugins = [
2018-02-20 11:33:19 +03:00
'arm',
'bf',
'mips',
'ppc',
2018-05-16 11:24:35 +03:00
'sh',
2018-02-20 11:33:19 +03:00
'x86'
]
2018-05-16 11:24:35 +03:00
core_plugins = [
2018-08-01 00:28:03 -07:00
'a2f',
2018-05-16 11:24:35 +03:00
'java'
]
2018-05-16 11:24:35 +03:00
crypto_plugins = [
2018-02-20 11:33:19 +03:00
'aes',
'aes_cbc',
'base64',
'base91',
'blowfish',
'cps2',
'des',
'punycode',
'rc2',
'rc4',
'rc6',
'rol',
'ror',
'rot',
2018-05-16 11:24:35 +03:00
'serpent',
2018-02-20 11:33:19 +03:00
'xor',
]
2018-05-16 11:24:35 +03:00
debug_plugins = [
2018-02-20 11:33:19 +03:00
'bf',
2018-05-16 11:24:35 +03:00
'bochs',
2018-02-20 11:33:19 +03:00
'esil',
2018-05-16 11:24:35 +03:00
'gdb',
2018-02-20 11:33:19 +03:00
'io',
'native',
2018-05-16 11:24:35 +03:00
'null',
'qnx',
2018-02-20 11:33:19 +03:00
'rap',
'winkd'
]
2018-05-16 11:24:35 +03:00
egg_plugins = [
2018-02-20 11:33:19 +03:00
'exec',
2018-05-16 11:24:35 +03:00
#'shya',
2018-02-20 11:33:19 +03:00
'xor'
]
2018-05-16 11:24:35 +03:00
fs_plugins = [
'cpio',
2018-02-20 11:33:19 +03:00
'ext2',
'fat',
'fb',
'hfs',
'hfsplus',
2018-05-16 11:24:35 +03:00
'io',
2018-02-20 11:33:19 +03:00
'iso9660',
'jfs',
'minix',
'ntfs',
'posix',
2018-05-16 11:24:35 +03:00
'r2',
2018-02-20 11:33:19 +03:00
'reiserfs',
'sfs',
'tar',
'udf',
'ufs',
2018-05-16 11:24:35 +03:00
'ufs2',
2018-02-20 11:33:19 +03:00
'xfs'
]
2018-05-16 11:24:35 +03:00
io_plugins = [
2018-02-20 11:33:19 +03:00
'ar',
'fd',
2018-02-20 11:33:19 +03:00
'bfdbg',
2018-05-16 11:24:35 +03:00
'bochs',
2018-02-20 11:33:19 +03:00
'debug',
'default',
'gdb',
2018-05-16 11:24:35 +03:00
'gprobe',
2018-02-20 11:33:19 +03:00
'gzip',
'http',
'ihex',
'mach',
'malloc',
'mmap',
'null',
'procpid',
'ptrace',
2018-05-16 11:24:35 +03:00
'qnx',
2018-02-20 11:33:19 +03:00
'r2k',
'r2pipe',
'r2web',
'rap',
2018-05-16 11:24:35 +03:00
'rbuf',
2018-02-20 11:33:19 +03:00
'self',
'shm',
'sparse',
'tcp',
'winkd',
2018-05-16 11:24:35 +03:00
'winedbg',
'zip'
]
2018-02-20 11:33:19 +03:00
2018-03-23 09:47:46 +03:00
if host_machine.system() == 'windows'
2018-05-16 11:24:35 +03:00
io_plugins += [
'windbg',
2018-02-20 11:33:19 +03:00
'w32dbg',
'w32',
]
debug_plugins += 'windbg'
2017-05-30 18:38:19 +02:00
endif
2018-05-16 11:24:35 +03:00
lang_plugins = [
'lib',
'pipe',
'rust',
2018-02-20 11:33:19 +03:00
'vala'
]
2018-02-20 11:33:19 +03:00
if host_machine.system() != 'windows'
lang_plugins += [
'c',
'cpipe'
]
endif
2018-05-16 11:24:35 +03:00
parse_plugins = [
2018-02-20 11:33:19 +03:00
'6502_pseudo',
'arm_pseudo',
'att2intel',
2018-05-16 11:24:35 +03:00
'avr_pseudo',
2019-03-16 20:48:27 +01:00
'chip8_pseudo',
'tms320_pseudo',
2018-02-20 11:33:19 +03:00
'dalvik_pseudo',
'm68k_pseudo',
'mips_pseudo',
'ppc_pseudo',
'sh_pseudo',
'v850_pseudo',
'wasm_pseudo',
2018-02-20 11:33:19 +03:00
'x86_pseudo',
2018-05-16 11:24:35 +03:00
'z80_pseudo'
2018-03-14 23:43:53 +01:00
]
2018-03-23 09:47:46 +03:00
include_files =[
'include/r2naked.h',
2019-05-08 17:25:09 +02:00
'include/r_agraph.h',
'include/r_anal.h',
'include/r_asm.h',
'include/r_bind.h',
'include/r_getopt.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_main.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_overflow.h',
'include/r_types_base.h',
'include/r_types.h',
'include/r_util.h',
'include/r_vector.h',
]
2020-06-12 06:12:48 -03:00
install_headers(include_files, install_dir: r2_incdir)
2018-03-23 09:47:46 +03:00
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',
2019-11-06 23:47:12 +01:00
'include/r_util/r_protobuf.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_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_graph_drawable.h',
'include/r_util/r_hex.h',
'include/r_util/r_idpool.h',
'include/r_util/r_itv.h',
'include/r_util/r_json.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',
2019-08-26 00:09:00 +02:00
'include/r_util/r_table.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_intervaltree.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_constpool.h',
'include/r_util/r_str_util.h',
'include/r_util/r_sys.h',
2019-02-18 21:52:30 +01:00
'include/r_util/r_alloc.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',
'include/r_util/r_annotated_code.h'
]
2020-06-12 06:12:48 -03:00
install_headers(r_util_files, install_dir: join_paths(r2_incdir, 'r_util'))
2018-03-23 09:47:46 +03:00
r_crypto_files = [
'include/r_crypto/r_des.h'
]
2020-06-12 06:12:48 -03:00
install_headers(r_crypto_files, install_dir: join_paths(r2_incdir, 'r_crypto'))
2018-03-23 09:47:46 +03:00
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'
]
2020-06-12 06:12:48 -03:00
install_headers(sflib_common_files, install_dir: join_paths(r2_incdir, 'sflib/common'))
2018-03-23 09:47:46 +03:00
foreach arch : sflib_arch
foreach file : sflib_arch_files
2020-06-12 06:12:48 -03:00
install_headers(join_paths('include/sflib', arch, file), install_dir: join_paths(r2_incdir, 'sflib', arch))
2018-03-23 09:47:46 +03:00
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
]