I have a library the uses conditional compilation based on the preprocessor variables. The library is a separate
.cpp object file with a header.
How can I pass preprocessor variables to the compilation of the library? Standard
#define in a sketch file wouldn't work, since their live will be limited to my sketch object file(s), not the library's.
Normally it is solved by the
./configure script and/or the custom make process. How can I do it on Arduino?
Supplying a separate compilation/source code of the library for all 2^8 combinations of the preprocessor switches doesn't seem feasible...