The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
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.

101 lines
3.7KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-11 by Raw Material Software Ltd.
  5. ------------------------------------------------------------------------------
  6. JUCE can be redistributed and/or modified under the terms of the GNU General
  7. Public License (Version 2), as published by the Free Software Foundation.
  8. A copy of the license is included in the JUCE distribution, or can be found
  9. online at www.gnu.org/licenses.
  10. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  11. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  13. ------------------------------------------------------------------------------
  14. To release a closed-source product which uses JUCE, commercial licenses are
  15. available: visit www.rawmaterialsoftware.com/juce for more information.
  16. ==============================================================================
  17. */
  18. // The following checks should cause a compile error if you've forgotten to
  19. // define all your plugin settings properly..
  20. #if ! (JucePlugin_Build_VST || JucePlugin_Build_AU || JucePlugin_Build_RTAS || JucePlugin_Build_AAX \
  21. || JucePlugin_Build_Standalone || JucePlugin_Build_LV2)
  22. #error "You need to enable at least one plugin format!"
  23. #endif
  24. #ifndef JucePlugin_IsSynth
  25. #error "You need to define the JucePlugin_IsSynth value!"
  26. #endif
  27. #ifndef JucePlugin_ManufacturerCode
  28. #error "You need to define the JucePlugin_ManufacturerCode value!"
  29. #endif
  30. #ifndef JucePlugin_PluginCode
  31. #error "You need to define the JucePlugin_PluginCode value!"
  32. #endif
  33. #ifndef JucePlugin_ProducesMidiOutput
  34. #error "You need to define the JucePlugin_ProducesMidiOutput value!"
  35. #endif
  36. #ifndef JucePlugin_WantsMidiInput
  37. #error "You need to define the JucePlugin_WantsMidiInput value!"
  38. #endif
  39. #ifndef JucePlugin_MaxNumInputChannels
  40. #error "You need to define the JucePlugin_MaxNumInputChannels value!"
  41. #endif
  42. #ifndef JucePlugin_MaxNumOutputChannels
  43. #error "You need to define the JucePlugin_MaxNumOutputChannels value!"
  44. #endif
  45. #ifndef JucePlugin_PreferredChannelConfigurations
  46. #error "You need to define the JucePlugin_PreferredChannelConfigurations value!"
  47. #endif
  48. #ifdef JucePlugin_Latency
  49. #error "JucePlugin_Latency is now deprecated - instead, call the AudioProcessor::setLatencySamples() method if your plugin has a non-zero delay"
  50. #endif
  51. #ifndef JucePlugin_SilenceInProducesSilenceOut
  52. #error "You need to define the JucePlugin_SilenceInProducesSilenceOut value!"
  53. #endif
  54. #ifndef JucePlugin_EditorRequiresKeyboardFocus
  55. #error "You need to define the JucePlugin_EditorRequiresKeyboardFocus value!"
  56. #endif
  57. //==============================================================================
  58. #if _WIN64 || (__LP64__ && (defined(__APPLE_CPP__) || defined(__APPLE_CC__)))
  59. #undef JucePlugin_Build_RTAS
  60. #define JucePlugin_Build_RTAS 0
  61. #endif
  62. //==============================================================================
  63. #if JucePlugin_Build_RTAS && _MSC_VER && ! defined (JucePlugin_WinBag_path)
  64. #error "You need to define the JucePlugin_WinBag_path value!"
  65. #endif
  66. #if JucePlugin_Build_LV2 && ! defined (JucePlugin_LV2URI)
  67. #error "You need to define the JucePlugin_LV2URI value!"
  68. #endif
  69. #if JucePlugin_Build_AAX && ! defined (JucePlugin_AAXIdentifier)
  70. #error "You need to define the JucePlugin_AAXIdentifier value!"
  71. #endif
  72. #if defined (__ppc__)
  73. #undef JucePlugin_Build_AAX
  74. #define JucePlugin_Build_AAX 0
  75. #endif