2024-09-24 18:10:06 +00:00
|
|
|
internal_api_sources = [
|
|
|
|
'src/libcmd',
|
|
|
|
'src/libexpr',
|
|
|
|
'src/libexpr/flake',
|
|
|
|
'tests/unit/libexpr',
|
|
|
|
'tests/unit/libexpr/value',
|
|
|
|
'tests/unit/libexpr/test',
|
|
|
|
'tests/unit/libexpr/test/value',
|
|
|
|
'src/libexpr/value',
|
|
|
|
'src/libfetchers',
|
|
|
|
'src/libmain',
|
|
|
|
'src/libstore',
|
|
|
|
'src/libstore/build',
|
|
|
|
'src/libstore/builtins',
|
|
|
|
'tests/unit/libstore',
|
|
|
|
'tests/unit/libstore/test',
|
|
|
|
'src/libutil',
|
|
|
|
'tests/unit/libutil',
|
|
|
|
'tests/unit/libutil/test',
|
|
|
|
'src/nix',
|
|
|
|
'src/nix-env',
|
|
|
|
'src/nix-store',
|
|
|
|
]
|
|
|
|
|
|
|
|
# We feed Doxygen absolute paths so it can be invoked from any working directory.
|
|
|
|
internal_api_sources_absolute = []
|
|
|
|
foreach src : internal_api_sources
|
|
|
|
internal_api_sources_absolute += '"' + (meson.project_source_root() / src) + '"'
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
internal_api_sources_oneline = ' \\\n '.join(internal_api_sources_absolute)
|
|
|
|
|
2024-04-11 18:17:19 +00:00
|
|
|
doxygen_cfg = configure_file(
|
|
|
|
input : 'doxygen.cfg.in',
|
|
|
|
output : 'doxygen.cfg',
|
|
|
|
configuration : {
|
|
|
|
'PACKAGE_VERSION': meson.project_version(),
|
|
|
|
'RAPIDCHECK_HEADERS': rapidcheck_meson.get_variable('includedir'),
|
|
|
|
'docdir' : meson.current_build_dir(),
|
2024-09-24 18:10:06 +00:00
|
|
|
'INPUT_PATHS' : internal_api_sources_oneline,
|
|
|
|
'PROJECT_SOURCE_ROOT' : meson.project_source_root(),
|
2024-04-11 18:17:19 +00:00
|
|
|
},
|
|
|
|
)
|
|
|
|
|
|
|
|
internal_api_docs = custom_target(
|
|
|
|
'internal-api-docs',
|
|
|
|
command : [
|
2024-09-24 18:10:06 +00:00
|
|
|
doxygen.full_path(),
|
|
|
|
'@INPUT0@',
|
2024-04-11 18:17:19 +00:00
|
|
|
],
|
|
|
|
input : [
|
|
|
|
doxygen_cfg,
|
|
|
|
],
|
|
|
|
output : 'html',
|
|
|
|
install : true,
|
|
|
|
install_dir : datadir / 'doc/nix/internal-api',
|
2024-05-21 02:54:00 +00:00
|
|
|
build_always_stale : true,
|
2024-04-11 18:17:19 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
alias_target('internal-api-html', internal_api_docs)
|