I'm trying to simplify the deployment of an application. In order to build the final application on an end-user's machine, a couple of C files need to be compiled. This means that dozens of header files need to be shipped along with the application. I'd like to be able to pre-include the contents of the include files, but I also need to be able to control the directives (#if, etc.) after the includes are in-lined. I can't find a cpp option that lets me just include headers, without doing the rest of the preprocessing. What are my options?
Example:
File1.h
void dummy_func()
{return;}
File2.h
#if INCLUDE_FILE1
#include "file1.h"
#endif
In the end, I want a file that says:
#if INCLUDE_FILE1
void dummy_func()
{return;}
#endif