[gupnp] doc: Fix build using subdirs
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] doc: Fix build using subdirs
- Date: Sat, 12 Mar 2022 16:40:28 +0000 (UTC)
commit 1daf3e26020531291399cb3299ae39f53a354798
Author: Jens Georg <mail jensge org>
Date: Sat Mar 12 17:39:09 2022 +0100
doc: Fix build using subdirs
doc/meson.build | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/doc/meson.build b/doc/meson.build
index 701b845..c227112 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -21,7 +21,13 @@ if get_option('gtk_doc')
configuration: entities
)
- docs_dir = join_paths(get_option('prefix'), get_option('datadir')) / 'doc/gupnp-1.2/reference'
+ docs_dir = join_paths(get_option('prefix'), get_option('datadir')) / 'doc' / GUPNP_API_NAME / 'reference'
+
+ if gssdp_dep.type_name() == 'internal'
+ gssdp_gir_dirs = subproject('gssdp-1.6').get_variable('gssdp_gir_dir')
+ else
+ gssdp_gir_dirs = ''
+ endif
custom_target(
'gupnp-doc',
@@ -32,6 +38,7 @@ if get_option('gtk_doc')
'generate',
'--quiet',
'--add-include-path=@0@'.format(meson.current_build_dir() / '../libgupnp'),
+ '--add-include-path=@0@'.format(gssdp_gir_dirs),
'--config', gupnp_toml,
'--output-dir=@OUTPUT@',
'--no-namespace-dir',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]