mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
juce_audio_processors: Exclusively use JUCE_INTERNAL_HAS_* macros in place of JUCE_PLUGINHOST_* macros
This change also moves the PLUGINHOST config flags to the juce_audio_processors_headless module header, as this is now the lowest-level module that uses these flags. This change shouldn't require any Projucer/CMake changes.
This commit is contained in:
parent
6c627b7b25
commit
51c4a484ee
40 changed files with 140 additions and 145 deletions
|
|
@ -32,8 +32,6 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#include <juce_audio_processors_headless/format/juce_PluginFormatDefs.h>
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
namespace juce
|
||||
{
|
||||
|
||||
#if (JUCE_PLUGINHOST_AU && (JUCE_MAC || JUCE_IOS)) || DOXYGEN
|
||||
#if JUCE_INTERNAL_HAS_AU || DOXYGEN
|
||||
|
||||
//==============================================================================
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#if JUCE_PLUGINHOST_AU && (JUCE_MAC || JUCE_IOS)
|
||||
#if JUCE_INTERNAL_HAS_AU
|
||||
|
||||
#include <juce_audio_processors_headless/format_types/juce_AudioUnitPluginFormatImpl.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
namespace juce
|
||||
{
|
||||
|
||||
#if (JUCE_PLUGINHOST_LADSPA && (JUCE_LINUX || JUCE_BSD)) || DOXYGEN
|
||||
#if JUCE_INTERNAL_HAS_LADSPA || DOXYGEN
|
||||
|
||||
//==============================================================================
|
||||
/** Provided for backwards compatibility; LADSPA plugins are always headless.
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#if JUCE_PLUGINHOST_LV2 && (! (JUCE_ANDROID || JUCE_IOS))
|
||||
#if JUCE_INTERNAL_HAS_LV2
|
||||
|
||||
#include <juce_audio_processors_headless/format_types/juce_LV2PluginFormatImpl.h>
|
||||
#include <juce_gui_extra/native/juce_NSViewFrameWatcher_mac.h>
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
namespace juce
|
||||
{
|
||||
|
||||
#if (JUCE_PLUGINHOST_LV2 && (! (JUCE_ANDROID || JUCE_IOS))) || DOXYGEN
|
||||
#if JUCE_INTERNAL_HAS_LV2 || DOXYGEN
|
||||
|
||||
/**
|
||||
Implements a plugin format for LV2 plugins.
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#if JUCE_PLUGINHOST_VST3 && (JUCE_MAC || JUCE_WINDOWS || JUCE_LINUX || JUCE_BSD)
|
||||
#if JUCE_INTERNAL_HAS_VST3
|
||||
|
||||
#include <juce_audio_processors_headless/format_types/juce_VST3PluginFormatImpl.h>
|
||||
#include <juce_audio_processors/utilities/juce_NSViewComponentWithParent.h>
|
||||
|
|
@ -646,4 +646,4 @@ JUCE_END_NO_SANITIZE
|
|||
|
||||
} // namespace juce
|
||||
|
||||
#endif // JUCE_PLUGINHOST_VST3
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
namespace juce
|
||||
{
|
||||
|
||||
#if (JUCE_PLUGINHOST_VST3 && (JUCE_MAC || JUCE_WINDOWS || JUCE_LINUX || JUCE_BSD)) || DOXYGEN
|
||||
#if JUCE_INTERNAL_HAS_VST3
|
||||
|
||||
/**
|
||||
Implements a plugin format for VST3s.
|
||||
|
|
@ -47,6 +47,6 @@ class JUCE_API VST3PluginFormat : public VST3PluginFormatHeadless
|
|||
void createPluginInstance (const PluginDescription&, double, int, PluginCreationCallback) override;
|
||||
};
|
||||
|
||||
#endif // JUCE_PLUGINHOST_VST3
|
||||
#endif
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#if JUCE_PLUGINHOST_VST
|
||||
#if JUCE_INTERNAL_HAS_VST
|
||||
|
||||
#include <juce_audio_processors_headless/format_types/juce_VSTPluginFormatImpl.h>
|
||||
#include <juce_audio_processors/utilities/juce_NSViewComponentWithParent.h>
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#if (JUCE_PLUGINHOST_VST || DOXYGEN)
|
||||
#if JUCE_INTERNAL_HAS_VST || DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
#include <juce_gui_extra/juce_gui_extra.h>
|
||||
|
||||
//==============================================================================
|
||||
#if JUCE_PLUGINHOST_VST && (JUCE_LINUX || JUCE_BSD)
|
||||
#if JUCE_INTERNAL_HAS_VST && (JUCE_LINUX || JUCE_BSD)
|
||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wvariadic-macros")
|
||||
#include <X11/Xlib.h>
|
||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||
|
|
@ -60,12 +60,7 @@
|
|||
#undef KeyPress
|
||||
#endif
|
||||
|
||||
#if ! JUCE_WINDOWS && ! JUCE_MAC && ! JUCE_LINUX
|
||||
#undef JUCE_PLUGINHOST_VST3
|
||||
#define JUCE_PLUGINHOST_VST3 0
|
||||
#endif
|
||||
|
||||
#if JUCE_PLUGINHOST_AU && (JUCE_MAC || JUCE_IOS)
|
||||
#if JUCE_INTERNAL_HAS_AU
|
||||
#include <AudioUnit/AudioUnit.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -85,15 +80,15 @@
|
|||
#include "format_types/juce_LV2PluginFormat.cpp"
|
||||
|
||||
#if JUCE_UNIT_TESTS
|
||||
#if JUCE_PLUGINHOST_VST3
|
||||
#if JUCE_INTERNAL_HAS_VST3
|
||||
#include "format_types/juce_VST3PluginFormat_test.cpp"
|
||||
#endif
|
||||
|
||||
#if JUCE_PLUGINHOST_AU && (JUCE_MAC || JUCE_IOS)
|
||||
#if JUCE_INTERNAL_HAS_AU
|
||||
#include "format_types/juce_AudioUnitPluginFormat_test.cpp"
|
||||
#endif
|
||||
|
||||
#if JUCE_PLUGINHOST_LV2 && (! (JUCE_ANDROID || JUCE_IOS))
|
||||
#if JUCE_INTERNAL_HAS_LV2
|
||||
#include "format_types/juce_LV2PluginFormat_test.cpp"
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -64,78 +64,6 @@
|
|||
#include <juce_audio_processors_headless/juce_audio_processors_headless.h>
|
||||
#include <juce_gui_extra/juce_gui_extra.h>
|
||||
|
||||
//==============================================================================
|
||||
/** Config: JUCE_PLUGINHOST_VST
|
||||
Enables the VST audio plugin hosting classes. You will need to have the VST2 SDK files in your header search paths. You can obtain the VST2 SDK files from on older version of the VST3 SDK.
|
||||
|
||||
@see VSTPluginFormat, VST3PluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_AU, JUCE_PLUGINHOST_VST3, JUCE_PLUGINHOST_LADSPA
|
||||
*/
|
||||
#ifndef JUCE_PLUGINHOST_VST
|
||||
#define JUCE_PLUGINHOST_VST 0
|
||||
#endif
|
||||
|
||||
/** Config: JUCE_PLUGINHOST_VST3
|
||||
Enables the VST3 audio plugin hosting classes.
|
||||
|
||||
@see VSTPluginFormat, VST3PluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_VST, JUCE_PLUGINHOST_AU, JUCE_PLUGINHOST_LADSPA
|
||||
*/
|
||||
#ifndef JUCE_PLUGINHOST_VST3
|
||||
#define JUCE_PLUGINHOST_VST3 0
|
||||
#endif
|
||||
|
||||
/** Config: JUCE_PLUGINHOST_AU
|
||||
Enables the AudioUnit plugin hosting classes. This is Mac-only, of course.
|
||||
|
||||
@see AudioUnitPluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_VST, JUCE_PLUGINHOST_VST3, JUCE_PLUGINHOST_LADSPA
|
||||
*/
|
||||
#ifndef JUCE_PLUGINHOST_AU
|
||||
#define JUCE_PLUGINHOST_AU 0
|
||||
#endif
|
||||
|
||||
/** Config: JUCE_PLUGINHOST_LADSPA
|
||||
Enables the LADSPA plugin hosting classes. This is Linux-only, of course.
|
||||
|
||||
@see LADSPAPluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_VST, JUCE_PLUGINHOST_VST3, JUCE_PLUGINHOST_AU
|
||||
*/
|
||||
#ifndef JUCE_PLUGINHOST_LADSPA
|
||||
#define JUCE_PLUGINHOST_LADSPA 0
|
||||
#endif
|
||||
|
||||
/** Config: JUCE_PLUGINHOST_LV2
|
||||
Enables the LV2 plugin hosting classes.
|
||||
*/
|
||||
#ifndef JUCE_PLUGINHOST_LV2
|
||||
#define JUCE_PLUGINHOST_LV2 0
|
||||
#endif
|
||||
|
||||
/** Config: JUCE_PLUGINHOST_ARA
|
||||
Enables the ARA plugin extension hosting classes. You will need to download the ARA SDK and specify the
|
||||
path to it either in the Projucer, using juce_set_ara_sdk_path() in your CMake project file.
|
||||
|
||||
The directory can be obtained by recursively cloning https://github.com/Celemony/ARA_SDK and checking out
|
||||
the tag releases/2.1.0.
|
||||
*/
|
||||
#ifndef JUCE_PLUGINHOST_ARA
|
||||
#define JUCE_PLUGINHOST_ARA 0
|
||||
#endif
|
||||
|
||||
/** Config: JUCE_CUSTOM_VST3_SDK
|
||||
If enabled, the embedded VST3 SDK in JUCE will not be added to the project and instead you should
|
||||
add the path to your custom VST3 SDK to the project's header search paths. Most users shouldn't
|
||||
need to enable this and should just use the version of the SDK included with JUCE.
|
||||
*/
|
||||
#ifndef JUCE_CUSTOM_VST3_SDK
|
||||
#define JUCE_CUSTOM_VST3_SDK 0
|
||||
#endif
|
||||
|
||||
#if ! (JUCE_PLUGINHOST_AU || JUCE_PLUGINHOST_VST || JUCE_PLUGINHOST_VST3 || JUCE_PLUGINHOST_LADSPA)
|
||||
// #error "You need to set either the JUCE_PLUGINHOST_AU and/or JUCE_PLUGINHOST_VST and/or JUCE_PLUGINHOST_VST3 and/or JUCE_PLUGINHOST_LADSPA flags if you're using this module!"
|
||||
#endif
|
||||
|
||||
#ifndef JUCE_SUPPORT_LEGACY_AUDIOPROCESSOR
|
||||
#define JUCE_SUPPORT_LEGACY_AUDIOPROCESSOR 1
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
#include "processors/juce_AudioProcessorEditorHostContext.h"
|
||||
#include "processors/juce_AudioProcessorEditor.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue