dascandy / hippomocks

GNU Lesser General Public License v2.1
196 stars 67 forks source link

Created a script to combine headers and generate a single file #84

Open erelender opened 7 years ago

erelender commented 7 years ago

I find the single header approach easier to use, so I created a bash script that can generate such a file.

The script basically cleans up license text and header guards from all the sub-headers under HippoMocks/detail/ and replaces the #include directives in hippomocks.h with the actual sources. It can be used with --comsupport or -c flag to also insert the contents of comsupport.h into hippomocks.h

Hopefully, the script is generic enough to be used on future development too with minor tweaks.