Boost logo

Boost-Build :

Subject: [Boost-build] Generating source files
From: Phillip Seaver (phil_at_[hidden])
Date: 2016-05-16 16:43:12

I'm trying to figure out the best way to handle creating and compiling
pairs of .h and .c files. For one or more input files, the rule (bin2c)
will create one .h file and one .c file. I want to then compile the .c
file and have the .h file as an implicit dependency so I can include it
in other sources.

bin2c foo : ;
exe bar : bar.c foo ;

So, that would create foo.c and foo.h in the build directory, build
foo.c, and add the build directory to the include path for bar.c.

Since I want to be able to use anything as a source, I don't think I can
use the standard generators, but I could be wrong.



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at