cppdep performs dependency analysis among components/packages/package groups of a large C/C++ project. This is a rewrite of dep_utils(adep/cdep/ldep), which is provided by John Lakos’ book “Large-Scale C++ Software Design”, Addison Wesley (1996).
Limitations
Indirect extern declarations of global variables or functions instead of including the proper component header with the declarations.
Embedded dynamic dependencies, such as dynamic loading and configurable internal services.
Preprocessing or macro expansion is not performed. Dependency inclusion via preprocessor meta-programming is not handled.
Dependency exclusion with C style multi-line comments or macros is not respected.
Requirements
Python 2.7 or 3.4+
pydot
pydotplus
PyYAML
PyKwalify 1.6.0+
The dependencies can be installed with pip.
$ sudo pip install -r requirements.txt
Installation
From the source:
$ ./setup.py install
The latest stable release from PyPi:
$ pip install cppdep
Usage
Create a configuration file that describes the project for analysis. config_schema.yml is given for guidance.
In the root directory of the project with the configuration file, run the following command to generate dependency analysis reports and graphs.
$ cppdep -c /path/to/config/file
More documentation and example configurations can be found in project wiki.
Acknowledgments
John Lakos for inventing the analysis and providing dep_utils.
Zhichang Yu for rewriting dep_utils into Python.
Metadata
Release files for cppdep 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cppdep-0.2.4.tar.gz | 19.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cppdep-0.2.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 37.7 kB
Release files / cppdep-0.2.4.tar.gz
| Download URL | cppdep-0.2.4.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1c28b2f57de73cebe7b6c5285e33403101c6a090ddba7442ed070aace1ee55b
|
|
BLAKE2b-256 checksum How to use checksums |
4f0b3b6a0853fd112d8e56018f2c0922393caf6c83a95ecd6ca7db608a81f27f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / cppdep-0.2.4-py2.py3-none-any.whl
| Download URL | cppdep-0.2.4-py2.py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
50041b3fdf9b16207559ce4ffa707ed9aada6fe89dfbbff12e37af480fcba880
|
|
BLAKE2b-256 checksum How to use checksums |
1528615b806bb1d663da692ee13ee2ba4cfc3ca8d20a2926032031bbefa90bc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |