mirror of
https://github.com/schnitzeltony/meta-gnome-forks.git
synced 2026-01-29 17:08:42 +01:00
muffin: Make our clients find gir files
Interesting side note: Latest mutter still needs same Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
@@ -32,6 +32,25 @@ do_configure:prepend() {
|
||||
cp ${WORKDIR}/gtk-doc.make ${S}/
|
||||
}
|
||||
|
||||
MUFFIN_API_NAME = "muffin"
|
||||
|
||||
do_install:append() {
|
||||
# Add gir links in standard paths. That makes dependents life much easier
|
||||
# to find them
|
||||
install -d ${D}${datadir}/gir-1.0
|
||||
for gir_full in `find ${D}${libdir}/${MUFFIN_API_NAME} -name '*.gir'`; do
|
||||
gir=`basename "$gir_full"`
|
||||
ln -sr "${D}${libdir}/${MUFFIN_API_NAME}/$gir" "${D}${datadir}/gir-1.0/$gir"
|
||||
done
|
||||
|
||||
# same for typelibs
|
||||
install -d ${D}${libdir}/girepository-1.0
|
||||
for typelib_full in `find ${D}${libdir}/${MUFFIN_API_NAME} -name '*.typelib'`; do
|
||||
typelib=`basename "$typelib_full"`
|
||||
ln -sr "${D}${libdir}/${MUFFIN_API_NAME}/$typelib" "${D}${libdir}/girepository-1.0/$typelib"
|
||||
done
|
||||
}
|
||||
|
||||
export GIR_EXTRA_LIBS_PATH="${B}/cogl/cogl/.libs:${B}/cogl/cogl-pango/.libs:${B}/cogl/cogl-path/.libs:${B}/clutter/clutter/.libs"
|
||||
|
||||
FILES:${PN} += " \
|
||||
|
||||
Reference in New Issue
Block a user