9a0c84efa6
* Fix find_package(rocprofiler) in build tree * Move include/rocprofiler to include/rocprofiler-sdk * Update include/CMakeLists.txt - add_subdirectory(rocprofiler-sdk) * Move lib/rocprofiler to lib/rocprofiler-sdk * Move lib/rocprofiler-tool to lib/rocprofiler-sdk-tool * Update lib/CMakeLists.txt - add_subdirectory(rocprofiler-sdk) - add_subdirectory(rocprofiler-sdk-tool) * Update lib/rocprofiler-sdk/CMakeLists.txt * Rename rocprofiler-tool to rocprofiler-sdk-tool * Replace include rocprofiler/ with include rocprofiler-sdk/ * Replace include lib/rocprofiler/ with include lib/rocprofiler-sdk/ * Set VERSION to 0.0.0 and finish install to rocprofiler-sdk * More fixes for rocprofiler -> rocprofiler-sdk - fix issue with rocprofiler-sdk-config.cmake.in - fix counters xml install path * Fix documentation generation * Create rocprofiler_LIB_ROCPROFILER_SDK_DIR for build tree * cmake formatting (cmake-format) (#264) Co-authored-by: jrmadsen <jrmadsen@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
46 строки
1.2 KiB
Bash
Исполняемый файл
46 строки
1.2 KiB
Bash
Исполняемый файл
#!/bin/bash -e
|
|
|
|
message()
|
|
{
|
|
echo -e "\n\n##### ${@}... #####\n"
|
|
}
|
|
|
|
WORK_DIR=$(cd $(dirname ${BASH_SOURCE[0]})/../docs &> /dev/null && pwd)
|
|
SOURCE_DIR=$(cd ${WORK_DIR}/../.. &> /dev/null && pwd)
|
|
|
|
message "Working directory is ${WORK_DIR}"
|
|
message "Source directory is ${SOURCE_DIR}"
|
|
|
|
message "Changing directory to ${SOURCE_DIR}"
|
|
cd ${SOURCE_DIR}
|
|
|
|
message "Configurating cmake..."
|
|
cmake -B build-docs ${SOURCE_DIR} -DROCPROFILER_INTERNAL_BUILD_DOCS=ON
|
|
|
|
message "Changing directory to ${WORK_DIR}"
|
|
cd ${WORK_DIR}
|
|
|
|
message "Generating rocprofiler-sdk.dox"
|
|
cmake -DSOURCE_DIR=${SOURCE_DIR} -P ${WORK_DIR}/generate-doxyfile.cmake
|
|
|
|
message "Generating doxygen xml files"
|
|
doxygen rocprofiler-sdk.dox
|
|
doxygen rocprofiler-sdk.dox
|
|
|
|
message "Running doxysphinx"
|
|
doxysphinx build ${WORK_DIR} ${WORK_DIR}/_build/html ${WORK_DIR}/_doxygen/html
|
|
|
|
message "Building html documentation"
|
|
make html SPHINXOPTS="-W --keep-going -n"
|
|
|
|
if [ -d ${SOURCE_DIR}/docs ]; then
|
|
message "Removing stale documentation in ${SOURCE_DIR}/docs/"
|
|
rm -rf ${SOURCE_DIR}/docs/*
|
|
|
|
message "Adding nojekyll to docs/"
|
|
cp -r ${WORK_DIR}/.nojekyll ${SOURCE_DIR}/docs/.nojekyll
|
|
|
|
message "Copying source/docs/_build/html/* to docs/"
|
|
cp -r ${WORK_DIR}/_build/html/* ${SOURCE_DIR}/docs/
|
|
fi
|