summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMartin Blanchard <martin.blanchard@codethink.co.uk>2018-03-13 09:27:14 +0000
committerMartin Blanchard <tchaik@gmx.com>2018-09-03 22:43:15 +0100
commit36cac1db2806a6f50baaec01469f710061b42910 (patch)
tree46d0264e5a49697ad4d25ba479383d295aa41b5d /tools
parent54a1bd6142d367b18a36d1ba96705840042747be (diff)
downloadyelp-tools-36cac1db2806a6f50baaec01469f710061b42910.tar.gz
build: Port to meson build system
The meson is a build system focused on speed an ease of use, which helps speeding up the software development. https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting https://gitlab.gnome.org/GNOME/yelp-tools/issues/17 https://bugzilla.gnome.org/show_bug.cgi?id=794279
Diffstat (limited to 'tools')
-rw-r--r--tools/meson.build68
1 files changed, 68 insertions, 0 deletions
diff --git a/tools/meson.build b/tools/meson.build
new file mode 100644
index 0000000..16d9c80
--- /dev/null
+++ b/tools/meson.build
@@ -0,0 +1,68 @@
+yelp_tools_in = configuration_data()
+yelp_tools_in.set('DATADIR', pkgdir)
+
+yelp_tools_in.set('YELP_XSLT_DIR', yelp_xslt_dir)
+yelp_tools_in.set('YELP_TMPL_DIR', join_paths(yelp_templates_dir, '')) # Hack for trailing '/'
+yelp_tools_in.set('YELP_JS_DIR', yelp_js_dir)
+yelp_tools_in.set('YELP_ICON_DIR', yelp_icons_dir)
+
+yelp_tools_in.set('XSL_DB2HTML', yelp_db2html_path)
+yelp_tools_in.set('XSL_DB2XHTML', yelp_db2xhtml_path)
+yelp_tools_in.set('XSL_MAL2HTML', yelp_mal2html_path)
+yelp_tools_in.set('XSL_MAL2XHTML', yelp_mal2xhtml_path)
+
+yelp_tools_in.set('XSL_MAL_CACHE', join_paths(
+ yelp_xslt_dir,
+ 'mallard',
+ 'cache',
+ 'mal-cache.xsl',
+ )
+)
+
+yelp_tools_in.set('XSL_MAL_LINK', join_paths(
+ yelp_xslt_dir,
+ 'mallard',
+ 'common',
+ 'mal-link.xsl',
+ )
+)
+
+yelp_tools_in.set('ID', '@ID@')
+yelp_tools_in.set('DATE', '@DATE@')
+yelp_tools_in.set('YEAR', '@YEAR@')
+yelp_tools_in.set('NAME', '@NAME@')
+yelp_tools_in.set('EMAIL', '@EMAIL@')
+yelp_tools_in.set('TITLE', '@TITLE@')
+
+configure_file(
+ input: 'yelp-build.in',
+ output: 'yelp-build',
+ configuration: yelp_tools_in,
+ install: true,
+ install_dir: bindir,
+)
+
+configure_file(
+ input: 'yelp-check.in',
+ output: 'yelp-check',
+ configuration: yelp_tools_in,
+ install: true,
+ install_dir: bindir,
+)
+
+configure_file(
+ input: 'yelp-new.in',
+ output: 'yelp-new',
+ configuration: yelp_tools_in,
+ install: true,
+ install_dir: bindir,
+)
+
+if get_option('autotools') == true
+ install_data(
+ 'yelp.m4',
+ install_dir: join_paths(
+ autoconfdatadir,
+ )
+ )
+endif \ No newline at end of file