From cf8a2d93c0e8385364795c0b1f635b6491964bf6 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Wed, 6 Jul 2022 12:26:49 +0100 Subject: [PATCH] Android/iOS: Avoid building LV2 --- modules/juce_audio_plugin_client/LV2/juce_LV2_Client.cpp | 2 +- .../juce_audio_processors/format_types/juce_LV2PluginFormat.cpp | 2 +- .../juce_audio_processors/format_types/juce_LV2PluginFormat.h | 2 +- modules/juce_audio_processors/juce_audio_processors.cpp | 2 +- .../juce_audio_processors/juce_audio_processors_lv2_libs.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/juce_audio_plugin_client/LV2/juce_LV2_Client.cpp b/modules/juce_audio_plugin_client/LV2/juce_LV2_Client.cpp index dc2e6cc830..6fba7a1e44 100644 --- a/modules/juce_audio_plugin_client/LV2/juce_LV2_Client.cpp +++ b/modules/juce_audio_plugin_client/LV2/juce_LV2_Client.cpp @@ -23,7 +23,7 @@ ============================================================================== */ -#if JucePlugin_Build_LV2 +#if JucePlugin_Build_LV2 && (! (JUCE_ANDROID || JUCE_IOS)) #ifndef _SCL_SECURE_NO_WARNINGS #define _SCL_SECURE_NO_WARNINGS diff --git a/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp index 53419384ff..9ac149d798 100644 --- a/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp @@ -23,7 +23,7 @@ ============================================================================== */ -#if JUCE_PLUGINHOST_LV2 +#if JUCE_PLUGINHOST_LV2 && (! (JUCE_ANDROID || JUCE_IOS)) #include "juce_LV2Common.h" #include "juce_LV2Resources.h" diff --git a/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.h b/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.h index 0518de268e..f2eefe3f13 100644 --- a/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.h +++ b/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.h @@ -26,7 +26,7 @@ namespace juce { -#if JUCE_PLUGINHOST_LV2 || DOXYGEN +#if (JUCE_PLUGINHOST_LV2 && (! (JUCE_ANDROID || JUCE_IOS))) || DOXYGEN /** Implements a plugin format for LV2 plugins. diff --git a/modules/juce_audio_processors/juce_audio_processors.cpp b/modules/juce_audio_processors/juce_audio_processors.cpp index df3a1e8a96..b0ff4b67b4 100644 --- a/modules/juce_audio_processors/juce_audio_processors.cpp +++ b/modules/juce_audio_processors/juce_audio_processors.cpp @@ -229,7 +229,7 @@ private: #include "format_types/juce_VST3PluginFormat_test.cpp" #endif - #if JUCE_PLUGINHOST_LV2 + #if JUCE_PLUGINHOST_LV2 && (! (JUCE_ANDROID || JUCE_IOS)) #include "format_types/juce_LV2PluginFormat_test.cpp" #endif #endif diff --git a/modules/juce_audio_processors/juce_audio_processors_lv2_libs.cpp b/modules/juce_audio_processors/juce_audio_processors_lv2_libs.cpp index 22b2d11818..6af13097c7 100644 --- a/modules/juce_audio_processors/juce_audio_processors_lv2_libs.cpp +++ b/modules/juce_audio_processors/juce_audio_processors_lv2_libs.cpp @@ -23,7 +23,7 @@ ============================================================================== */ -#if JUCE_PLUGINHOST_LV2 +#if JUCE_PLUGINHOST_LV2 && (! (JUCE_ANDROID || JUCE_IOS)) #ifndef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS #endif