Is there a nice way to implement my own preprocessor (before standard C++ preprocessing) from within qmake framework.

I envision something like this in the .pro file:

Qt Code:
  1. SOURCES += file1.cpp
  2. SPECIAL_SOURCES += file2.cpp
  3. include(process_special_sources.pri)
To copy to clipboard, switch view to plain text mode 

Here, process_special_sources.pri would somehow preprocess file2.cpp and create special_file2.cpp and add it to the SOURCES variable.

Does this sound feasible? Is there a better way?

Thanks!