pango.inc: limit ptest specific do_compile_prepend to target builds

(From OE-Core rev: 9f099609d0c62877cc89599f5669bb81b209423b)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Andre McCurdy 2016-01-29 14:08:48 -08:00 committed by Richard Purdie
parent c1273d4402
commit 70efb8d661
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ LEAD_SONAME = "libpango-1.0*"
LIBV = "1.8.0"
# This binary needs to be compiled for the host architecture. This isn't pretty!
do_compile_prepend () {
do_compile_prepend_class-target () {
if ${@base_contains('DISTRO_FEATURES', 'ptest', 'true', 'false', d)}; then
make CC="${BUILD_CC}" CFLAGS="" AM_CPPFLAGS="$(pkg-config-native --cflags glib-2.0)" gen_all_unicode_LDADD="$(pkg-config-native --libs glib-2.0)" -C ${B}/tests gen-all-unicode
fi