generic-poky/meta/classes/pkgconfig_stage.bbclass

10 lines
310 B
Plaintext

SYSROOT_PREPROCESS_FUNCS += "pkgconfig_sysroot_preprocess"
pkgconfig_sysroot_preprocess () {
install -d ${SYSROOT_DESTDIR}${PKG_CONFIG_DIR}
for pc in `find ${S} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do
pcname=`basename $pc`
cat $pc > ${SYSROOT_DESTDIR}${PKG_CONFIG_DIR}/$pcname
done
}