summaryrefslogtreecommitdiff
path: root/capplets/time-admin
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/time-admin')
-rw-r--r--capplets/time-admin/data/meson.build15
-rw-r--r--capplets/time-admin/meson.build2
-rw-r--r--capplets/time-admin/src/meson.build29
3 files changed, 46 insertions, 0 deletions
diff --git a/capplets/time-admin/data/meson.build b/capplets/time-admin/data/meson.build
new file mode 100644
index 00000000..28645e14
--- /dev/null
+++ b/capplets/time-admin/data/meson.build
@@ -0,0 +1,15 @@
+desktop = 'mate-time-admin.desktop'
+
+i18n.merge_file(
+ type: 'desktop',
+ input: desktop + '.in',
+ output: desktop,
+ po_dir: po_dir,
+ install: true,
+ install_dir: mcc_desktopdir
+)
+
+install_subdir(
+ 'map',
+ install_dir: join_paths(mcc_datadir, 'mate-time-admin')
+)
diff --git a/capplets/time-admin/meson.build b/capplets/time-admin/meson.build
new file mode 100644
index 00000000..f1503770
--- /dev/null
+++ b/capplets/time-admin/meson.build
@@ -0,0 +1,2 @@
+subdir('src')
+subdir('data')
diff --git a/capplets/time-admin/src/meson.build b/capplets/time-admin/src/meson.build
new file mode 100644
index 00000000..59247248
--- /dev/null
+++ b/capplets/time-admin/src/meson.build
@@ -0,0 +1,29 @@
+sources = files(
+ 'main.c',
+ 'time-map.c',
+ 'time-share.c',
+ 'time-tool.c',
+ 'time-zone.c'
+)
+
+sources += gnome.compile_resources(
+ 'mate-time-admin-resources',
+ 'org.mate.mcc.ta.gresource.xml',
+ c_name: 'time_admin',
+ export: true
+)
+
+cflags += [
+ '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir),
+ '-DTIMPZONEDIR="@0@"'.format(mcc_timezonedir),
+]
+
+executable(
+ 'mate-time-admin',
+ sources : sources,
+ include_directories: config_inc,
+ dependencies : [common_deps, libcommon_dep, polkit_dep, m_dep],
+ c_args : cflags,
+ install : true,
+ install_dir : get_option('bindir')
+)