summaryrefslogtreecommitdiffstats
path: root/sysui/desktop/share/create_tree.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sysui/desktop/share/create_tree.sh')
-rwxr-xr-xsysui/desktop/share/create_tree.sh24
1 files changed, 13 insertions, 11 deletions
diff --git a/sysui/desktop/share/create_tree.sh b/sysui/desktop/share/create_tree.sh
index 45b7c6cb09db..c73b89af3ab5 100755
--- a/sysui/desktop/share/create_tree.sh
+++ b/sysui/desktop/share/create_tree.sh
@@ -88,15 +88,17 @@ for i in base calc draw impress writer; do
done
# Generate gobject-introspection files
-mkdir -p "${DESTDIR}/${PREFIXDIR}/share/gir-1.0"
-g-ir-scanner "${SRCDIR}/include/LibreOfficeKit/LibreOfficeKitGtk.h" "${SRCDIR}/libreofficekit/source/gtk/lokdocview.cxx" \
- `${PKG_CONFIG} --cflags gobject-introspection-1.0 gtk+-3.0` -I"${SRCDIR}/include/" \
- --include=GLib-2.0 --include=GObject-2.0 --include=Gio-2.0 \
- --library=libreofficekitgtk --library-path="${DESTDIR}/${INSTALLDIR}/program" \
- --include=Gdk-3.0 --include=GdkPixbuf-2.0 --include=Gtk-3.0 \
- --namespace=LOKDocView --nsversion=0.1 --identifier-prefix=LOKDoc --symbol-prefix=lok_doc \
- --output="${DESTDIR}/${PREFIXDIR}/share/gir-1.0/LOKDocView-0.1.gir" --warn-all --no-libtool
+if [ -n "$INTROSPECTION_SCANNER" ]; then
+ mkdir -p "${DESTDIR}/${PREFIXDIR}/share/gir-1.0"
+ g-ir-scanner "${SRCDIR}/include/LibreOfficeKit/LibreOfficeKitGtk.h" "${SRCDIR}/libreofficekit/source/gtk/lokdocview.cxx" \
+ `${PKG_CONFIG} --cflags gobject-introspection-1.0 gtk+-3.0` -I"${SRCDIR}/include/" \
+ --include=GLib-2.0 --include=GObject-2.0 --include=Gio-2.0 \
+ --library=libreofficekitgtk --library-path="${DESTDIR}/${INSTALLDIR}/program" \
+ --include=Gdk-3.0 --include=GdkPixbuf-2.0 --include=Gtk-3.0 \
+ --namespace=LOKDocView --nsversion=0.1 --identifier-prefix=LOKDoc --symbol-prefix=lok_doc \
+ --output="${DESTDIR}/${PREFIXDIR}/share/gir-1.0/LOKDocView-0.1.gir" --warn-all --no-libtool
-mkdir -p "${DESTDIR}/${LIBDIR}/girepository-1.0"
-g-ir-compiler "${DESTDIR}/${PREFIXDIR}/share/gir-1.0/LOKDocView-0.1.gir" \
- --output="${DESTDIR}/${LIBDIR}/girepository-1.0/LOKDocView-0.1.typelib"
+ mkdir -p "${DESTDIR}/${LIBDIR}/girepository-1.0"
+ g-ir-compiler "${DESTDIR}/${PREFIXDIR}/share/gir-1.0/LOKDocView-0.1.gir" \
+ --output="${DESTDIR}/${LIBDIR}/girepository-1.0/LOKDocView-0.1.typelib"
+fi