mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
docs: Fix gtk-doc build when wayland is disabled
Unconditionally putting 'gdkwayland_inc' in src_dir argument of gtkdoc call tells gtkdoc-scan to scan source files in a non-existent build directory, gdk/wayland. To avoid causing build failure when a specific backend is disabled, we should include directories conditionally.
This commit is contained in:
parent
66e0060836
commit
751c1877b1
@ -87,16 +87,22 @@ images = [
|
|||||||
'images/zoom_out_cursor.png',
|
'images/zoom_out_cursor.png',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
src_dir = [ gdkinc ]
|
||||||
|
|
||||||
|
if x11_enabled
|
||||||
|
src_dir += [ gdkx11_inc ]
|
||||||
|
endif
|
||||||
|
|
||||||
|
if wayland_enabled
|
||||||
|
src_dir += [ gdkwayland_inc ]
|
||||||
|
endif
|
||||||
|
|
||||||
configure_file(input: 'version.xml.in', output: 'version.xml', configuration: version_conf)
|
configure_file(input: 'version.xml.in', output: 'version.xml', configuration: version_conf)
|
||||||
|
|
||||||
gnome.gtkdoc('gdk4',
|
gnome.gtkdoc('gdk4',
|
||||||
mode: 'none',
|
mode: 'none',
|
||||||
main_xml: 'gdk4-docs.xml',
|
main_xml: 'gdk4-docs.xml',
|
||||||
src_dir: [
|
src_dir: src_dir,
|
||||||
gdkinc,
|
|
||||||
gdkx11_inc,
|
|
||||||
gdkwayland_inc,
|
|
||||||
],
|
|
||||||
dependencies: libgtk_dep,
|
dependencies: libgtk_dep,
|
||||||
gobject_typesfile: join_paths(meson.current_source_dir(), 'gdk4.types'),
|
gobject_typesfile: join_paths(meson.current_source_dir(), 'gdk4.types'),
|
||||||
scan_args: [
|
scan_args: [
|
||||||
|
Loading…
Reference in New Issue
Block a user