diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2020-03-04 13:03:47 +0100 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2020-03-04 13:49:01 -0500 |
commit | a46f0a620228f9acfbf2340d6d9a2d58229720aa (patch) | |
tree | ca10199b5ff2ed8187592d6d60feaf7b2f10d792 /docs/markdown | |
parent | 58db8d5e1134e3917b2fb20403624ac090f1f604 (diff) | |
download | meson-a46f0a620228f9acfbf2340d6d9a2d58229720aa.zip meson-a46f0a620228f9acfbf2340d6d9a2d58229720aa.tar.gz meson-a46f0a620228f9acfbf2340d6d9a2d58229720aa.tar.bz2 |
interpreter: add 'name' method to BuildTargetHolder
As any child of BuildTargetHolder might need the name of the object,
provides a method to get object name.
This is useful in gst-build to display the plugin name and not
the filename.
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Reference-manual.md | 2 | ||||
-rw-r--r-- | docs/markdown/snippets/build_target_older_name.md | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index ff82164..e43ef57 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -2268,6 +2268,8 @@ A build target is either an [executable](#executable), target, usually only needed if an another target needs to access some generated internal headers of this target +- `name()` *Since 0.54.0*, returns the target name. + ### `configuration` data object diff --git a/docs/markdown/snippets/build_target_older_name.md b/docs/markdown/snippets/build_target_older_name.md new file mode 100644 index 0000000..e9399da --- /dev/null +++ b/docs/markdown/snippets/build_target_older_name.md @@ -0,0 +1,2 @@ +## Added 'name' method +Build target objects (as returned by executable(), library(), ...) now have a name() method. |