[dia: 32/105] #19: Generate and install html help.
- From: Zander <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia: 32/105] #19: Generate and install html help.
- Date: Mon, 28 Jan 2019 19:22:01 +0000 (UTC)
commit a15d31134a48e59ed887a35ee24c7e2622c7d254
Author: Eduard Nicodei <eddnicodei gmail com>
Date: Tue Dec 25 22:10:35 2018 +0000
#19: Generate and install html help.
- Also code cleanup: do not assign dia app object as it is
not used anywhere else.
app/meson.build | 2 +-
doc/en/meson.build | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
doc/meson.build | 2 ++
3 files changed, 73 insertions(+), 1 deletion(-)
---
diff --git a/app/meson.build b/app/meson.build
index c053ab0e..7e819bc7 100644
--- a/app/meson.build
+++ b/app/meson.build
@@ -63,7 +63,7 @@ dia_sources = [
'main.c'
]
-dia = executable('dia',
+executable('dia',
dia_sources + [dia_app_icons_h],
dependencies : [libgtk_dep, libxml_dep, libm_dep],
link_with : libdia,
diff --git a/doc/en/meson.build b/doc/en/meson.build
index 836f3077..a385e334 100644
--- a/doc/en/meson.build
+++ b/doc/en/meson.build
@@ -35,6 +35,55 @@ if dblatex.found()
)
endif
+dia_html_output = [
+ 'ch01.html',
+ 'ch01s02.html',
+ 'ch02.html',
+ 'ch02s02.html',
+ 'ch02s03.html',
+ 'ch02s04.html',
+ 'ch02s05.html',
+ 'ch02s06.html',
+ 'ch02s07.html',
+ 'ch03.html',
+ 'ch03s02.html',
+ 'ch03s03.html',
+ 'ch03s04.html',
+ 'ch03s05.html',
+ 'ch03s06.html',
+ 'ch03s07.html',
+ 'ch04.html',
+ 'ch04s02.html',
+ 'ch04s03.html',
+ 'ch04s04.html',
+ 'ch04s05.html',
+ 'ch05.html',
+ 'ch06.html',
+ 'ch07.html',
+ 'ch07s02.html',
+ 'ch07s03.html',
+ 'ch08.html',
+ 'ch08s02.html',
+ 'ch09.html',
+ 'ch10.html',
+ 'ch10s02.html',
+ 'ch10s03.html',
+ 'ch11.html',
+ 'ch11s02.html',
+ 'ch11s03.html',
+ 'ch11s04.html',
+ 'ch11s05.html',
+ 'ch11s06.html',
+ 'ch11s07.html',
+ 'ch11s08.html',
+ 'ch12.html',
+ 'ch12s02.html',
+ 'ch13.html',
+ 'ch14.html',
+ 'index.html',
+ 're01.html',
+]
+
if xsltproc.found()
dia_man = custom_target('dia.1',
output : 'dia.1',
@@ -46,4 +95,25 @@ if xsltproc.found()
# XXX: this should fixed in meson: https://github.com/mesonbuild/meson/issues/1550
#install_data(dia_man)
+ html_dir = join_paths(helpdir, 'en')
+
+ custom_target('dia_html',
+ input : ['html.xsl', 'dia.xml'],
+ command : [xsltproc, '--stringparam', 'graphic.default.extension', 'png', '-o',
join_paths('@OUTDIR@', ''), '@INPUT@'],
+ output : dia_html_output,
+ depend_files : dia_xml_deps,
+ install : true,
+ install_dir : html_dir,
+ )
+
+ install_subdir(
+ 'graphics',
+ install_dir : html_dir
+ )
+
+ install_subdir(
+ join_paths('..', 'html'),
+ install_dir : html_dir,
+ strip_directory : true
+ )
endif
diff --git a/doc/meson.build b/doc/meson.build
index 9a701080..08a6771c 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -3,5 +3,7 @@ xsltproc = find_program('xsltproc')
DB2MAN = 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl'
+helpdir = join_paths(pkgdatadir, 'help')
+
subdir('en')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]