summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2021-12-17 16:24:39 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2021-12-17 16:24:39 +0800
commit02590a5fc1df6b503f8dd90d77084686f6609d7b (patch)
tree02ab82eccc5f2f36c6b070b595eb1fbe816f1806 /docs
parent37f22bb80ebacd834f1927e6acd7fd94aeaf1270 (diff)
downloadpango-02590a5fc1df6b503f8dd90d77084686f6609d7b.tar.gz
docs: Don't build pangoot bits if not enableddoc-no-pangoot
PangoOT is actually a part of PangoFT2, so don't attempt to build its docs if FontConfig is not found.
Diffstat (limited to 'docs')
-rw-r--r--docs/meson.build46
1 files changed, 23 insertions, 23 deletions
diff --git a/docs/meson.build b/docs/meson.build
index 2471f09e..100deb39 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -159,31 +159,31 @@ if cairo_dep.found()
)
endif
-pangoot_toml = configure_file(input: 'pangoot.toml.in',
- output: 'pangoot.toml',
- configuration: doc_conf)
+if fontconfig_dep.found()
+ pangoot_toml = configure_file(input: 'pangoot.toml.in',
+ output: 'pangoot.toml',
+ configuration: doc_conf)
-custom_target('pangoot-doc',
- input: pangoot_gir[0],
- output: 'PangoOT',
- command: [
- gidocgen,
- 'generate',
- '--quiet',
- '--add-include-path=@0@'.format(meson.current_build_dir() / '../pango'),
- '--config', pangoot_toml,
- '--output-dir=@OUTPUT@',
- '--no-namespace-dir',
- '--content-dir=@0@'.format(meson.current_source_dir()),
- '@INPUT@',
- ],
- depend_files: [ pangoot_toml, 'pango-name.png' ],
- build_by_default: true,
- install: true,
- install_dir: docs_dir,
-)
+ custom_target('pangoot-doc',
+ input: pangoot_gir[0],
+ output: 'PangoOT',
+ command: [
+ gidocgen,
+ 'generate',
+ '--quiet',
+ '--add-include-path=@0@'.format(meson.current_build_dir() / '../pango'),
+ '--config', pangoot_toml,
+ '--output-dir=@OUTPUT@',
+ '--no-namespace-dir',
+ '--content-dir=@0@'.format(meson.current_source_dir()),
+ '@INPUT@',
+ ],
+ depend_files: [ pangoot_toml, 'pango-name.png' ],
+ build_by_default: true,
+ install: true,
+ install_dir: docs_dir,
+ )
-if fontconfig_dep.found()
pangofc_toml = configure_file(input: 'pangofc.toml.in',
output: 'pangofc.toml',
configuration: doc_conf)