Skip to content

Commit

Permalink
Replace juce7 with submodule as well, update to 7.0.9
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Dec 24, 2023
1 parent d73f592 commit 5541dda
Show file tree
Hide file tree
Showing 1,817 changed files with 39 additions and 716,068 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "libs/juce6.1/source"]
path = libs/juce6.1/source
url = https://github.com/DISTRHO/JUCE.git
[submodule "libs/juce7/source"]
path = libs/juce7/source
url = https://github.com/DISTRHO/JUCE.git
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ GNU/Linux: (development versions of these)
In order to build and install the plugins, just run the usual steps for a meson project:

```
meson build --buildtype release
meson setup build --buildtype release
ninja -C build
ninja -C build install
```
19 changes: 16 additions & 3 deletions libs/juce-plugin/JucePluginMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,36 @@

#if JucePlugin_Build_AU
#include "modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm"

#elif JucePlugin_Build_LV2
#if JUCE_MAJOR_VERSION >= 7
#include "modules/juce_audio_plugin_client/LV2/juce_LV2_Client.cpp"
#include "modules/juce_audio_plugin_client/juce_audio_plugin_client_LV2.cpp"
#else
#include "modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp"
#endif

#elif JucePlugin_Build_RTAS
#include "modules/juce_audio_plugin_client/RTAS/juce_RTAS_Wrapper.cpp"

#elif JucePlugin_Build_VST
// we need to include 'juce_VSTMidiEventList' before 'juce_VST_Wrapper'
namespace Vst2 {
#include "modules/juce_audio_processors/format_types/juce_VSTInterface.h"
}
#include "modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h"
#include "modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp"
#if JUCE_MAJOR_VERSION >= 7
#include "modules/juce_audio_plugin_client/juce_audio_plugin_client_VST2.cpp"
#else
#include "modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp"
#endif

#elif JucePlugin_Build_VST3
#include "modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp"
#if JUCE_MAJOR_VERSION >= 7
#include "modules/juce_audio_plugin_client/juce_audio_plugin_client_VST3.cpp"
#else
#include "modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp"
#endif

#elif JucePlugin_Build_Standalone
#include "juce_StandaloneFilterApplication.cpp"
#else
Expand Down
2 changes: 1 addition & 1 deletion libs/juce-plugin/JucePluginUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#error Invalid configuration
#endif

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

Expand Down
10 changes: 7 additions & 3 deletions libs/juce7/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ juce7_devices_srcs = [
]

juce7_extra_cpp_args = [
'-std=gnu++14',
'-std=gnu++17',
'-Wno-non-virtual-dtor',
]
juce7_extra_dependencies = []
juce7_extra_include_dirs = []

if os_windows
Expand All @@ -49,6 +50,9 @@ if os_windows
'-mpreferred-stack-boundary=2',
]
endif
juce7_extra_dependencies += [
cc.find_library('dxgi'),
]
endif

lib_juce7 = static_library('juce7',
Expand All @@ -61,7 +65,7 @@ lib_juce7 = static_library('juce7',
juce7_extra_include_dirs
],
cpp_args: build_flags_cpp + juce7_extra_cpp_args,
dependencies: dependencies,
dependencies: dependencies + juce7_extra_dependencies,
pic: true,
install: false,
)
Expand All @@ -75,7 +79,7 @@ lib_juce7_device = static_library('juce7-devices',
juce7_extra_include_dirs
],
cpp_args: build_flags_cpp + juce7_extra_cpp_args + ['-DJUCE_MODULE_AVAILABLE_juce_audio_devices=1'],
dependencies: dependencies_devices,
dependencies: dependencies_devices + juce7_extra_dependencies,
pic: true,
install: false,
)
Expand Down
1 change: 1 addition & 0 deletions libs/juce7/source
Submodule source added at 3f54e1
16 changes: 0 additions & 16 deletions libs/juce7/source/README.md

This file was deleted.

Loading

0 comments on commit 5541dda

Please sign in to comment.