summaryrefslogtreecommitdiff
path: root/mate-about/meson.build
diff options
context:
space:
mode:
authorMarty E. Plummer <[email protected]>2019-05-21 17:01:18 -0500
committerraveit65 <[email protected]>2019-05-22 10:30:33 +0200
commita30185610beb815648854207cb2a29d0fa9303dc (patch)
tree02b0804e1644da72d6ddb3f2e01facaee0fa81a9 /mate-about/meson.build
parente98858d43feb08d52ba6e1f39532f618b1a2cc01 (diff)
downloadmate-desktop-a30185610beb815648854207cb2a29d0fa9303dc.tar.bz2
mate-desktop-a30185610beb815648854207cb2a29d0fa9303dc.tar.xz
treewide: add meson build
Signed-off-by: Marty E. Plummer <[email protected]>
Diffstat (limited to 'mate-about/meson.build')
-rw-r--r--mate-about/meson.build39
1 files changed, 39 insertions, 0 deletions
diff --git a/mate-about/meson.build b/mate-about/meson.build
new file mode 100644
index 0000000..0ef8318
--- /dev/null
+++ b/mate-about/meson.build
@@ -0,0 +1,39 @@
+date_exe = find_program('date')
+mate_date = run_command(date_exe, '+%Y-%m-%d').stdout().strip()
+
+mate_data = configuration_data()
+
+mate_data.set('MATE_DATE', mate_date)
+mate_data.set('MATE_DATE_COMMENT_START', '<!--')
+mate_data.set('MATE_DATE_COMMENT_END', '-->')
+mate_data.set('MATE_PLATFORM', mate_platform)
+mate_data.set('MATE_MINOR', mate_minor)
+mate_data.set('MATE_MICRO', mate_micro)
+
+executable('mate-about',
+ 'mate-about.c',
+ c_args: [
+ '-DLOCALE_DIR="@0@"'.format(join_paths(get_option('prefix'), get_option('localedir'))),
+ '-DPIXMAPS_DIR="@0@"'.format(join_paths(get_option('prefix'), get_option('datadir'), 'pixmaps')),
+ ],
+ dependencies : gtk_dep,
+ include_directories: top_inc,
+ install: true,
+)
+
+i18n.merge_file(
+ input: 'mate-about.desktop.in',
+ output: 'mate-about.desktop',
+ type: 'desktop',
+ po_dir: '../po',
+ install: true,
+ install_dir: join_paths(get_option('datadir'), 'applications'),
+)
+
+mate_version_xml_in = configure_file(
+ input: 'mate-version.xml.in',
+ output: 'mate-version.xml',
+ configuration: mate_data,
+ install: true,
+ install_dir: join_paths(get_option('datadir'), 'mate-about'),
+)