Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to meson build system #338

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Meson Project: some optimizations
 * data/meson.build: remove redundant configuration data
 * meson_options.txt: use `deprecated` as option name to match Gnome
   Guidelines.
vaurelios committed Aug 22, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 82903410af2a328a314594e40d9a720361932c2c
19 changes: 6 additions & 13 deletions data/meson.build
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
preferences_desktop_data = configuration_data()
preferences_desktop_data.set('VERSION', meson.project_version())
common_desktop_data = configuration_data()
common_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
configuration: common_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
configuration: common_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
configuration: common_desktop_data
)

mpm_service_data = configuration_data()
@@ -81,8 +75,7 @@ install_man(
'mate-power-backlight-helper.1',
'mate-power-statistics.1',
'mate-power-preferences.1'
],
install_dir: mandir_path
]
)

install_data(
2 changes: 1 addition & 1 deletion meson_options.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
option('enable-deprecated', type: 'boolean', value: false, description: 'Warn about deprecated usages')
option('deprecated', type: 'boolean', value: false, description: 'Warn about deprecated usages')
option('keyring', type: 'feature', value: 'auto', description: 'Enable the use of gnome-keyring')
option('applets', type: 'feature', value: 'enabled', description: 'Build the extra power applets')
option('with-dbus-services', type: 'string', description: 'where D-BUS services directory is')