diff options
author | Victor A. Santos <[email protected]> | 2020-03-30 18:54:42 -0300 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-09-03 13:19:35 +0200 |
commit | 1db4b409322e559a3d3a03677dd482a0613f3b29 (patch) | |
tree | 5b7f03980579416d78135db46287799eb0a6a0ba /applets/inhibit/meson.build | |
parent | 301549e96d34a3b79fa471aaff5402689bf5868f (diff) | |
download | mate-power-manager-1db4b409322e559a3d3a03677dd482a0613f3b29.tar.bz2 mate-power-manager-1db4b409322e559a3d3a03677dd482a0613f3b29.tar.xz |
add meson project
fix indentation in some files
Diffstat (limited to 'applets/inhibit/meson.build')
-rw-r--r-- | applets/inhibit/meson.build | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/applets/inhibit/meson.build b/applets/inhibit/meson.build new file mode 100644 index 0000000..ed807df --- /dev/null +++ b/applets/inhibit/meson.build @@ -0,0 +1,58 @@ +conf_data = configuration_data() +conf_data.set('version', meson.project_version()) +conf_data.set('sysconfdir', sysconfdir_path) +conf_data.set('datadir', datadir_path) +conf_data.set('bindir', bindir_path) +conf_data.set('sbindir', sbindir_path) +conf_data.set('localedir', localedir_path) +conf_data.set('iconsdir', iconsdir_path) +conf_data.set('uidir', uidir_path) +conf_data.set('gettext_package', meson.project_name()) + +configure_file(input: 'config.h.in', output: 'config.h', configuration: conf_data) + +executable( + 'mate-inhibit-applet', + [ + 'inhibit-applet.c', + 'gpm-common.c', + ], + dependencies: dependencies, + install: true, + install_dir: libexecdir_path +) + +desktop_data = configuration_data() +desktop_data.set('LIBEXECDIR', libexecdir_path) +desktop_data.set('VERSION', meson.project_version()) + +desktop_in = configure_file( + input: 'org.mate.InhibitApplet.mate-panel-applet.desktop.in.in', + output: 'org.mate.InhibitApplet.mate-panel-applet.desktop.in', + configuration: desktop_data +) + +i18n.merge_file( + input: desktop_in, + output: 'org.mate.InhibitApplet.mate-panel-applet.desktop', + type: 'desktop', + po_dir: podir, + install: true, + install_dir: appletdir_path, +) + +service_data = configuration_data() +service_data.set('LIBEXECDIR', libexecdir_path) + +service_file = configure_file( + input: 'org.mate.panel.applet.InhibitAppletFactory.service.in', + output: 'org.mate.panel.applet.InhibitAppletFactory.service', + configuration: service_data, + install: true, + install_dir: servicedir_path +) + +install_data( + ['inhibit-applet-menu.xml'], + install_dir: uidir_path +) |