Make components invisible in VST, not in Standalone build

Is there an (easy) way to make certain components invisible during building for different builds? Meaning, I would like to have the midiKeyBoard component visible in the standalone build, but not the VST, AU etc. builds. Consequentyl, set a different window resize limit?

Right now, when I open the solution in Visual Studio, both the Standalone build and VST build are dependend on the SharedCode project, which contains all the source code.

JUCEApplicationBase::isStandaloneApp() ?

Ahh thanks! I knew it would be quite trivial.