CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
65 lines
1.6 KiB
Meson
65 lines
1.6 KiB
Meson
get_option('html-docs').require(
|
|
run_command(prog_python, '-c',
|
|
'''
|
|
try:
|
|
from packaging.version import Version
|
|
except:
|
|
from distutils.version import StrictVersion as Version
|
|
import hawkmoth
|
|
assert Version(hawkmoth.__version__) >= Version("0.16.0")
|
|
''', check: false).returncode() == 0,
|
|
error_message: 'hawkmoth >= 0.16.0 required'
|
|
)
|
|
|
|
sphinx_args = []
|
|
if get_option('werror')
|
|
sphinx_args += '-W'
|
|
endif
|
|
|
|
radv_drirc_rst = custom_target(
|
|
'radv_drirc_rst',
|
|
input : [
|
|
join_paths(dir_source_root, 'src/amd/vulkan/radv_drirc_gen.py'),
|
|
drirc_gen,
|
|
join_paths(dir_source_root, 'src/amd/vulkan/00-radv-defaults.conf'),
|
|
],
|
|
output : 'radv_drirc.rst',
|
|
command : [
|
|
prog_python, '@INPUT0@',
|
|
'--import-path', join_paths(dir_source_root, 'src/util'),
|
|
'--rst', '@OUTPUT@',
|
|
'--validate', '@INPUT2@',
|
|
],
|
|
)
|
|
|
|
html_docs = custom_target(
|
|
'html',
|
|
depfile: 'docs.d',
|
|
depend_files: files('conf.py'),
|
|
command: [sphinx, '-b', 'html', '-q',
|
|
'-Ddepfile=@DEPFILE@',
|
|
sphinx_args,
|
|
meson.current_source_dir(), '@OUTPUT@'],
|
|
env: [
|
|
'MESA_BUILD_ROOT=' + meson.project_build_root()
|
|
],
|
|
depends: [
|
|
u_format_gen_h,
|
|
radv_drirc_rst,
|
|
],
|
|
output: 'html',
|
|
build_by_default: get_option('html-docs').enabled(),
|
|
)
|
|
|
|
html_docs_path = get_option('html-docs-path')
|
|
if html_docs_path == ''
|
|
html_docs_path = join_paths(get_option('datadir'), 'doc', 'mesa')
|
|
endif
|
|
|
|
install_subdir(html_docs.full_path(),
|
|
install_dir: html_docs_path,
|
|
exclude_files: ['.buildinfo'],
|
|
exclude_directories: ['.doctrees'],
|
|
strip_directory: true
|
|
)
|