Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Add documentation generation option to customer project file

Add documentation generation option to customer project file

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 474 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    ovasyura
    wrote on last edited by
    #1

    Hello,

    What is correct way to add documentation generation to customer Qt project?
    I have created correct project.qdocconf file and can create correct documentation using qdoc and qhelpgenerator tools.
    But how can I add these tools to project.pro file that it will be included in generated make files?
    I see that Qt uses QMAKE_DOCS option in Qt project files. I tried and it like
    QMAKE_DOCS = $$PWD/project.qdocconf but unfortunately it didn't help.

    Is there correct way to add generation of documentation to build process?

    Thank you.
    Oleh.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      qdoc is an internal documentation tool of Qt and is not recommended to be used outside. Use doxygen instead (it has the same comment syntax as qdoc, so you won't need to rewrite anything).

      Is there correct way to add generation of documentation to build process?

      I think building it each time you build your app is a big overhead. Consider if you really want qdoc or doxygen to parse your whole code base and regenerate all html files each time you add even a single line to the code.

      Anyway, something like this should work:

      # Assuming your doxygen configuration file is called "project.doxyconfig"
      QMAKE_POST_LINK = doxygen project.doxyconfig
      

      (Z(:^

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved