summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2021-02-13 12:48:06 -0800
committerJordan Justen <jordan.l.justen@intel.com>2021-02-25 13:28:58 -0800
commit2307abfd11dea348dffb13b5f76b3c9141140c0a (patch)
tree83970a5ea69fffb6b73899bf4c42f11663cbec50 /doc
parent482d1c7bedfa1c4f1c1a8207321507989cdcb555 (diff)
crucible: Add meson build support
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/meson.build51
1 files changed, 51 insertions, 0 deletions
diff --git a/doc/meson.build b/doc/meson.build
new file mode 100644
index 0000000..4df5d8f
--- /dev/null
+++ b/doc/meson.build
@@ -0,0 +1,51 @@
+# Copyright © 2021 Intel Corporation
+
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+
+man_sources = [
+ 'crucible-bootstrap.1.txt',
+ 'crucible-dump-image.1.txt',
+ 'crucible-help.1.txt',
+ 'crucible-tutorial.7.txt',
+ 'crucible-ls-tests.1.txt',
+ 'crucible-run.1.txt',
+ 'crucible-version.1.txt',
+]
+
+a2x = find_program('a2x')
+
+txt_to_man = generator(
+ a2x,
+ output : '@BASENAME@',
+ arguments : ['--format', 'manpage', '-D', '@BUILD_DIR@', '@INPUT@'],
+)
+
+man_pages = []
+
+foreach a : man_sources
+ dst = a.substring(0, -4)
+ man_page = custom_target(
+ dst,
+ input : a,
+ output : dst,
+ command : [a2x, '--format', 'manpage', '-D', '@OUTDIR@', '@INPUT@'],
+ )
+
+ man_pages += man_page
+endforeach