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.

122 lines
4.2KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2017 - ROLI Ltd.
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 5 End-User License
  8. Agreement and JUCE 5 Privacy Policy (both updated and effective as of the
  9. 27th April 2017).
  10. End User License Agreement: www.juce.com/juce-5-licence
  11. Privacy Policy: www.juce.com/juce-5-privacy-policy
  12. Or: You may also use this code under the terms of the GPL v3 (see
  13. www.gnu.org/licenses).
  14. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  15. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  16. DISCLAIMED.
  17. ==============================================================================
  18. */
  19. // The following checks should cause a compile error if you've forgotten to
  20. // define all your plugin settings properly..
  21. #if ! (JucePlugin_Build_VST || JucePlugin_Build_VST3 \
  22. || JucePlugin_Build_AU || JucePlugin_Build_AUv3 \
  23. ||JucePlugin_Build_RTAS || JucePlugin_Build_AAX \
  24. || JucePlugin_Build_Standalone || JucePlugin_Build_LV2 \
  25. || JucePlugin_Build_Unity)
  26. #error "You need to enable at least one plugin format!"
  27. #endif
  28. #ifdef JUCE_CHECKSETTINGMACROS_H
  29. #error "This header should never be included twice! Otherwise something is wrong."
  30. #endif
  31. #define JUCE_CHECKSETTINGMACROS_H
  32. #ifndef JucePlugin_IsSynth
  33. #error "You need to define the JucePlugin_IsSynth value!"
  34. #endif
  35. #ifndef JucePlugin_ManufacturerCode
  36. #error "You need to define the JucePlugin_ManufacturerCode value!"
  37. #endif
  38. #ifndef JucePlugin_PluginCode
  39. #error "You need to define the JucePlugin_PluginCode value!"
  40. #endif
  41. #ifndef JucePlugin_ProducesMidiOutput
  42. #error "You need to define the JucePlugin_ProducesMidiOutput value!"
  43. #endif
  44. #ifndef JucePlugin_WantsMidiInput
  45. #error "You need to define the JucePlugin_WantsMidiInput value!"
  46. #endif
  47. #ifdef JucePlugin_Latency
  48. #error "JucePlugin_Latency is now deprecated - instead, call the AudioProcessor::setLatencySamples() method if your plugin has a non-zero delay"
  49. #endif
  50. #ifndef JucePlugin_EditorRequiresKeyboardFocus
  51. #error "You need to define the JucePlugin_EditorRequiresKeyboardFocus value!"
  52. #endif
  53. //==============================================================================
  54. #if _WIN64 || (__LP64__ && (defined (__APPLE_CPP__) || defined (__APPLE_CC__)))
  55. #undef JucePlugin_Build_RTAS
  56. #define JucePlugin_Build_RTAS 0
  57. #endif
  58. #if ! (defined (_MSC_VER) || defined (__APPLE_CPP__) || defined (__APPLE_CC__))
  59. #undef JucePlugin_Build_VST3
  60. #define JucePlugin_Build_VST3 0
  61. #endif
  62. //==============================================================================
  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
  73. //==============================================================================
  74. #if JucePlugin_Build_VST
  75. #if JucePlugin_VersionCode < 0x010000 // Major < 0
  76. #if (JucePlugin_VersionCode & 0x00FF00) > (9 * 0x100) // check if Minor number exceeeds 9
  77. #warning When version has "major" = 0, VST2 has trouble displaying "minor" exceeding 9
  78. #endif
  79. #if (JucePlugin_VersionCode & 0xFF) > 9 // check if Bugfix number exceeeds 9
  80. #warning When version has "major" = 0, VST2 has trouble displaying "bugfix" exceeding 9
  81. #endif
  82. #elif JucePlugin_VersionCode >= 0x650000 // Major >= 101
  83. #if (JucePlugin_VersionCode & 0x00FF00) > (99 * 0x100) // check if Minor number exceeeds 99
  84. #warning When version has "major" > 100, VST2 has trouble displaying "minor" exceeding 99
  85. #endif
  86. #if (JucePlugin_VersionCode & 0xFF) > 99 // check if Bugfix number exceeeds 99
  87. #warning When version has "major" > 100, VST2 has trouble displaying "bugfix" exceeding 99
  88. #endif
  89. #endif // JucePlugin_VersionCode
  90. #endif // JucePlugin_Build_VST