2018-05-16 11:24:35 +03:00
|
|
|
anal_plugins = [
|
2018-02-20 11:33:19 +03:00
|
|
|
'6502',
|
|
|
|
'8051',
|
2019-08-19 17:28:44 +02:00
|
|
|
'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',
|
2018-03-11 11:11:18 +03:00
|
|
|
'ebc',
|
2018-05-16 11:24:35 +03:00
|
|
|
'gb',
|
|
|
|
'h8300',
|
|
|
|
'hexagon',
|
2018-02-20 11:33:19 +03:00
|
|
|
'i4004',
|
|
|
|
'i8080',
|
2018-03-11 11:11:18 +03:00
|
|
|
'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',
|
2018-09-08 19:52:33 +02:00
|
|
|
'mcore',
|
2018-02-20 11:33:19 +03:00
|
|
|
'mips_cs',
|
|
|
|
'mips_gnu',
|
|
|
|
'msp430',
|
|
|
|
'nios2',
|
|
|
|
'null',
|
2019-11-29 11:35:16 +01:00
|
|
|
'or1k',
|
2018-02-20 11:33:19 +03:00
|
|
|
'pic',
|
|
|
|
'ppc_cs',
|
|
|
|
'ppc_gnu',
|
2018-03-11 11:11:18 +03:00
|
|
|
'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',
|
2020-04-12 20:42:58 +00:00
|
|
|
'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',
|
2018-03-15 14:07:05 +01:00
|
|
|
'xtensa',
|
2018-02-20 11:33:19 +03:00
|
|
|
'z80',
|
2017-05-26 02:43:26 +02:00
|
|
|
]
|
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',
|
2019-08-19 17:28:44 +02:00
|
|
|
'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',
|
2018-03-11 11:11:18 +03:00
|
|
|
'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',
|
2018-03-11 11:11:18 +03:00
|
|
|
'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',
|
2019-11-29 11:35:16 +01:00
|
|
|
'or1k',
|
2018-02-20 11:33:19 +03:00
|
|
|
'pic',
|
|
|
|
'ppc_cs',
|
|
|
|
'ppc_gnu',
|
2018-03-11 11:11:18 +03:00
|
|
|
'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-07-13 18:19:56 +02:00
|
|
|
'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',
|
2018-03-15 14:07:05 +01:00
|
|
|
'xtensa',
|
2018-02-20 11:33:19 +03:00
|
|
|
'z80',
|
2017-05-26 02:43:26 +02:00
|
|
|
]
|
|
|
|
|
2018-05-16 11:24:35 +03:00
|
|
|
bin_plugins = [
|
2018-02-20 11:33:19 +03:00
|
|
|
'any',
|
|
|
|
'art',
|
2018-07-13 18:19:56 +02:00
|
|
|
'avr',
|
2018-02-20 11:33:19 +03:00
|
|
|
'bf',
|
|
|
|
'bflt',
|
|
|
|
'bios',
|
|
|
|
'bootimg',
|
|
|
|
'cgc',
|
|
|
|
'coff',
|
|
|
|
'dex',
|
2020-03-02 10:20:27 -08:00
|
|
|
'dmp64',
|
2018-02-20 11:33:19 +03:00
|
|
|
'dol',
|
|
|
|
'dyldcache',
|
|
|
|
'elf',
|
|
|
|
'elf64',
|
|
|
|
'fs',
|
2018-03-11 11:11:18 +03:00
|
|
|
'java',
|
2019-12-28 14:46:14 -03:00
|
|
|
'le',
|
2018-02-20 11:33:19 +03:00
|
|
|
'mach0',
|
|
|
|
'mach064',
|
|
|
|
'mbn',
|
|
|
|
'mdmp',
|
|
|
|
'menuet',
|
|
|
|
'mz',
|
2019-07-17 06:57:50 -03:00
|
|
|
'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',
|
2019-03-21 11:26:52 +05:30
|
|
|
'qnx',
|
2018-02-20 11:33:19 +03:00
|
|
|
'p9',
|
|
|
|
'pe',
|
|
|
|
'pe64',
|
|
|
|
'pebble',
|
2019-11-11 21:54:46 +01:00
|
|
|
'prg',
|
2018-02-20 11:33:19 +03:00
|
|
|
'psxexe',
|
|
|
|
'sfc',
|
|
|
|
'smd',
|
|
|
|
'sms',
|
2020-05-12 12:14:38 +02:00
|
|
|
'symbols',
|
2018-02-20 11:33:19 +03:00
|
|
|
'te',
|
|
|
|
'vsf',
|
|
|
|
'wasm',
|
|
|
|
'xbe',
|
2019-03-08 02:03:47 +01:00
|
|
|
'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',
|
2017-05-26 02:43:26 +02:00
|
|
|
]
|
|
|
|
|
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',
|
2017-05-26 02:43:26 +02:00
|
|
|
]
|
|
|
|
|
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'
|
2017-05-26 02:43:26 +02:00
|
|
|
]
|
|
|
|
|
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'
|
2017-05-26 02:43:26 +02:00
|
|
|
]
|
|
|
|
|
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',
|
2017-05-26 02:43:26 +02:00
|
|
|
]
|
|
|
|
|
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',
|
2020-08-24 08:01:10 -03:00
|
|
|
'winkd'
|
2017-05-26 02:43:26 +02:00
|
|
|
]
|
|
|
|
|
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'
|
2017-05-26 02:43:26 +02:00
|
|
|
]
|
|
|
|
|
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'
|
2017-05-26 02:43:26 +02:00
|
|
|
]
|
|
|
|
|
2018-05-16 11:24:35 +03:00
|
|
|
io_plugins = [
|
2018-02-20 11:33:19 +03:00
|
|
|
'ar',
|
2020-07-08 05:28:08 +02:00
|
|
|
'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',
|
2020-08-24 08:01:10 -03:00
|
|
|
'winkd',
|
2018-05-16 11:24:35 +03:00
|
|
|
'winedbg',
|
|
|
|
'zip'
|
2017-05-26 02:43:26 +02:00
|
|
|
]
|
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 += [
|
2020-08-24 08:01:10 -03:00
|
|
|
'windbg',
|
2018-02-20 11:33:19 +03:00
|
|
|
'w32dbg',
|
|
|
|
'w32',
|
|
|
|
]
|
2020-08-24 08:01:10 -03:00
|
|
|
debug_plugins += 'windbg'
|
2017-05-30 18:38:19 +02:00
|
|
|
endif
|
2017-05-26 02:43:26 +02:00
|
|
|
|
2018-05-16 11:24:35 +03:00
|
|
|
lang_plugins = [
|
|
|
|
'lib',
|
|
|
|
'pipe',
|
|
|
|
'rust',
|
2018-02-20 11:33:19 +03:00
|
|
|
'vala'
|
2017-05-26 02:43:26 +02:00
|
|
|
]
|
2018-02-20 11:33:19 +03:00
|
|
|
|
2020-07-10 07:41:58 +02: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',
|
2020-09-21 05:51:04 +02:00
|
|
|
'tms320_pseudo',
|
2018-02-20 11:33:19 +03:00
|
|
|
'dalvik_pseudo',
|
|
|
|
'm68k_pseudo',
|
|
|
|
'mips_pseudo',
|
|
|
|
'ppc_pseudo',
|
|
|
|
'sh_pseudo',
|
2020-09-25 13:51:23 +02:00
|
|
|
'v850_pseudo',
|
2019-01-18 11:29:51 +01:00
|
|
|
'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
|
|
|
|
2018-12-27 20:17:54 +07:00
|
|
|
include_files =[
|
|
|
|
'include/r2naked.h',
|
2019-05-08 17:25:09 +02:00
|
|
|
'include/r_agraph.h',
|
2018-12-27 20:17:54 +07:00
|
|
|
'include/r_anal.h',
|
|
|
|
'include/r_asm.h',
|
|
|
|
'include/r_bind.h',
|
2019-03-08 14:22:59 +01:00
|
|
|
'include/r_getopt.h',
|
2018-12-27 20:17:54 +07:00
|
|
|
'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',
|
2019-03-08 14:22:59 +01:00
|
|
|
'include/r_main.h',
|
2018-12-27 20:17:54 +07:00
|
|
|
'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',
|
2020-07-24 13:21:52 +02:00
|
|
|
'include/r_types_overflow.h',
|
2018-12-27 20:17:54 +07:00
|
|
|
'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
|
|
|
|
2018-12-27 20:17:54 +07: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',
|
2018-12-27 20:17:54 +07:00
|
|
|
'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',
|
2020-10-06 05:57:51 +03:00
|
|
|
'include/r_util/r_graph_drawable.h',
|
2018-12-27 20:17:54 +07:00
|
|
|
'include/r_util/r_hex.h',
|
|
|
|
'include/r_util/r_idpool.h',
|
|
|
|
'include/r_util/r_itv.h',
|
2020-08-14 20:57:09 +02:00
|
|
|
'include/r_util/r_json.h',
|
2018-12-27 20:17:54 +07:00
|
|
|
'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',
|
2018-12-27 20:17:54 +07:00
|
|
|
'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',
|
2019-12-09 00:07:10 +01:00
|
|
|
'include/r_util/r_intervaltree.h',
|
2018-12-27 20:17:54 +07:00
|
|
|
'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',
|
2019-10-20 15:13:27 +02:00
|
|
|
'include/r_util/r_str_constpool.h',
|
2018-12-27 20:17:54 +07:00
|
|
|
'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',
|
2018-12-27 20:17:54 +07:00
|
|
|
'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',
|
2020-05-27 09:24:31 +05:30
|
|
|
'include/r_util/r_x509.h',
|
|
|
|
'include/r_util/r_annotated_code.h'
|
2018-12-27 20:17:54 +07:00
|
|
|
]
|
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
|
|
|
|
2018-12-27 20:17:54 +07: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-11-07 17:18:14 +01:00
|
|
|
|
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
|
2018-07-17 22:12:17 +03:00
|
|
|
|
|
|
|
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
|
|
|
|
]
|