Browse Source

Add additional checks to enable/disable AUv3 support

tags/2021-05-28
hogliux 9 years ago
parent
commit
c5a7fe6d6d
2 changed files with 4 additions and 2 deletions
  1. +1
    -1
      modules/juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm
  2. +3
    -1
      modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm

+ 1
- 1
modules/juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm View File

@@ -32,7 +32,7 @@
#import <AVFoundation/AVFoundation.h> #import <AVFoundation/AVFoundation.h>
#if JUCE_MAC #if JUCE_MAC
#if (! defined MAC_OS_X_VERSION_MIN_REQUIRED) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_8)
#if (! defined MAC_OS_X_VERSION_MIN_REQUIRED) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_11)
#error AUv3 needs Deployment Target OS X 10.8 or higher to compile #error AUv3 needs Deployment Target OS X 10.8 or higher to compile
#endif #endif
#endif #endif


+ 3
- 1
modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm View File

@@ -40,7 +40,9 @@
#endif #endif
#ifndef JUCE_SUPPORTS_AUv3 #ifndef JUCE_SUPPORTS_AUv3
#if JUCE_COMPILER_SUPPORTS_VARIADIC_TEMPLATES && defined (MAC_OS_X_VERSION_MIN_REQUIRED) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_8) && __OBJC2__
#if JUCE_COMPILER_SUPPORTS_VARIADIC_TEMPLATES && __OBJC2__ \
&& (defined (MAC_OS_X_VERSION_MIN_REQUIRED) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_11) \
|| defined (__IPHONE_OS_VERSION_MIN_REQUIRED) && (__IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_9_0))
#define JUCE_SUPPORTS_AUv3 1 #define JUCE_SUPPORTS_AUv3 1
#else #else
#define JUCE_SUPPORTS_AUv3 0 #define JUCE_SUPPORTS_AUv3 0


Loading…
Cancel
Save