Support documentation build + install + packaging (#369)

* Support documentation build + install + packaging

* Fix NUM_ROCPROFILER_PACKAGING_COMPONENTS check
Этот коммит содержится в:
Jonathan R. Madsen authored and GitHub committed 2024-01-14 08:10:14 -06:00
1 родитель 802e79b113
Коммит 84499b17c6
6 files changed
+87 -411

No files matched your search

+12 -2
Просмотреть файл
@@ -37,11 +37,12 @@ list(REMOVE_ITEM ROCPROFILER_PACKAGING_COMPONENTS "Development" "Unspecified")
list(LENGTH ROCPROFILER_PACKAGING_COMPONENTS NUM_ROCPROFILER_PACKAGING_COMPONENTS)
# the packages we will generate
set(ROCPROFILER_COMPONENT_GROUPS "core" "tests")
set(ROCPROFILER_COMPONENT_GROUPS "core" "tests" "docs")
set(COMPONENT_GROUP_core_COMPONENTS "core" "development" "samples" "tools" "Development"
"Unspecified")
set(COMPONENT_GROUP_tests_COMPONENTS "tests")
set(COMPONENT_GROUP_docs_COMPONENTS "docs")
# variables for each component group. Note: eventually we will probably want to separate
# the core to just be the runtime libraries, development to be the headers and cmake
@@ -52,26 +53,35 @@ set(COMPONENT_NAME_development "dev")
set(COMPONENT_NAME_samples "samples")
set(COMPONENT_NAME_tools "tools")
set(COMPONENT_NAME_tests "tests")
set(COMPONENT_NAME_docs "docs")
set(COMPONENT_SEP_core "")
set(COMPONENT_SEP_development "-")
set(COMPONENT_SEP_samples "-")
set(COMPONENT_SEP_tools "-")
set(COMPONENT_SEP_tests "-")
set(COMPONENT_SEP_docs "-")
set(COMPONENT_DEP_core "")
set(COMPONENT_DEP_development "rocprofiler-sdk")
set(COMPONENT_DEP_samples "rocprofiler-sdk")
set(COMPONENT_DEP_tools "rocprofiler-sdk")
set(COMPONENT_DEP_tests "rocprofiler-sdk")
set(COMPONENT_DEP_docs "")
set(COMPONENT_DESC_core "rocprofiler-sdk libraries, headers, samples, and tools")
set(COMPONENT_DESC_development "rocprofiler-sdk development files")
set(COMPONENT_DESC_samples "rocprofiler-sdk samples")
set(COMPONENT_DESC_tools "rocprofiler-sdk tools")
set(COMPONENT_DESC_tests "rocprofiler-sdk tests")
set(COMPONENT_DESC_docs "rocprofiler-sdk documentation")
if(NOT NUM_ROCPROFILER_PACKAGING_COMPONENTS EQUAL 5)
set(EXPECTED_PACKAGING_COMPONENTS 5)
if(ROCPROFILER_BUILD_DOCS)
set(EXPECTED_PACKAGING_COMPONENTS 6)
endif()
if(NOT NUM_ROCPROFILER_PACKAGING_COMPONENTS EQUAL EXPECTED_PACKAGING_COMPONENTS)
message(
FATAL_ERROR
"Error new install component needs COMPONENT_NAME_* and COMPONENT_SEP_* entries"
+2 -6
Просмотреть файл
@@ -40,12 +40,8 @@ rocprofiler_add_option(ROCPROFILER_BUILD_SAMPLES "Enable building the code sampl
${ROCPROFILER_BUILD_CI})
rocprofiler_add_option(ROCPROFILER_BUILD_CODECOV
"Enable building for code coverage analysis" OFF)
# CLI and FILE plugins are always built
foreach(_PLUGIN "ATT" "CTF" "PERFETTO")
rocprofiler_add_option(ROCPROFILER_BUILD_PLUGIN_${_PLUGIN}
"Enable building the ${_PLUGIN} plugin" ON)
endforeach()
rocprofiler_add_option(ROCPROFILER_BUILD_DOCS
"Enable build + install + packaging documentation" OFF)
rocprofiler_add_option(
ROCPROFILER_BUILD_GHC_FS