diff options
author | zhuyaliang <[email protected]> | 2023-07-21 11:05:03 +0800 |
---|---|---|
committer | zhuyaliang <[email protected]> | 2023-07-21 11:05:03 +0800 |
commit | 6b49a8c0d49deae5d079a342b4843f8dcb856410 (patch) | |
tree | 38b635fadad4ecb7deaebf46329e6b18a73836c2 /mate-window-picker-applet | |
parent | d39bd997538bcae87637a8f98f67296bd622b3e5 (diff) | |
download | mate-netbook-meson.tar.bz2 mate-netbook-meson.tar.xz |
Add meson compilation supportmeson
Diffstat (limited to 'mate-window-picker-applet')
-rw-r--r-- | mate-window-picker-applet/meson.build | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/mate-window-picker-applet/meson.build b/mate-window-picker-applet/meson.build new file mode 100644 index 0000000..d138a2c --- /dev/null +++ b/mate-window-picker-applet/meson.build @@ -0,0 +1,62 @@ +po_dir = join_paths(meson.source_root(), 'po') + +applet_sources = [ + 'applet.c', + 'task-item.c', + 'task-list.c', + 'task-title.c', +] + +executable('mate-window-picker-applet', applet_sources, + include_directories: config_inc, + dependencies: netbook_deps, + install_dir: privexecdir, + install: true) + +# .service files + +service_data = configuration_data() +service_data.set('LOCATION', join_paths(prefix, get_option('libexecdir'), 'mate-window-picker-applet')) + +configure_file( + input : 'org.mate.panel.applet.MateWindowPickerFactory.service.in', + output : 'org.mate.panel.applet.MateWindowPickerFactory.service', + configuration : service_data, + install : true, + install_dir : join_paths(datadir, 'dbus-1/services') +) + +# .gschema file + +schema_data = configuration_data() +schema_data.set('GETTEXT_PACKAGE', meson.project_name()) +configure_file( + input : 'org.mate.panel.applet.mate-window-picker-applet.gschema.xml.in', + output : 'org.mate.panel.applet.mate-window-picker-applet.gschema.xml', + configuration : schema_data, + install : true, + install_dir : join_paths(datadir, 'glib-2.0', 'schemas') +) + +# .desktop file + +desktop_data = configuration_data() +desktop_data.set('LOCATION', join_paths(prefix, get_option('libexecdir'), 'mate-window-picker-applet')) +desktop_in_file = configure_file( + input : 'org.mate.panel.MateWindowPicker.mate-panel-applet.desktop.in.in', + output : 'org.mate.panel.MateWindowPicker.mate-panel-applet.desktop.in', + configuration : desktop_data +) + +i18n.merge_file( + input : desktop_in_file, + output : 'org.mate.panel.MateWindowPicker.mate-panel-applet.desktop', + type : 'desktop', + po_dir : po_dir, + install : true, + install_dir : join_paths(matedir, 'applets') +) + +install_data('mate-window-picker-applet-menu.xml', + install_dir : join_paths(matedir, 'ui') +) |