mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 03:00:11 +01:00
util: Always generate u_format_gen.h as docs need it
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36891>
This commit is contained in:
parent
3f3bc4ece5
commit
1f44a470b4
4 changed files with 10 additions and 8 deletions
|
|
@ -227,6 +227,7 @@ graphviz_output_format = 'svg'
|
||||||
|
|
||||||
hawkmoth_root = os.path.abspath(os.pardir)
|
hawkmoth_root = os.path.abspath(os.pardir)
|
||||||
mesa_root = os.path.join(os.path.dirname(__file__), os.pardir)
|
mesa_root = os.path.join(os.path.dirname(__file__), os.pardir)
|
||||||
|
mesa_build_root = os.environ.get('MESA_BUILD_ROOT')
|
||||||
hawkmoth_clang = [
|
hawkmoth_clang = [
|
||||||
'-I{}/docs/header-stubs/'.format(mesa_root),
|
'-I{}/docs/header-stubs/'.format(mesa_root),
|
||||||
'-I{}/include/'.format(mesa_root),
|
'-I{}/include/'.format(mesa_root),
|
||||||
|
|
@ -234,6 +235,7 @@ hawkmoth_clang = [
|
||||||
'-I{}/src/gallium/include/'.format(mesa_root),
|
'-I{}/src/gallium/include/'.format(mesa_root),
|
||||||
'-I{}/src/intel/'.format(mesa_root),
|
'-I{}/src/intel/'.format(mesa_root),
|
||||||
'-I{}/src/mesa/'.format(mesa_root),
|
'-I{}/src/mesa/'.format(mesa_root),
|
||||||
|
'-I{}/src/'.format(mesa_build_root),
|
||||||
'-DHAVE_STRUCT_TIMESPEC',
|
'-DHAVE_STRUCT_TIMESPEC',
|
||||||
'-DHAVE_PTHREAD',
|
'-DHAVE_PTHREAD',
|
||||||
'-DHAVE_ENDIAN_H',
|
'-DHAVE_ENDIAN_H',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,8 @@ deploy-docs:
|
||||||
changes: &docs-or-ci
|
changes: &docs-or-ci
|
||||||
- docs/**/*
|
- docs/**/*
|
||||||
- .gitlab-ci.yml
|
- .gitlab-ci.yml
|
||||||
# All the source files documentation is extracted from
|
- src/util/format/**/*
|
||||||
|
# All the following source files documentation is extracted from
|
||||||
# git grep -h ":file: src/" -- docs | sort | uniq
|
# git grep -h ":file: src/" -- docs | sort | uniq
|
||||||
- src/compiler/nir/nir.h
|
- src/compiler/nir/nir.h
|
||||||
- src/intel/isl/**/*
|
- src/intel/isl/**/*
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
enum pipe_format {
|
|
||||||
PIPE_FORMAT_NONE,
|
|
||||||
};
|
|
||||||
|
|
||||||
enum pipe_video_chroma_format {
|
|
||||||
PIPE_VIDEO_CHROMA_FORMAT_NONE,
|
|
||||||
};
|
|
||||||
|
|
@ -24,6 +24,12 @@ html_docs = custom_target(
|
||||||
'-Ddepfile=@DEPFILE@',
|
'-Ddepfile=@DEPFILE@',
|
||||||
sphinx_args,
|
sphinx_args,
|
||||||
meson.current_source_dir(), '@OUTPUT@'],
|
meson.current_source_dir(), '@OUTPUT@'],
|
||||||
|
env: [
|
||||||
|
'MESA_BUILD_ROOT=' + meson.project_build_root()
|
||||||
|
],
|
||||||
|
depends: [
|
||||||
|
u_format_gen_h,
|
||||||
|
],
|
||||||
output: 'html',
|
output: 'html',
|
||||||
build_by_default: get_option('html-docs').enabled(),
|
build_by_default: get_option('html-docs').enabled(),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue