Improvement for multi-format plugin


#1

I’ve found myself in the need to define what formats of plug-ins to build into the binary depending on the project configuration on Visual Studio.
I think that surrounding each

#define JucePlugin_Build*

with the matching #ifndef is a good idea, so people can override what formats to build by simply defining those macros to whatever their values should be in their project configurations.

I’ve did it myself in my local copy of JucePluginCharacteristics.h, that looks this way now:

[code]#if ! JucePlugin_Build_Standalone

// You should turn on these flags to enable the different types of plugin…
#ifndef JucePlugin_Build_VST
#define JucePlugin_Build_VST 1
#endif

#ifndef JucePlugin_Build_RTAS
#define JucePlugin_Build_RTAS 1
#endif

#ifndef JucePlugin_Build_AU
#define JucePlugin_Build_AU 1
#endif
#endif
[/code]

What do you think about this?


#2

Well, everyone has their own plugin characteristics file anyway, so everyone can mod it as required - but that’s a good idea, I’ll add it to the example code. Thanks!