How to cross-reference existing doxigenic documents?

I have two C ++ projects A and B; Dependence only from B to A.

B  --> A

I would like to separately run Doxygen on A and B respectively, but still let me make a possible cross reference to A from B doc. (That is, when I look at document B, I can refer directly to document A if there is any class from A used in B).

-

[Answer from 0x4b:] If I installed "CREATE_SUBDIRS" with YES and used the relative path for the tag files, Doxygen somehow makes the wrong link.

I made the following example.

 <root>
    +- proj
    |   +- html               HTML output directory for proj   
    |       +- d1
    |       |   +- d2
    |       |       .... (*.html)
    |       | 
    |         ...(*.html)
    |   +- src                sources for proj
    +- ext1
    |   +- html               HTML output directory for ext1
    |   |- ext1.tag           tag file for ext1
    |- proj.cfg               doxygen configuration file for proj
    |- ext1.cfg               doxygen configuration file for ext1

proj.cfg:
OUTPUT_DIRECTORY  = proj
INPUT             = proj/src
TAGFILES          = ext1/ext1.tag=../../ext1/html

ext1.cfg:
OUTPUT_DIRECTORY  = ext1
GENERATE_TAGFILE  = ext1/ext1.tag 

Documents are under html/and html/d1/d2would like to try linking an external document located at ../../ext1/html. Apparently, one of them will fail.

+3
1

, tagfile. A, , GENERATE_TAGFILE. B, TAGFILES A.

[ ]

Doxygen , [] . , . , .

TAGFILES          = ext1/ext1.tag=$(PWD)/../ext1/html

. , Doxyfile , doxygen, .

+4

Source: https://habr.com/ru/post/1777487/


All Articles