Browse Source

Fix VST3 builds with new juce

Signed-off-by: falkTX <falktx@falktx.com>
tags/2020-12-27
falkTX 3 years ago
parent
commit
49b88c6209
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 17 additions and 13 deletions
  1. +0
    -9
      libs/juce-current/source/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp
  2. +1
    -4
      libs/juce-plugin/JucePluginMain.cpp
  3. +14
    -0
      libs/juce-plugin/JucePluginUtils.cpp
  4. +2
    -0
      ports-legacy/meson.build

+ 0
- 9
libs/juce-current/source/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp View File

@@ -10,15 +10,6 @@
#include <juce_core/system/juce_TargetPlatform.h>
#include "../utility/juce_CheckSettingMacros.h"

// #define JUCE_GUI_BASICS_INCLUDE_XHEADERS 1
// #include "../utility/juce_IncludeModuleHeaders.h"

// #include <juce_audio_processors/format_types/juce_LegacyAudioParameter.cpp>

// #include "../utility/juce_CheckSettingMacros.h"
// #include "../../juce_core/system/juce_TargetPlatform.h" // for JUCE_LINUX
// #include "../../juce_gui_basics/juce_gui_basics.h"

#if JucePlugin_Build_LV2

#include "../utility/juce_IncludeSystemHeaders.h"


+ 1
- 4
libs/juce-plugin/JucePluginMain.cpp View File

@@ -8,6 +8,7 @@

#include "AppConfig.h"

#define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
#define JUCE_GUI_BASICS_INCLUDE_XHEADERS 1
#include "modules/juce_gui_basics/juce_gui_basics.h"
#undef None
@@ -37,7 +38,3 @@
#else
#error Invalid configuration
#endif

#if ! JucePlugin_Build_Standalone && JUCE_MAJOR_VERSION < 6
#include "modules/juce_audio_plugin_client/utility/juce_PluginUtilities.cpp"
#endif

+ 14
- 0
libs/juce-plugin/JucePluginUtils.cpp View File

@@ -0,0 +1,14 @@
/*
==============================================================================

Extra stuff for juce plugins

==============================================================================
*/

#include "AppConfig.h"
#include "JucePluginMain.h"

#if ! JucePlugin_Build_Standalone
#include "modules/juce_audio_plugin_client/utility/juce_PluginUtilities.cpp"
#endif

+ 2
- 0
ports-legacy/meson.build View File

@@ -163,6 +163,7 @@ build_flags_plugin_lv2 = [
'-DJucePlugin_Build_VST=0',
'-DJucePlugin_Build_Standalone=0',
'-DBINTYPE=@0@LV2'.format(bintype_prefix),
'-Wno-parentheses',
]

build_flags_plugin_vst2 = [
@@ -201,6 +202,7 @@ foreach plugin : plugins

plugin_extra_format_specific_srcs += files([
'../libs/juce-plugin/JucePluginMain.cpp',
'../libs/juce-plugin/JucePluginUtils.cpp',
])

link_with_plugin = [


Loading…
Cancel
Save