2017-05-02 03:05:36 +00:00
|
|
|
files=[
|
|
|
|
'arg.c',
|
|
|
|
'ddesc.c',
|
|
|
|
'debug.c',
|
|
|
|
'dreg.c',
|
|
|
|
'esil.c',
|
|
|
|
'map.c',
|
|
|
|
'p/bfvm.c',
|
|
|
|
'p/debug_bf.c',
|
|
|
|
#'p/debug_bochs.c',
|
|
|
|
'p/debug_esil.c',
|
|
|
|
#'p/debug_gdb.c',
|
|
|
|
'p/debug_io.c',
|
|
|
|
'p/debug_native.c',
|
|
|
|
#'p/debug_qnx.c',
|
|
|
|
'p/debug_rap.c',
|
|
|
|
#'p/debug_wind.c',
|
|
|
|
#'p/native/arm.c',
|
|
|
|
#'p/native/bt/fuzzy-all.c',
|
|
|
|
#'p/native/bt/generic-x64.c',
|
|
|
|
#'p/native/bt/generic-x86.c',
|
|
|
|
#'p/native/bt.c',
|
|
|
|
#'p/native/darwin.c',
|
|
|
|
#'p/native/drx.c',
|
|
|
|
#'p/native/maps/darwin.c',
|
|
|
|
#'p/native/maps/windows.c',
|
2017-05-14 21:06:00 +00:00
|
|
|
#'p/native/procfs.c', # we need check to add this file to non win build
|
2017-05-02 03:05:36 +00:00
|
|
|
#'p/native/reg.c',
|
|
|
|
#'p/native/w32.c',
|
|
|
|
#'p/native/windows/windows_debug.c',
|
|
|
|
'pid.c',
|
|
|
|
'plugin.c',
|
|
|
|
'session.c',
|
|
|
|
'signal.c',
|
|
|
|
'snap.c',
|
|
|
|
'trace.c',
|
|
|
|
]
|
|
|
|
|
2017-05-02 12:18:36 +00:00
|
|
|
if host_os == 'linux'
|
|
|
|
files += [
|
|
|
|
'p/native/linux/linux_debug.c',
|
|
|
|
'p/native/linux/linux_coredump.c'
|
|
|
|
]
|
|
|
|
endif
|
|
|
|
|
|
|
|
if host_os == 'darwin'
|
|
|
|
files += [
|
|
|
|
'p/native/xnu/xnu_debug.c',
|
|
|
|
#'p/native/xnu/trap_arm.c',
|
|
|
|
#'p/native/xnu/trap_x86.c',
|
|
|
|
#'p/native/xnu/xnu_excthreads.c',
|
|
|
|
#'p/native/xnu/xnu_threads.c',
|
|
|
|
]
|
|
|
|
endif
|
|
|
|
|
2017-05-02 03:05:36 +00:00
|
|
|
r_debug = shared_library('r_debug', files,
|
2017-05-14 21:06:00 +00:00
|
|
|
include_directories: include_directories([
|
|
|
|
'../include',
|
|
|
|
'../bin/format/elf',
|
|
|
|
platform_librinc
|
|
|
|
]),
|
2017-05-02 03:05:36 +00:00
|
|
|
c_args: ['-DCORELIB'],
|
2017-05-02 12:18:36 +00:00
|
|
|
link_with: [r_util, r_hash, r_reg, r_syscall, r_anal, r_flag, r_io, r_bp, r_search, r_cons, r_lang],
|
2017-05-14 21:06:00 +00:00
|
|
|
objects: [
|
|
|
|
r_sdb.extract_all_objects(),
|
|
|
|
],
|
2017-05-02 03:05:36 +00:00
|
|
|
install: true
|
|
|
|
)
|