You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.7KB

  1. /*
  2. ==============================================================================
  3. Main symbol/entry for juce plugins
  4. ==============================================================================
  5. */
  6. #include "AppConfig.h"
  7. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  8. #if ! JUCE_AUDIOPROCESSOR_NO_GUI
  9. #define JUCE_GUI_BASICS_INCLUDE_XHEADERS 1
  10. #endif
  11. #include "modules/juce_gui_basics/juce_gui_basics.h"
  12. #undef None
  13. #include "JucePluginMain.h"
  14. #if JucePlugin_Build_AU
  15. #include "modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm"
  16. #elif JucePlugin_Build_LV2
  17. #if JUCE_MAJOR_VERSION >= 7
  18. #include "modules/juce_audio_plugin_client/juce_audio_plugin_client_LV2.cpp"
  19. #else
  20. #include "modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp"
  21. #endif
  22. #elif JucePlugin_Build_RTAS
  23. #include "modules/juce_audio_plugin_client/RTAS/juce_RTAS_Wrapper.cpp"
  24. #elif JucePlugin_Build_VST
  25. // we need to include 'juce_VSTMidiEventList' before 'juce_VST_Wrapper'
  26. namespace Vst2 {
  27. #include "modules/juce_audio_processors/format_types/juce_VSTInterface.h"
  28. }
  29. #include "modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h"
  30. #if JUCE_MAJOR_VERSION >= 7
  31. #include "modules/juce_audio_plugin_client/juce_audio_plugin_client_VST2.cpp"
  32. #else
  33. #include "modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp"
  34. #endif
  35. #elif JucePlugin_Build_VST3
  36. #if JUCE_MAJOR_VERSION >= 7
  37. #include "modules/juce_audio_plugin_client/juce_audio_plugin_client_VST3.cpp"
  38. #else
  39. #include "modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp"
  40. #endif
  41. #elif JucePlugin_Build_Standalone
  42. #include "juce_StandaloneFilterApplication.cpp"
  43. #else
  44. #error Invalid configuration
  45. #endif