1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
# Copyright 2022 Collabora Ltd.
# SPDX-License-Identifier: MIT
doc_sources = files(
'API_CHANGES.txt',
'conf.py',
'dbus.bus.rst',
'dbus.connection.rst',
'dbus.decorators.rst',
'dbus.exceptions.rst',
'dbus.gi_service.rst',
'dbus.glib.rst',
'dbus.gobject_service.rst',
'dbus.lowlevel.rst',
'dbus.mainloop.rst',
'dbus.proxies.rst',
'dbus.rst',
'dbus.server.rst',
'dbus.service.rst',
'dbus.types.rst',
'index.rst',
'news.rst',
'PY3PORT.txt',
'tutorial.txt',
)
sphinx = custom_target(
'sphinx',
command: [
py.full_path(),
'-m', 'sphinx',
'-b', 'html',
meson.current_source_dir(),
'@OUTPUT@',
],
depends: [
dbus_bindings,
dbus_glib_bindings,
],
input: python_sources + doc_sources,
output: 'html',
build_by_default: true,
install: true,
install_dir: get_option('datadir') / 'doc' / meson.project_name(),
)
custom_target(
'maintainer-update-website',
command: [
'env',
'--chdir', '@BUILD_ROOT@',
files('maintainer-update-website.sh'),
],
depends: [sphinx],
output: '_uploaded',
)
|