about summary refs log tree commit diff
path: root/src/libnmc-setting/meson.build
diff options
context:
space:
mode:
authorJeremy Bicha <jeremy.bicha@canonical.com>2022-08-18 08:31:29 -0400
committerJeremy Bicha <jeremy.bicha@canonical.com>2022-08-18 08:31:29 -0400
commitb0887dd4d035acc0d84aa859748d36891548eaaf (patch)
treec4dc0dae50954f3c8fb600aa9e7cfaabeb80deb0 /src/libnmc-setting/meson.build
parent1a62dcfdc0470be37743914da69fe0b0677c6bfb (diff)
parent4741f1a52215c7ba466140912084d6906185bef3 (diff)
Merge branch 'debian/master' into ubuntu/master
Diffstat (limited to 'src/libnmc-setting/meson.build')
-rw-r--r--src/libnmc-setting/meson.build8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libnmc-setting/meson.build b/src/libnmc-setting/meson.build
index 8f07ae63..49314cad 100644
--- a/src/libnmc-setting/meson.build
+++ b/src/libnmc-setting/meson.build
@@ -1,6 +1,7 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
 if enable_docs
+  assert(enable_introspection, '-Ddocs=true requires -Dintrospection=true')
   settings_docs_input_xml = custom_target(
     'settings-docs-input.xml',
     input: [nm_settings_docs_xml_gir, nm_property_infos_xml['nmcli']],
@@ -18,7 +19,12 @@ if enable_docs
     'settings-docs.h',
     input: settings_docs_input_xml,
     output: 'settings-docs.h',
-    command: [xsltproc, '--output', '@OUTPUT@', join_paths(meson.current_source_dir(), 'settings-docs.xsl'), '@INPUT@'],
+    command: [
+      python.path(),
+      join_paths(meson.source_root(), 'tools', 'generate-docs-settings-docs.py'),
+      '--output', '@OUTPUT@',
+      '--xml', '@INPUT@'
+    ],
   )
 
   test(