aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-10-05 09:07:31 -0700
committerChris Larson <chris_larson@mentor.com>2010-10-05 09:22:01 -0700
commit17579c48cd8d71d8f83c0312102562e9735f91f7 (patch)
treef73865598ae8114a1cd77e98a1d497d7e3490182 /classes
parent4847c2dd259c6731518a52949431b7bb2630a0b5 (diff)
downloadopenembedded-17579c48cd8d71d8f83c0312102562e9735f91f7.tar.gz
Adjust rdep/rrec for gtk+* and gtk-icon-cache.bbclass
Drop the runtime dependencies / recommendations unless the recipe is for the target. This is necessary because right now bitbake obeys *_${PN}, even if ${PN} is not in PACKAGES. This should kill the unnecessary build of the crosscompiler when doing 'bitbake gtk+-native'. Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/gtk-icon-cache.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/gtk-icon-cache.bbclass b/classes/gtk-icon-cache.bbclass
index 903680b9d8..2449e954ce 100644
--- a/classes/gtk-icon-cache.bbclass
+++ b/classes/gtk-icon-cache.bbclass
@@ -1,5 +1,6 @@
FILES_${PN} += "${datadir}/icons/hicolor"
-RDEPENDS_${PN} += "hicolor-icon-theme"
+# Only add runtime dependency on hicolor-icon-theme for target recipes
+RDEPENDS_${PN} += "${@['', 'hicolor-icon-theme']['${PN}' == '${BPN}']}"
# This could run on the host as icon cache files are architecture independent,
# but there is no gtk-update-icon-cache built natively.