summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/meson.build12
-rw-r--r--meson.build11
2 files changed, 12 insertions, 11 deletions
diff --git a/data/meson.build b/data/meson.build
index feb1c1e..6ff3c1f 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -1 +1,13 @@
+i18n = import('i18n')
+
+appdatadir = join_paths(datadir, 'metainfo')
+appdata_file = 'org.gnome.font-viewer.appdata.xml'
+i18n.merge_file(appdata_file,
+ input: appdata_file + '.in',
+ output: appdata_file,
+ po_dir: '../po',
+ install: true,
+ install_dir: appdatadir
+)
+
subdir('icons')
diff --git a/meson.build b/meson.build
index 3b72ccc..5d47590 100644
--- a/meson.build
+++ b/meson.build
@@ -7,7 +7,6 @@ project('gnome-font-viewer', 'c',
cc = meson.get_compiler('c')
gnome = import('gnome')
-i18n = import('i18n')
prefix = get_option('prefix')
@@ -18,7 +17,6 @@ localedir = join_paths(prefix, get_option('localedir'))
pkgdatadir = join_paths(datadir, meson.project_name())
-appdatadir = join_paths(datadir, 'metainfo')
desktopdir = join_paths(datadir, 'applications')
servicesdir = join_paths(datadir, 'dbus-1', 'services')
thumbnailerdir = join_paths(datadir, 'thumbnailers')
@@ -43,15 +41,6 @@ configure_file(output: 'config.h', configuration: config_h)
root_inc = include_directories('.')
-appdata_file = 'org.gnome.font-viewer.appdata.xml'
-i18n.merge_file(appdata_file,
- input: 'data/' + appdata_file + '.in',
- output: appdata_file,
- po_dir: 'po',
- install: true,
- install_dir: appdatadir
-)
-
subdir('src')
subdir('po')
subdir('data')