2020-07-23 15:19:35 +02:00
|
|
|
# Graphics / `nxwm` NxWM / Doxygen
|
2012-03-22 22:22:59 +01:00
|
|
|
|
|
|
|
This directory contains the documentation automatically generated by Doxygen.
|
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
## Contents
|
2012-03-22 22:22:59 +01:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
- Installing the necessary packages in Ubuntu
|
|
|
|
- Generating documentation
|
|
|
|
- References
|
2012-03-22 22:22:59 +01:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
## Installing the necessary packages in Ubuntu
|
2012-03-22 22:22:59 +01:00
|
|
|
|
|
|
|
1. Install the following packages.
|
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
```bash
|
|
|
|
$ sudo aptitude install doxygen doxygen-doc doxygen-gui dot2tex graphviz
|
|
|
|
```
|
2012-03-22 22:22:59 +01:00
|
|
|
|
2012-03-27 17:01:22 +02:00
|
|
|
2. (Optional) Install Doxygen from the latest sourcode.
|
2012-03-22 22:22:59 +01:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
The Ubuntu package is outdated. The newer the version of Doxygen, the better
|
|
|
|
the documentation looks.
|
2012-03-22 22:22:59 +01:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
Place yourself in some temporary folder where you can download the source,
|
|
|
|
and run [1]:
|
2012-03-22 22:22:59 +01:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
```bash
|
|
|
|
$ svn co https://doxygen.svn.sourceforge.net/svnroot/doxygen/trunk doxygen-svn
|
|
|
|
$ cd doxygen-svn
|
|
|
|
$ ./configure
|
|
|
|
$ make
|
|
|
|
$ make install
|
|
|
|
```
|
2012-03-22 22:22:59 +01:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
## Generating documentation
|
2012-03-22 22:22:59 +01:00
|
|
|
|
2012-03-27 17:01:22 +02:00
|
|
|
Two ways described here:
|
2012-03-22 22:22:59 +01:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
1. Use the provided `gendoc.sh` script.
|
2012-03-27 17:01:22 +02:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
```bash
|
|
|
|
trunk/NXWidgets/Doxygen/gendoc.sh
|
|
|
|
```
|
2012-03-27 17:01:22 +02:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
The script only needs the argument to the absolute path where to place the
|
|
|
|
generated documentation. I.e.:
|
2012-03-27 17:01:22 +02:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
```bash
|
|
|
|
$ cd /path/to/nuttx/trunk/NXWidgets/Doxygen/
|
|
|
|
$ mkdir doc
|
|
|
|
$ ./gendoc.sh $PWD/doc
|
|
|
|
```
|
2012-03-27 17:01:22 +02:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
2. Using the `Doxyfile` directly:
|
2012-03-27 17:01:22 +02:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
The file `Doxyfile` contains the configuration of the Doxygen settings for
|
|
|
|
the run, edit only if necessary.
|
2012-03-22 22:22:59 +01:00
|
|
|
|
|
|
|
To generate the documentation type:
|
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
```bash
|
|
|
|
$ cd /path/to/nuttx/trunk/NXWidgets/Doxygen/
|
|
|
|
$ doxygen Doxyfile
|
|
|
|
```
|
2012-03-27 17:01:22 +02:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
## References
|
2012-03-27 17:01:22 +02:00
|
|
|
|
|
|
|
[1] http://www.stack.nl/~dimitri/doxygen/download.html
|