radare2/libr/io/meson.build

90 lines
1.5 KiB
Meson

files = [
'iobuf.c',
'cache.c',
'desc.c',
'fd.c',
'io.c',
'ioutils.c',
'map.c',
'plugin.c',
'section.c',
'undo.c',
'p_cache.c',
'p/io_rbuf.c',
'p/io_ar.c',
'p/io_bfdbg.c',
'p/io_bochs.c',
'p/io_debug.c',
'p/io_default.c',
'p/io_gdb.c',
'p/io_gprobe.c',
'p/io_gzip.c',
'p/io_http.c',
'p/io_ihex.c',
'p/io_mach.c',
'p/io_malloc.c',
'p/io_mmap.c',
'p/io_null.c',
'p/io_procpid.c',
'p/io_ptrace.c',
'p/io_qnx.c',
'p/io_r2k.c',
'p/io_r2pipe.c',
'p/io_r2web.c',
'p/io_rap.c',
'p/io_self.c',
'p/io_shm.c',
'p/io_sparse.c',
'p/io_tcp.c',
'p/io_windbg.c',
'p/io_winedbg.c',
'p/io_zip.c',
]
if host_machine.system() == 'linux'
files += [
'p/io_r2k_linux.c',
]
endif
if host_machine.system() == 'windows'
files += [
'p/io_r2k_windows.c',
'p/io_w32.c',
'p/io_w32dbg.c',
]
endif
r_io = library('r_io', files,
include_directories: [
platform_inc,
include_directories([
'../../shlr/bochs/include',
'../../shlr/gdb/include',
'../../shlr/qnx/include',
'../../shlr/windbg',
'../../shlr/ar',
'../../shlr/zip/include'
])
],
link_with: [
r_util, r_socket, libr_shlr
],
c_args: ['-DCORELIB=1'],
install: true,
implicit_include_directories: false,
soversion: r2libversion
)
pkgconfig_mod.generate(
libraries: [r_io],
subdirs: 'libr',
version: r2version,
name: 'r_io',
filebase: 'r_io',
requires: [
'r_util', 'r_socket'
],
description: 'radare foundation libraries'
)