[gimp/meson: 92/805] Adding menus
- From: Félix Piédallu <fpiedallu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/meson: 92/805] Adding menus
- Date: Fri, 2 Feb 2018 15:16:49 +0000 (UTC)
commit 16905b5c66e8208a4ecc205a74692af314be7570
Author: Félix Piédallu <felix piedallu me>
Date: Thu Nov 16 17:48:50 2017 +0100
Adding menus
menus/meson.build | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++
meson.build | 2 +-
meson_todo.md | 1 -
3 files changed, 64 insertions(+), 2 deletions(-)
---
diff --git a/menus/meson.build b/menus/meson.build
new file mode 100644
index 0000000..b5a6876
--- /dev/null
+++ b/menus/meson.build
@@ -0,0 +1,63 @@
+
+menu_files = [
+ 'brush-editor-menu.xml',
+ 'brushes-menu.xml',
+ 'buffers-menu.xml',
+ 'channels-menu.xml',
+ 'colormap-menu.xml',
+ 'cursor-info-menu.xml',
+ 'documents-menu.xml',
+ 'dynamics-editor-menu.xml',
+ 'dynamics-menu.xml',
+ 'error-console-menu.xml',
+ 'fonts-menu.xml',
+ 'gradient-editor-menu.xml',
+ 'gradients-menu.xml',
+ 'images-menu.xml',
+ 'layers-menu.xml',
+ 'mypaint-brushes-menu.xml',
+ 'palette-editor-menu.xml',
+ 'palettes-menu.xml',
+ 'patterns-menu.xml',
+ 'quick-mask-menu.xml',
+ 'sample-points-menu.xml',
+ 'selection-menu.xml',
+ 'templates-menu.xml',
+ 'text-editor-toolbar.xml',
+ 'text-tool-menu.xml',
+ 'tool-options-menu.xml',
+ 'tool-preset-editor-menu.xml',
+ 'tool-presets-menu.xml',
+ 'undo-menu.xml',
+ 'vectors-menu.xml',
+]
+
+unstable_menu_args = stable ? [] : [ '--stringparam', 'unstable-menus', 'yes' ]
+
+foreach menu_filegen : [ 'dockable-menu.xml', 'image-menu.xml', ]
+ menu_files += custom_target(menu_filegen,
+ input : [ menu_filegen +'.in', 'menus.xsl', ],
+ output: [ menu_filegen ],
+ command: [
+ xsltproc,
+ '--xinclude',
+ unstable_menu_args,
+ '--output', '@OUTPUT@',
+ '@INPUT1@',
+ '@INPUT0@',
+ ],
+ build_always: true,
+ build_by_default: false,
+ )
+endforeach
+
+custom_target('validate_menus',
+ input : [ menu_files, ],
+ output: [ 'validate_menus', ],
+ command: [
+ xmllint,
+ '--noout',
+ '--path', join_paths(meson.source_root(), meson.current_source_dir()),
+ '@INPUT@',
+ ],
+)
diff --git a/meson.build b/meson.build
index 2705484..60d2e4a 100644
--- a/meson.build
+++ b/meson.build
@@ -813,7 +813,7 @@ subdir('desktop')
subdir('etc')
subdir('icons')
subdir('m4macros')
-# subdir('menus')
+subdir('menus')
subdir('themes')
# Docs
diff --git a/meson_todo.md b/meson_todo.md
index fe9325a..cdc698e 100644
--- a/meson_todo.md
+++ b/meson_todo.md
@@ -27,7 +27,6 @@ Meson Port
* icons
* Legacy
* Symbolic-Inverted
-* menus
* modules
* plug-ins
* common
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]