summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-11-03 18:33:43 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2015-11-03 22:11:35 +0200
commit0c6305a01f13f5c09dc4c000d5b250319fffe0e4 (patch)
tree69cece883de7691231a49301625bf4ccde41addb /solenv
parent281be263619a8e513a26e6a9165d1d77cf6524ea (diff)
Support of popupmenu resource type
Reusing the same xml format as the menubar, except that a popup menu use menu:menupopup as the root element. Change-Id: I2987af0dc698b09aeeb757cff828617515bc3009
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/UIConfig.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/solenv/gbuild/UIConfig.mk b/solenv/gbuild/UIConfig.mk
index 2e8e49c946b5..7f814188951e 100644
--- a/solenv/gbuild/UIConfig.mk
+++ b/solenv/gbuild/UIConfig.mk
@@ -418,4 +418,22 @@ $(foreach toolbarfile,$(2),$(call gb_UIConfig_add_toolbarfile,$(1),$(toolbarfile
endef
+# Add popupmenu config file to the package.
+#
+# The file is relative to $(SRCDIR) and without extension.
+#
+# gb_UIConfig_add_popupmenufile target file
+define gb_UIConfig_add_popupmenufile
+$(call gb_UIConfig__add_xmlfile,$(1),$(1),popupmenu,$(2))
+
+endef
+
+# Adds multiple popupmenu config files to the package.
+#
+# gb_UIConfig_add_popupmenufiles target file(s)
+define gb_UIConfig_add_popupmenufiles
+$(foreach popupmenufile,$(2),$(call gb_UIConfig_add_popupmenufile,$(1),$(popupmenufile)))
+
+endef
+
# vim: set noet sw=4 ts=4: