summaryrefslogtreecommitdiff
path: root/third_party/aom/docs.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/aom/docs.cmake')
-rw-r--r--third_party/aom/docs.cmake13
1 files changed, 7 insertions, 6 deletions
diff --git a/third_party/aom/docs.cmake b/third_party/aom/docs.cmake
index d6c5c26c9..7fc75635a 100644
--- a/third_party/aom/docs.cmake
+++ b/third_party/aom/docs.cmake
@@ -54,7 +54,7 @@ if (CONFIG_AV1_DECODER)
if (CONFIG_ANALYZER)
set(AOM_DOXYGEN_EXAMPLE_SOURCES
${AOM_DOXYGEN_EXAMPLE_SOURCES}
- "${AOM_ROOT}examples/analyzer.cc")
+ "${AOM_ROOT}/examples/analyzer.cc")
set(AOM_DOXYGEN_EXAMPLE_DESCRIPTIONS
${AOM_DOXYGEN_EXAMPLE_DESCRIPTIONS}
@@ -202,10 +202,9 @@ reference. The following utilities are included:
set(AOM_DOXYGEN_SOURCES ${AOM_DOXYGEN_SOURCES} ${samples_dox})
# Generate libaom's doxyfile.
- file(COPY "${AOM_ROOT}/${AOM_DOXYGEN_CONFIG_TEMPLATE}"
- DESTINATION "${AOM_CONFIG_DIR}")
- file(RENAME
- "${AOM_CONFIG_DIR}/${AOM_DOXYGEN_CONFIG_TEMPLATE}" "${AOM_DOXYFILE}")
+ file(WRITE "${AOM_DOXYFILE}" "##\n## GENERATED FILE. DO NOT EDIT\n##\n")
+ file(READ "${AOM_ROOT}/${AOM_DOXYGEN_CONFIG_TEMPLATE}" doxygen_template_data)
+ file(APPEND "${AOM_DOXYFILE}" ${doxygen_template_data})
file(APPEND "${AOM_DOXYFILE}"
"EXAMPLE_PATH += ${AOM_ROOT} ${AOM_ROOT}/examples\n")
file(APPEND
@@ -221,8 +220,10 @@ reference. The following utilities are included:
COMMAND "${DOXYGEN_EXECUTABLE}" "${AOM_DOXYFILE}"
DEPENDS "${AOM_DOXYFILE}" ${AOM_DOXYGEN_SOURCES}
${AOM_DOXYGEN_EXAMPLE_SOURCES}
+ "${AOM_DOXYGEN_CONFIG_TEMPLATE}"
SOURCES "${AOM_DOXYFILE}" ${AOM_DOXYGEN_SOURCES}
- ${AOM_DOXYGEN_EXAMPLE_SOURCES})
+ ${AOM_DOXYGEN_EXAMPLE_SOURCES}
+ "${AOM_DOXYGEN_CONFIG_TEMPLATE}")
endfunction ()
endif () # AOM_DOCS_CMAKE_