I'd like to print filename from buildtarget
created by executable()
. Looking into class Executable
I tried ping.name
:
ping = executable('ping', [
'ping.c',
'ping_common.c',
'ping6_common.c',
'node_info.c',
git_version_h
],
include_directories : inc,
dependencies : [
cap_dep,
idn_dep,
intl_dep,
m_dep,
resolv_dep
],
link_with : [libcommon],
install: true)
message(ping.name))
But it gives an error:
ping/meson.build:23:17: ERROR: Expecting lparen got rparen.
The same is for ping.filename
, there is no to_string()
. Are these "private" or anyhow hidden?
BuildTarget
is documented, but there is no method described. Thus generally howto understand which methods are public and which private for certain meson class?