[pango/doc-no-pangoot] docs: Don't build pangoot bits if not enabled




commit 02590a5fc1df6b503f8dd90d77084686f6609d7b
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Dec 17 16:24:39 2021 +0800

    docs: Don't build pangoot bits if not enabled
    
    PangoOT is actually a part of PangoFT2, so don't attempt to build its docs if
    FontConfig is not found.

 docs/meson.build | 46 +++++++++++++++++++++++-----------------------
 1 file 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]