Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

### Changed
* Renamed `hipFileOpStatusError()` to `hipFileGetOpErrorString()`
* The `hipfile-doc` CMake target no longer exists (just use `doc`)
* The `doc` CMake target only exists if the `AIS_BUILD_DOCS` option is enabled

### Removed
* The rocFile library has been completely removed and the code is now a part of hipFile.
Expand Down
9 changes: 1 addition & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ option(AIS_BUILD_EXAMPLES "Build example programs" ON)
#------
# docs
#------
option(AIS_BUILD_DOCS "Build the hipFile docs (requires Doxygen)" OFF)
include(AISDocumentation)

#-----------------------------------------------------------------------------
# Find important packages for building the software
Expand Down Expand Up @@ -260,13 +260,6 @@ if(AIS_BUILD_EXAMPLES)
add_subdirectory(examples/aiscp)
endif()

#-----------------------------------------------------------------------------
# Configure docs
#-----------------------------------------------------------------------------
if(AIS_BUILD_DOCS)
add_subdirectory(docs)
endif()

#-----------------------------------------------------------------------------
# Set up installs (must come AFTER target creation)
#-----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ want a pdf, run `make pdf` in the `latex` directory, which will
create a file named refman.pdf that you can rename.

If you want to build the docs without compiling the libraries,
you can just build the `doc` target:
you can just build the `doc` target (if you've set `AIS_BUILD_DOCS`):

`cmake --build . --target doc`
40 changes: 40 additions & 0 deletions cmake/AISDocumentation.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright (c) Advanced Micro Devices, Inc. All rights reserved.
#
# SPDX-License-Identifier: MIT

#-----------------------------------------------------------------------------
# Option to build the hipFile documentation
#
# TODO: Consider turning this into two options, one of which just requires
# Doxygen and produces API docs, the other produces Sphinx/Breathe
# output
#-----------------------------------------------------------------------------
option(AIS_BUILD_DOCS "Build the hipFile docs (requires Doxygen, Sphinx, and Breathe)" OFF)

if(AIS_BUILD_DOCS)
find_package(Doxygen REQUIRED)

# Set Doxygen input (pasted into Doxyfile.in)
set(AIS_DOXYFILE_INPUT "${CMAKE_SOURCE_DIR}/include")

# Set the path to the documentation
set(AIS_DOC_PATH "${CMAKE_CURRENT_BINARY_DIR}/docs")

# Set the Doxyfile install location
set(AIS_DOXYFILE ${AIS_DOC_PATH}/Doxyfile)

# Create the Doxyfile from the input file
configure_file("docs/Doxyfile.in" ${AIS_DOXYFILE})

# Set the output directory
set(DOXYGEN_OUT ${AIS_DOC_PATH})

# Configure the documentation build
add_custom_target("doc"
COMMAND ${DOXYGEN_EXECUTABLE} ${AIS_DOXYFILE}
WORKING_DIRECTORY ${AIS_DOC_PATH}
COMMENT "Generating hipFile API documentation with Doxygen"
VERBATIM
)

endif()
54 changes: 0 additions & 54 deletions docs/CMakeLists.txt

This file was deleted.

4 changes: 2 additions & 2 deletions docs/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ DOXYFILE_ENCODING = UTF-8
# title of most generated pages and in a few other places.
# The default value is: My Project.

PROJECT_NAME = "@AIS_DOXYFILE_PROJECT_NAME@"
PROJECT_NAME = "hipFile"

# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
Expand All @@ -54,7 +54,7 @@ PROJECT_NUMBER = @AIS_LIBRARY_VERSION@
# for a project that appears at the top of each page and should give viewer a
# quick idea about the purpose of the project. Keep the description short.

PROJECT_BRIEF = @AIS_DOXYFILE_PROJECT_BRIEF@
PROJECT_BRIEF = "hipFile API documentation"

# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
# in the documentation. The maximum height of the logo should not exceed 55
Expand Down
Loading