Skip to content

Bundles a C/C++ source file, recursively inlining any local includes.

License

Notifications You must be signed in to change notification settings

averms/ccombine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ccombine

ccombine is based on a script in the Zstd source called combine.sh. I rewrote it in Python because the original is very slow (see the benchmark). The only change is a better command-line interface.

It can be used to create an amalgamated distribution of your library for easy embedding into another source tree. Some reasons to do this are outlined in nothings/stb and "SQLite is really easy to compile".

You can install it by cloning and running pip install .. This will install a script called ccombine into your Python environment. Alternatively, you can simply download ccombine.py. The only requirement is Python 3.7 and its standard library.

If you need 3.6 compatibility see the python36-compat branch. Note that it is often rebased and force-pushed.

About

Bundles a C/C++ source file, recursively inlining any local includes.

Resources

License

Stars

Watchers

Forks