diff options
author | Xiaotian Wu <[email protected]> | 2023-01-08 11:51:53 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-09-02 17:12:19 +0200 |
commit | d5e498eacbd3ec8c144e302d3ee0309d437d6e5f (patch) | |
tree | 28bfd57eaac5375b12af29a53f8007011e2fe5a7 /desktop-directories | |
parent | 5e3658eb0b2428a49b47d56300fec73f74f70f4f (diff) | |
download | mate-menus-d5e498eacbd3ec8c144e302d3ee0309d437d6e5f.tar.bz2 mate-menus-d5e498eacbd3ec8c144e302d3ee0309d437d6e5f.tar.xz |
add meson build system
After switching to meson, calling the `g-ir-scanner` command with the
`--warn-all` parameter in the generated `build.ninja` file will display these warnings:
```
Warning: MateMenu: symbol="DesktopEntryType": unknown namespace for identifier "DesktopEntryType"
Warning: MateMenu: symbol='desktop_entry_new': Unknown namespace for symbol 'desktop_entry_new'
Warning: MateMenu: symbol='EntryDirectory': Unknown namespace for identifier 'EntryDirectory'
```
The reason for these warnings is that we use `MateMenu` as `identifier_prefix`
and `matemenu` as `symbol_prefix`, but the symbols that report warnings do not
start with these prefixes.
Diffstat (limited to 'desktop-directories')
-rw-r--r-- | desktop-directories/meson.build | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/desktop-directories/meson.build b/desktop-directories/meson.build new file mode 100644 index 0000000..1121fe1 --- /dev/null +++ b/desktop-directories/meson.build @@ -0,0 +1,40 @@ +desktop_files = [ +# Should be moved to mate-control-center: + 'mate-hardware.directory', + 'mate-internet-and-network.directory', + 'mate-look-and-feel.directory', + 'mate-personal.directory', + 'mate-system.directory', + + 'mate-audio-video.directory', + 'mate-development.directory', + 'mate-education.directory', + 'mate-game.directory', + 'mate-graphics.directory', + 'mate-network.directory', + 'mate-office.directory', + 'mate-settings.directory', + 'mate-settings-system.directory', + 'mate-system-tools.directory', + 'mate-utility.directory', + 'mate-utility-accessibility.directory', + 'mate-other.directory', + 'mate-menu-applications.directory', + 'mate-menu-system.directory', + 'mate-collection.directory', +] + +foreach f : desktop_files + desktop_file = i18n.merge_file( + input: '@[email protected]'.format(f), + output: f, + type: 'desktop', + po_dir: join_paths(srcdir, 'po'), + install: true, + install_dir: join_paths( + datadir, + 'mate', + 'desktop-directories', + ) + ) +endforeach |