From d5e498eacbd3ec8c144e302d3ee0309d437d6e5f Mon Sep 17 00:00:00 2001 From: Xiaotian Wu Date: Sun, 8 Jan 2023 11:51:53 +0800 Subject: 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. --- util/meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 util/meson.build (limited to 'util') diff --git a/util/meson.build b/util/meson.build new file mode 100644 index 0000000..d735321 --- /dev/null +++ b/util/meson.build @@ -0,0 +1,10 @@ +t = executable('mate-menu-spec-test', + sources : 'test-menu-spec.c', + dependencies : libmate_menu_deps, + install : false, +) + +test('mate-menu-testing', t) + +install_data('mate-menus-ls.py', install_dir : pkgdatadir / 'examples') + -- cgit v1.2.1