summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--policy/meson.build23
1 files changed, 6 insertions, 17 deletions
diff --git a/policy/meson.build b/policy/meson.build
index 9fa328e70..dfeed1731 100644
--- a/policy/meson.build
+++ b/policy/meson.build
@@ -1,21 +1,10 @@
-intltool_merge = find_program('intltool-merge')
-custom_target(
- 'org.freedesktop.packagekit.policy',
+install_data('org.freedesktop.packagekit.rules',
+ install_dir : join_paths(get_option('datadir'), 'polkit-1', 'rules.d'))
+i18n.merge_file(
input: 'org.freedesktop.packagekit.policy.in',
output: 'org.freedesktop.packagekit.policy',
- command: [
- intltool_merge,
- '--xml-style',
- '--utf8',
- join_paths(meson.source_root(), 'po'),
- '@INPUT@',
- '@OUTPUT@',
- ],
install: true,
- install_dir: join_paths(get_option('datadir'), 'polkit-1', 'actions')
-)
-
-install_data(
- 'org.freedesktop.packagekit.rules',
- install_dir: join_paths(get_option('datadir'), 'polkit-1', 'rules.d')
+ install_dir: join_paths(get_option('datadir'), 'polkit-1', 'actions') ,
+ type: 'xml',
+ po_dir: join_paths(meson.source_root(), 'po')
)