xref: /OK3568_Linux_fs/yocto/poky/meta/classes/texinfo.bbclass (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# This class is inherited by recipes whose upstream packages invoke the
2*4882a593Smuzhiyun# texinfo utilities at build-time. Native and cross recipes are made to use the
3*4882a593Smuzhiyun# dummy scripts provided by texinfo-dummy-native, for improved performance.
4*4882a593Smuzhiyun# Target architecture recipes use the genuine Texinfo utilities. By default,
5*4882a593Smuzhiyun# they use the Texinfo utilities on the host system. If you want to use the
6*4882a593Smuzhiyun# Texinfo recipe, you can remove texinfo-native from ASSUME_PROVIDED and
7*4882a593Smuzhiyun# makeinfo from SANITY_REQUIRED_UTILITIES.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunTEXDEP = "${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'texinfo-replacement-native', 'texinfo-dummy-native', d)}"
10*4882a593SmuzhiyunTEXDEP:class-native = "texinfo-dummy-native"
11*4882a593SmuzhiyunTEXDEP:class-cross = "texinfo-dummy-native"
12*4882a593SmuzhiyunTEXDEP:class-crosssdk = "texinfo-dummy-native"
13*4882a593SmuzhiyunTEXDEP:class-cross-canadian = "texinfo-dummy-native"
14*4882a593SmuzhiyunDEPENDS:append = " ${TEXDEP}"
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun# libtool-cross doesn't inherit cross
17*4882a593SmuzhiyunTEXDEP:pn-libtool-cross = "texinfo-dummy-native"
18*4882a593Smuzhiyun
19