summaryrefslogtreecommitdiff
path: root/policy
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2023-10-16 16:17:40 +0800
committerraveit65 <[email protected]>2023-10-24 09:20:03 +0200
commit9a8cfd772538539776654401d7a1293595405c90 (patch)
tree88d775507986d0f0f3b6eb41f5fd4a86bfa3d85e /policy
parent2561c8ad2c0f4168c6021172095fe40aa789deb7 (diff)
downloadmate-power-manager-9a8cfd772538539776654401d7a1293595405c90.tar.bz2
mate-power-manager-9a8cfd772538539776654401d7a1293595405c90.tar.xz
Add meson build support
Diffstat (limited to 'policy')
-rw-r--r--policy/meson.build15
1 files changed, 15 insertions, 0 deletions
diff --git a/policy/meson.build b/policy/meson.build
new file mode 100644
index 0000000..0c55ae8
--- /dev/null
+++ b/policy/meson.build
@@ -0,0 +1,15 @@
+po_dir = join_paths(meson.source_root(), 'po')
+dataconf = configuration_data()
+dataconf.set('sbindir', matesbindir)
+
+i18n.merge_file(
+ input : configure_file(
+ configuration: dataconf,
+ input : 'org.mate.power.policy.in2',
+ output: 'org.mate.power.policy.in'
+ ),
+ output: 'org.mate.power.policy',
+ po_dir: po_dir,
+ install: true,
+ install_dir: join_paths(get_option('datadir'), 'polkit-1', 'actions'),
+)