mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
docs: Allow building man pages without the reference documentation
Now that the reference documentation uses gi-docgen, it's more troublesome to generate in less standard build scenarios like cross-compiling. In distributions like Debian, reference documentation is generally packaged separately (in libglib2.0-doc in Debian's case), but man pages are generally packaged alongside the executables themselves (in the libglib2.0-bin and libglib2.0-dev-bin packages, in Debian's case). We can exclude the reference documentation when cross-compiling, but ideally we would like the man pages to still be built, so that a cross-compiled libglib2.0-bin or libglib2.0-dev-bin package has the same content as a native build. Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
parent
38f5ba3c2f
commit
aa28326b87
@ -19,7 +19,8 @@ if get_option('man-pages').enabled()
|
|||||||
endforeach
|
endforeach
|
||||||
endif
|
endif
|
||||||
|
|
||||||
expand_content_files = [
|
if get_option('documentation') and enable_gir
|
||||||
|
expand_content_files = [
|
||||||
'dbus-error.md',
|
'dbus-error.md',
|
||||||
'dbus-introspection.md',
|
'dbus-introspection.md',
|
||||||
'dbus-name-owning.md',
|
'dbus-name-owning.md',
|
||||||
@ -38,11 +39,11 @@ expand_content_files = [
|
|||||||
'pollable-utils.md',
|
'pollable-utils.md',
|
||||||
'tls-overview.md',
|
'tls-overview.md',
|
||||||
'unix-mounts.md',
|
'unix-mounts.md',
|
||||||
]
|
]
|
||||||
|
|
||||||
gio_toml = configure_file(input: 'gio.toml.in', output: 'gio.toml', configuration: toml_conf)
|
gio_toml = configure_file(input: 'gio.toml.in', output: 'gio.toml', configuration: toml_conf)
|
||||||
|
|
||||||
custom_target('gio-docs',
|
custom_target('gio-docs',
|
||||||
input: [ gio_toml, gio_gir[0] ],
|
input: [ gio_toml, gio_gir[0] ],
|
||||||
output: 'gio',
|
output: 'gio',
|
||||||
command: [
|
command: [
|
||||||
@ -59,4 +60,5 @@ custom_target('gio-docs',
|
|||||||
install: true,
|
install: true,
|
||||||
install_dir: docs_dir,
|
install_dir: docs_dir,
|
||||||
install_tag: 'doc',
|
install_tag: 'doc',
|
||||||
)
|
)
|
||||||
|
endif
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
girepository_toml = configure_file(
|
if get_option('documentation') and enable_gir
|
||||||
|
girepository_toml = configure_file(
|
||||||
input: 'girepository.toml.in',
|
input: 'girepository.toml.in',
|
||||||
output: 'girepository.toml',
|
output: 'girepository.toml',
|
||||||
configuration: toml_conf,
|
configuration: toml_conf,
|
||||||
)
|
)
|
||||||
|
|
||||||
custom_target('girepository-docs',
|
custom_target('girepository-docs',
|
||||||
input: [ girepository_toml, girepository_gir[0] ],
|
input: [ girepository_toml, girepository_gir[0] ],
|
||||||
output: 'girepository',
|
output: 'girepository',
|
||||||
command: [
|
command: [
|
||||||
@ -20,4 +21,5 @@ custom_target('girepository-docs',
|
|||||||
'@INPUT1@',
|
'@INPUT1@',
|
||||||
],
|
],
|
||||||
build_by_default: true,
|
build_by_default: true,
|
||||||
)
|
)
|
||||||
|
endif
|
||||||
|
@ -53,7 +53,8 @@ if get_option('documentation')
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
expand_content_files = [
|
if get_option('documentation') and enable_gir
|
||||||
|
expand_content_files = [
|
||||||
'atomic.md',
|
'atomic.md',
|
||||||
'base64.md',
|
'base64.md',
|
||||||
'building.md',
|
'building.md',
|
||||||
@ -95,11 +96,11 @@ expand_content_files = [
|
|||||||
'version.md',
|
'version.md',
|
||||||
'warnings.md',
|
'warnings.md',
|
||||||
'windows.md',
|
'windows.md',
|
||||||
]
|
]
|
||||||
|
|
||||||
glib_toml = configure_file(input: 'glib.toml.in', output: 'glib.toml', configuration: toml_conf)
|
glib_toml = configure_file(input: 'glib.toml.in', output: 'glib.toml', configuration: toml_conf)
|
||||||
|
|
||||||
custom_target('glib-docs',
|
custom_target('glib-docs',
|
||||||
input: [ glib_toml, glib_gir[0] ],
|
input: [ glib_toml, glib_gir[0] ],
|
||||||
output: 'glib',
|
output: 'glib',
|
||||||
command: [
|
command: [
|
||||||
@ -116,4 +117,5 @@ custom_target('glib-docs',
|
|||||||
install: true,
|
install: true,
|
||||||
install_dir: docs_dir,
|
install_dir: docs_dir,
|
||||||
install_tag: 'doc',
|
install_tag: 'doc',
|
||||||
)
|
)
|
||||||
|
endif
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
expand_content_files = [
|
if get_option('documentation') and enable_gir
|
||||||
|
expand_content_files = [
|
||||||
'modules.md',
|
'modules.md',
|
||||||
]
|
]
|
||||||
|
|
||||||
gmodule_toml = configure_file(input: 'gmodule.toml.in', output: 'gmodule.toml', configuration: toml_conf)
|
gmodule_toml = configure_file(input: 'gmodule.toml.in', output: 'gmodule.toml', configuration: toml_conf)
|
||||||
|
|
||||||
custom_target('gmodule-docs',
|
custom_target('gmodule-docs',
|
||||||
input: [ gmodule_toml, gmodule_gir[0] ],
|
input: [ gmodule_toml, gmodule_gir[0] ],
|
||||||
output: 'gmodule',
|
output: 'gmodule',
|
||||||
command: [
|
command: [
|
||||||
@ -21,4 +22,5 @@ custom_target('gmodule-docs',
|
|||||||
install: true,
|
install: true,
|
||||||
install_dir: docs_dir,
|
install_dir: docs_dir,
|
||||||
install_tag: 'doc',
|
install_tag: 'doc',
|
||||||
)
|
)
|
||||||
|
endif
|
||||||
|
@ -17,7 +17,8 @@ if get_option('man-pages').enabled()
|
|||||||
endforeach
|
endforeach
|
||||||
endif
|
endif
|
||||||
|
|
||||||
expand_content_files = [
|
if get_option('documentation') and enable_gir
|
||||||
|
expand_content_files = [
|
||||||
'boxed.md',
|
'boxed.md',
|
||||||
'concepts.md',
|
'concepts.md',
|
||||||
'enum-types.md',
|
'enum-types.md',
|
||||||
@ -27,11 +28,11 @@ expand_content_files = [
|
|||||||
'types.md',
|
'types.md',
|
||||||
'signals.md',
|
'signals.md',
|
||||||
'value-collection.md',
|
'value-collection.md',
|
||||||
]
|
]
|
||||||
|
|
||||||
gobject_toml = configure_file(input: 'gobject.toml.in', output: 'gobject.toml', configuration: toml_conf)
|
gobject_toml = configure_file(input: 'gobject.toml.in', output: 'gobject.toml', configuration: toml_conf)
|
||||||
|
|
||||||
custom_target('gobject-docs',
|
custom_target('gobject-docs',
|
||||||
input: [ gobject_toml, gobject_gir[0] ],
|
input: [ gobject_toml, gobject_gir[0] ],
|
||||||
output: 'gobject',
|
output: 'gobject',
|
||||||
command: [
|
command: [
|
||||||
@ -48,4 +49,5 @@ custom_target('gobject-docs',
|
|||||||
install: true,
|
install: true,
|
||||||
install_dir: docs_dir,
|
install_dir: docs_dir,
|
||||||
install_tag: 'doc',
|
install_tag: 'doc',
|
||||||
)
|
)
|
||||||
|
endif
|
||||||
|
@ -16,10 +16,10 @@ if get_option('documentation') and enable_gir
|
|||||||
]
|
]
|
||||||
|
|
||||||
docs_dir = glib_datadir / 'doc' / 'glib-2.0'
|
docs_dir = glib_datadir / 'doc' / 'glib-2.0'
|
||||||
|
|
||||||
subdir('glib')
|
|
||||||
subdir('gmodule')
|
|
||||||
subdir('gobject')
|
|
||||||
subdir('gio')
|
|
||||||
subdir('girepository')
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
subdir('glib')
|
||||||
|
subdir('gmodule')
|
||||||
|
subdir('gobject')
|
||||||
|
subdir('gio')
|
||||||
|
subdir('girepository')
|
||||||
|
Loading…
Reference in New Issue
Block a user