mirror of
https://github.com/siemens-mobile-hacks/doxygen.git
synced 2026-11-25 22:27:34 +00:00
Dependency between examples.
When building the `tag` example a prerequisite is that the `example` example has been build (as the `tag` example needs the `example.tag` file, so we have first generate the `example` example before building the `tag` example). An explicit dependency structure for relations between examples has been defined. (based on the problem as reported in the proposed patch: delete TAGFILE for build error: #9387 )
This commit is contained in:
parent
886349348a
commit
c4e30d6e6f
1 changed files with 22 additions and 3 deletions
|
|
@ -17,6 +17,9 @@ foreach (f ${EXAMPLE_FILES})
|
|||
list(APPEND OUT_EXAMPLE_FILES "${PROJECT_BINARY_DIR}/examples/${f}")
|
||||
endforeach()
|
||||
|
||||
# tag example, this example depends on the example example (here the required tag file is generated).
|
||||
set(DEP_EXAMPLES tag:cpp@example)
|
||||
|
||||
set(BASIC_EXAMPLES
|
||||
class:h
|
||||
define:h
|
||||
|
|
@ -36,7 +39,6 @@ set(BASIC_EXAMPLES
|
|||
jdstyle:cpp
|
||||
autolink:cpp
|
||||
restypedef:cpp
|
||||
tag:cpp
|
||||
group:cpp
|
||||
memgrp:cpp
|
||||
templ:cpp
|
||||
|
|
@ -47,9 +49,26 @@ set(BASIC_EXAMPLES
|
|||
mux:vhdl
|
||||
)
|
||||
|
||||
foreach (f_inp ${BASIC_EXAMPLES})
|
||||
string(REGEX REPLACE ".*:" "" f_ext ${f_inp})
|
||||
foreach (f_inp ${DEP_EXAMPLES})
|
||||
string(REGEX REPLACE ":.*" "" f ${f_inp})
|
||||
string(REGEX REPLACE ".*:" "" f_ext ${f_inp})
|
||||
string(REGEX REPLACE "@.*" "" f_ext ${f_ext})
|
||||
string(REGEX REPLACE ".*@" "" f_dep ${f_inp})
|
||||
|
||||
add_custom_command(
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_BINARY_DIR}/html/examples/${f}
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_BINARY_DIR}/latex/examples/${f}
|
||||
COMMAND ${EXECUTABLE_OUTPUT_PATH}/doxygen ${f}.cfg
|
||||
COMMAND ${PYTHON_EXECUTABLE} ${TOP}/examples/strip_example.py < ${PROJECT_BINARY_DIR}/latex/examples/${f}/latex/refman.tex > ${PROJECT_BINARY_DIR}/latex/examples/${f}/latex/refman_doc.tex
|
||||
DEPENDS doxygen ${f}.${f_ext} ${f}.cfg ${TOP}/examples/strip_example.py ${PROJECT_BINARY_DIR}/html/examples/${f_dep}/html/index.html
|
||||
OUTPUT ${PROJECT_BINARY_DIR}/html/examples/${f}/html/index.html ${PROJECT_BINARY_DIR}/latex/examples/${f}/latex/refman_doc.tex
|
||||
)
|
||||
set(EXAMPLES_RES ${EXAMPLES_RES} "" ${PROJECT_BINARY_DIR}/html/examples/${f}/html/index.html)
|
||||
endforeach()
|
||||
|
||||
foreach (f_inp ${BASIC_EXAMPLES})
|
||||
string(REGEX REPLACE ":.*" "" f ${f_inp})
|
||||
string(REGEX REPLACE ".*:" "" f_ext ${f_inp})
|
||||
add_custom_command(
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_BINARY_DIR}/html/examples/${f}
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_BINARY_DIR}/latex/examples/${f}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue