Skip to content

Commit

Permalink
Merge pull request #2065 from skliper/fix2064-doxygen_common_use
Browse files Browse the repository at this point in the history
Fix #2064, Use osal-common.doxygen to resolve OSAL Doxygen refs
  • Loading branch information
astrogeco committed Mar 16, 2022
2 parents 4438f72 + 0a9e232 commit 848912c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
- name: Build Usersguide
run: |
make usersguide > make_usersguide_stdout.txt 2> make_usersguide_stderr.txt
mv build/docs/cfe-usersguide-warnings.log usersguide_warnings.log
mv build/docs/users_guide/cfe-usersguide-warnings.log cfe-usersguide-warnings.log
- name: Archive Users Guide Build Logs
uses: actions/upload-artifact@v2
Expand All @@ -131,7 +131,7 @@ jobs:
path: |
make_usersguide_stdout.txt
make_usersguide_stderr.txt
usersguide_warnings.log
cfe-usersguide-warnings.log
- name: Error Check
run: |
Expand All @@ -142,7 +142,7 @@ jobs:
- name: Warning Check
run: |
if [[ -s usersguide_warnings.log ]]; then
cat usersguide_warnings.log
if [[ -s cfe-usersguide-warnings.log ]]; then
cat cfe-usersguide-warnings.log
exit -1
fi
8 changes: 5 additions & 3 deletions cmake/cfe-usersguide.doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
# Allow overrides
@INCLUDE_PATH = @MISSION_SOURCE_DIR@

# Common configuration and default settings
# Common setup
@INCLUDE = @MISSION_BINARY_DIR@/docs/cfe-common.doxyfile
@INCLUDE = @MISSION_SOURCE_DIR@/osal/docs/src/default-settings.doxyfile

# Include osal to resolve references and provide default settings
@INCLUDE = @MISSION_BINARY_DIR@/docs/osal-common.doxyfile

# Document specific settings
PROJECT_NAME = "Core Flight Executive Users Guide"
OUTPUT_DIRECTORY = @CMAKE_BINARY_DIR@/docs/users_guide
WARN_LOGFILE = @CMAKE_BINARY_DIR@/docs/cfe-usersguide-warnings.log
WARN_LOGFILE = @CMAKE_BINARY_DIR@/docs/users_guide/cfe-usersguide-warnings.log

# For purposes of the user guide, reference the "stock" mission configuration
# Although missions may override these files, for the users guide we are mainly
Expand Down
1 change: 0 additions & 1 deletion cmake/mission-detaildesign.doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

# Common configuration and default settings
@INCLUDE = @MISSION_BINARY_DIR@/docs/cfe-common.doxyfile
@INCLUDE = @MISSION_SOURCE_DIR@/osal/docs/src/default-settings.doxyfile

# Example detailed design setup
PROJECT_NAME = "@MISSION_NAME@"
Expand Down
2 changes: 0 additions & 2 deletions cmake/mission_build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,13 @@ function(prepare)
# NOTE: the userguide is built against the headers of the default core apps. Even if
# an alternate version of the module is in use, it should adhere to the same interface.
set(SUBMODULE_HEADER_PATHS
"${osal_MISSION_DIR}/src/os/inc/*.h"
"${psp_MISSION_DIR}/psp/fsw/inc/*.h"
)
foreach(MODULE core_api ${MISSION_CORE_MODULES})
list(APPEND SUBMODULE_HEADER_PATHS "${${MODULE}_MISSION_DIR}/fsw/inc/*.h")
endforeach()
file(GLOB MISSION_USERGUIDE_HEADERFILES
${SUBMODULE_HEADER_PATHS}
"${CMAKE_BINARY_DIR}/docs/osconfig-example.h"
)

string(REPLACE ";" " \\\n" MISSION_USERGUIDE_HEADERFILES "${MISSION_USERGUIDE_HEADERFILES}")
Expand Down

0 comments on commit 848912c

Please sign in to comment.