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 /data/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 'data/meson.build')
-rw-r--r-- | data/meson.build | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build new file mode 100644 index 0000000..ad34149 --- /dev/null +++ b/data/meson.build @@ -0,0 +1,93 @@ +preferences_desktop_data = configuration_data() +preferences_desktop_data.set('VERSION', meson.project_version()) + +preferences_desktop = configure_file( + input: 'mate-power-preferences.desktop.in.in', + output: 'mate-power-preferences.desktop.in', + configuration: preferences_desktop_data +) + +statistics_desktop_data = configuration_data() +statistics_desktop_data.set('VERSION', meson.project_version()) + +statistics_desktop = configure_file( + input: 'mate-power-statistics.desktop.in.in', + output: 'mate-power-statistics.desktop.in', + configuration: statistics_desktop_data +) + +mpm_autostart_data = configuration_data() +mpm_autostart_data.set('VERSION', meson.project_version()) + +mpm_autostart = configure_file( + input: 'mate-power-manager.desktop.in.in', + output: 'mate-power-manager.desktop.in', + configuration: mpm_autostart_data +) + +mpm_service_data = configuration_data() +mpm_service_data.set('servicedir', servicedir_path) + +mpm_service = configure_file( + input: 'org.mate.PowerManager.service.in', + output: 'org.mate.PowerManager.service', + configuration: mpm_service_data, + install: true, + install_dir: servicedir_path +) + +mpm_gsettings_schema_data = configuration_data() +mpm_gsettings_schema_data.set('GETTEXT_PACKAGE', meson.project_name()) + +mpm_gsettings_schema = configure_file( + input: 'org.mate.power-manager.gschema.xml.in', + output: 'org.mate.power-manager.gschema.xml', + configuration: mpm_gsettings_schema_data, + install: true, + install_dir: join_paths(datadir_path, 'glib-2.0', 'schemas') +) +meson.add_install_script('meson_post_install.py') + +i18n.merge_file( + input: preferences_desktop, + output: 'mate-power-preferences.desktop', + type: 'desktop', + po_dir: podir, + install: true, + install_dir: desktopdir_path +) + +i18n.merge_file( + input: statistics_desktop, + output: 'mate-power-statistics.desktop', + type: 'desktop', + po_dir: podir, + install: true, + install_dir: desktopdir_path +) + +i18n.merge_file( + input: mpm_autostart, + output: 'mate-power-manager.desktop', + type: 'desktop', + po_dir: podir, + install: true, + install_dir: join_paths(sysconfdir_path, 'xdg', 'autostart') +) + +install_man( + [ + 'mate-power-manager.1', + 'mate-power-backlight-helper.1', + 'mate-power-statistics.1', + 'mate-power-preferences.1' + ], + install_dir: mandir_path +) + +install_data( + ['acme.ui'], + install_dir: pkgdatadir_path +) + +subdir('icons') |