diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2016-09-29 16:20:33 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-10-28 16:15:19 +0100 |
commit | 1ae7b2e8ab33644153e9f3dcc2de9d2d80a8a30f (patch) | |
tree | d280dbfead15a94c715fb3a8955356757f72d116 /meta | |
parent | 671780de49f93ec1cc28f5ad2a7eebe211918b85 (diff) | |
download | poky-1ae7b2e8ab33644153e9f3dcc2de9d2d80a8a30f.tar.gz |
manpages.bbclass: add a class
This class enables 'manpages' feature in packages if 'api-documentation'
is in distro features. This ensures that manpages are always built
and installed when API documentation feature is enabled.
(From OE-Core rev: 1587777f1c54137eb3dacbeb427d2f6814af1713)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/manpages.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/manpages.bbclass b/meta/classes/manpages.bbclass new file mode 100644 index 0000000000..d16237b898 --- /dev/null +++ b/meta/classes/manpages.bbclass | |||
@@ -0,0 +1,5 @@ | |||
1 | # Inherit this class to enable or disable building and installation of manpages | ||
2 | # depending on whether 'api-documentation' is in DISTRO_FEATURES. Such building | ||
3 | # tends to pull in the entire XML stack and other tools, so it's not enabled | ||
4 | # by default. | ||
5 | PACKAGECONFIG_append_class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'manpages', '', d)}" | ||