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.

96 lines
3.3KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2015 - ROLI Ltd.
  5. Permission is granted to use this software under the terms of either:
  6. a) the GPL v2 (or any later version)
  7. b) the Affero GPL v3
  8. Details of these licenses can be found at: www.gnu.org/licenses
  9. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  11. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  12. ------------------------------------------------------------------------------
  13. To release a closed-source product which uses JUCE, commercial licenses are
  14. available: visit www.juce.com for more information.
  15. ==============================================================================
  16. */
  17. // The following checks should cause a compile error if you've forgotten to
  18. // define all your plugin settings properly..
  19. #if ! (JucePlugin_Build_VST || JucePlugin_Build_VST3 \
  20. || JucePlugin_Build_AU || JucePlugin_Build_AUv3 \
  21. ||JucePlugin_Build_RTAS || JucePlugin_Build_AAX \
  22. || JucePlugin_Build_Standalone || JucePlugin_Build_LV2)
  23. #error "You need to enable at least one plugin format!"
  24. #endif
  25. #ifdef JUCE_CHECKSETTINGMACROS_H
  26. #error "This header should never be included twice! Otherwise something is wrong."
  27. #endif
  28. #define JUCE_CHECKSETTINGMACROS_H
  29. #ifndef JucePlugin_IsSynth
  30. #error "You need to define the JucePlugin_IsSynth value!"
  31. #endif
  32. #ifndef JucePlugin_ManufacturerCode
  33. #error "You need to define the JucePlugin_ManufacturerCode value!"
  34. #endif
  35. #ifndef JucePlugin_PluginCode
  36. #error "You need to define the JucePlugin_PluginCode value!"
  37. #endif
  38. #ifndef JucePlugin_ProducesMidiOutput
  39. #error "You need to define the JucePlugin_ProducesMidiOutput value!"
  40. #endif
  41. #ifndef JucePlugin_WantsMidiInput
  42. #error "You need to define the JucePlugin_WantsMidiInput value!"
  43. #endif
  44. #ifdef JucePlugin_Latency
  45. #error "JucePlugin_Latency is now deprecated - instead, call the AudioProcessor::setLatencySamples() method if your plugin has a non-zero delay"
  46. #endif
  47. #ifndef JucePlugin_EditorRequiresKeyboardFocus
  48. #error "You need to define the JucePlugin_EditorRequiresKeyboardFocus value!"
  49. #endif
  50. //==============================================================================
  51. #if _WIN64 || (__LP64__ && (defined (__APPLE_CPP__) || defined (__APPLE_CC__)))
  52. #undef JucePlugin_Build_RTAS
  53. #define JucePlugin_Build_RTAS 0
  54. #endif
  55. #if ! (defined (_MSC_VER) || defined (__APPLE_CPP__) || defined (__APPLE_CC__))
  56. #undef JucePlugin_Build_VST3
  57. #define JucePlugin_Build_VST3 0
  58. #endif
  59. //==============================================================================
  60. #if JucePlugin_Build_RTAS && _MSC_VER && ! defined (JucePlugin_WinBag_path)
  61. #error "You need to define the JucePlugin_WinBag_path value!"
  62. #endif
  63. #if JucePlugin_Build_LV2 && ! defined (JucePlugin_LV2URI)
  64. #error "You need to define the JucePlugin_LV2URI value!"
  65. #endif
  66. #if JucePlugin_Build_AAX && ! defined (JucePlugin_AAXIdentifier)
  67. #error "You need to define the JucePlugin_AAXIdentifier value!"
  68. #endif
  69. #if defined (__ppc__)
  70. #undef JucePlugin_Build_AAX
  71. #define JucePlugin_Build_AAX 0
  72. #endif