I want to compile a project differently, according to a constant defined by #define, like this:
#define USE_COMPONENT_X #if USE_COMPONENT_X ... #endif
You can add the /define compiler switch.