diff options
author | Jan Rybar <jrybar@redhat.com> | 2020-10-26 17:00:27 +0000 |
---|---|---|
committer | Jan Rybar <jrybar@redhat.com> | 2020-10-26 17:00:27 +0000 |
commit | 957a015157fd359d9679540f664183e4b9492896 (patch) | |
tree | 41e7f5541d01e479e588cd3dd5a1769e1af0127a /data/meson.build | |
parent | ff4c2144f0fb1325275887d9e254117fcd8a1b52 (diff) | |
download | polkit-957a015157fd359d9679540f664183e4b9492896.tar.gz |
build: Port to meson build system
meson is a build system focused on speed an ease of use, which
helps speeding up the software development. This patch adds meson
support along autotools.
Diffstat (limited to 'data/meson.build')
-rw-r--r-- | data/meson.build | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build new file mode 100644 index 0000000..14c100b --- /dev/null +++ b/data/meson.build @@ -0,0 +1,47 @@ +service_conf = {'libprivdir': pk_prefix / pk_pkglibdir} + +configure_file( + input: 'org.freedesktop.PolicyKit1.service.in', + output: '@BASENAME@', + configuration: service_conf, + install: true, + install_dir: dbus_system_bus_services_dir, +) + +configure_file( + input: 'org.freedesktop.PolicyKit1.conf.in', + output: '@BASENAME@', + configuration: {'polkitd_user': polkitd_user}, + install: true, + install_dir: dbus_policydir, +) + +if enable_pam + configure_file( + input: 'polkit-1.in', + output: '@BASENAME@', + configuration: pam_conf, + install: true, + install_dir: pk_sysconfdir / 'pam.d', + ) +endif + +its_data = files( + 'polkit.its', + 'polkit.loc', +) + +install_data( + its_data, + install_dir: pk_datadir / 'gettext/its', +) + +if enable_logind + configure_file( + input: 'polkit.service.in', + output: '@BASENAME@', + configuration: service_conf, + install: true, + install_dir: systemd_systemdsystemunitdir, + ) +endif |