From a46f0a620228f9acfbf2340d6d9a2d58229720aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Wed, 4 Mar 2020 13:03:47 +0100 Subject: 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. --- docs/markdown/Reference-manual.md | 2 ++ docs/markdown/snippets/build_target_older_name.md | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 docs/markdown/snippets/build_target_older_name.md (limited to 'docs/markdown') 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. -- cgit v1.1