From 7fb6beed01bc1a59438b8b2a9b34b2dba296e553 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sun, 1 Sep 2024 08:00:00 +0000 Subject: meson: build Linux-PAM using meson On my non-representative hardware, the full build using autotools (./autogen.sh && CFLAGS=-O2 ./configure && make -j`nproc` && make -j`nproc` install) takes about 45 seconds. On the same hardware, the full build using meson (meson setup -Doptimization=2 dir && meson compile -C dir && meson install -C dir) takes just about 7.5 seconds. --- doc/guide-html-meson.build | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 doc/guide-html-meson.build (limited to 'doc/guide-html-meson.build') diff --git a/doc/guide-html-meson.build b/doc/guide-html-meson.build new file mode 100644 index 00000000..e5c90812 --- /dev/null +++ b/doc/guide-html-meson.build @@ -0,0 +1,32 @@ +# -*- mode: meson -*- + +html = custom_target( + input: xml, + output: name + '.html', + command: [ + prog_xsltproc, + '--nonet', + '--xinclude', + '--stringparam', 'base.dir', meson.current_build_dir(), + '--stringparam', 'root.filename', name, + '--stringparam', 'use.id.as.filename', '1', + '--stringparam', 'chunk.first.sections', '1', + '--stringparam', 'section.autolabel', '1', + '--stringparam', 'section.label.includes.component.label', '1', + '--stringparam', 'toc.max.depth', toc_max_depth, + '--stringparam', 'chunker.output.encoding', 'UTF-8', + html_stylesheet, + '@INPUT@', + ], + install: true, + install_dir: htmldir, + install_tag: 'doc', +) + +meson.add_install_script( + install_html, + meson.current_build_dir(), + htmldir, + html, + install_tag: 'doc', +) -- cgit v1.2.3