/cpp-header

One header file builder for C++ libraries

Primary LanguagePythonMIT LicenseMIT

C/C++ One Header Builder

Takes all C/C++ headers from your project and compiles them into one header file. And yep, it takes care of rearranging all dependencies.

Execution

Just run the script and redirect the output to a new file. The only argument is the path to your source files. Script will scan content of that directory and it will combine all header files into one.

./header.py <path_to_src> > lib.h

You can also specify path to the file with license which will be included at the begging of header file:

./header.py --license <licence_file> <path_to_src> > lib.h

Motivation

Because why not.