radare2/libr/config/meson.build
Riccardo Schirone 594b940b7c
Fixes some of the issues in Travis (#17267)
* Do not check with r_return_ if the convention is present

Let's just assume the NULL default in such a case, so that architectures
for which we don't have a defined calling convention can still be
processed somehow by the analysis code. It won't be precise, but it's
better than nothing.

Also add a warning message so users are aware when the calling
convention is not defined.

* Fix oob-read when # is at the end of the cmd string

* Do not set TMPDIR when the new value is the empty string

When TMPDIR is set to empty value, clang+ld behaves in weird ways and
you cannot compile files from within the r2 shell (e.g. when using #!c
or #!cpipe)

* Use meson and add -lasan to pkgconfig files when sanitizer are used
2020-07-16 20:47:30 +08:00

31 lines
638 B
Meson

r_config_sources = [
'callback.c',
'config.c',
'hold.c',
]
r_config = library('r_config', r_config_sources,
include_directories: [platform_inc],
dependencies: [
r_util_dep
],
install: true,
implicit_include_directories: false,
soversion: r2_libversion
)
r_config_dep = declare_dependency(link_with: r_config,
include_directories: [platform_inc])
pkgconfig_mod.generate(r_config,
subdirs: 'libr',
version: r2_version,
name: 'r_config',
filebase: 'r_config',
libraries: pkgcfg_sanitize_libs,
requires: [
'r_util'
],
description: 'radare foundation libraries'
)