summaryrefslogtreecommitdiff
path: root/extras/CustomTarget_glade.mk
diff options
context:
space:
mode:
authorMathias Hasselmann <mathias@openismus.com>2013-03-14 12:54:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-03-14 13:46:42 +0000
commit0f972e94a2fcbc6b227a2ae7b5d435438f6dbdc1 (patch)
treed0e2bc815ad1956560edf645db8def29b7334fbd /extras/CustomTarget_glade.mk
parentd6e752d5ebfaf66d1c9b0694f9c8582311d6151a (diff)
Show LibreOffice controls in Glade's tool palette
Glade didn't show any LibreOffice controls in its tool palette because the catalog didn't have any glade-widget-group element. This adds a XSLT script to automatically generate such element. A better version of the script would create separate groups for each module/namespace, but currently I have no idea how to do this with libxslt, as it doesn't provide fn::distinct-values(). Change-Id: Iaa3e4b0471b58c48838e000e6d78a73b0c6a4bd3 Reviewed-on: https://gerrit.libreoffice.org/2724 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'extras/CustomTarget_glade.mk')
-rw-r--r--extras/CustomTarget_glade.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/extras/CustomTarget_glade.mk b/extras/CustomTarget_glade.mk
new file mode 100644
index 000000000000..89d452ebe040
--- /dev/null
+++ b/extras/CustomTarget_glade.mk
@@ -0,0 +1,26 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_CustomTarget_CustomTarget,extras/glade))
+
+#
+# Rules
+#
+
+$(call gb_CustomTarget_get_workdir,extras/source/glade)/libreoffice-catalog.xml : \
+ $(SRCDIR)/extras/source/glade/libreoffice-catalog.xml.in \
+ $(SRCDIR)/extras/source/glade/makewidgetgroup.xslt \
+ | $(call gb_ExternalExecutable_get_dependencies,xsltproc)
+ $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),XSLT,4)
+ $(call gb_Helper_abbreviate_dirs, \
+ $(call gb_ExternalExecutable_get_command,xsltproc) --nonet \
+ -o $@ $(SRCDIR)/extras/source/glade/makewidgetgroup.xslt $< \
+ )
+
+# vim: set noet sw=4 ts=4: