diff --git a/jucewrapper/CMakeLists.txt b/jucewrapper/CMakeLists.txt new file mode 100644 index 0000000..748aee8 --- /dev/null +++ b/jucewrapper/CMakeLists.txt @@ -0,0 +1,35 @@ +cmake_minimum_required(VERSION 3.15) +project(Cardinal VERSION 0.0.0) + +add_subdirectory(JUCE) + +# FX variant + +juce_add_plugin(CardinalFX + IS_SYNTH FALSE + NEEDS_MIDI_INPUT FALSE + NEEDS_MIDI_OUTPUT FALSE + IS_MIDI_EFFECT FALSE + EDITOR_WANTS_KEYBOARD_FOCUS TRUE + PLUGIN_MANUFACTURER_CODE Dstr + PLUGIN_CODE dCnF + FORMATS AU + PRODUCT_NAME "CardinalFX") + +target_sources(CardinalFX + PRIVATE + Source/CardinalWrapper.cpp) + +target_compile_definitions(CardinalFX + PUBLIC + JUCE_WEB_BROWSER=0) + +target_link_libraries(CardinalFX + PRIVATE + juce::juce_audio_utils + PUBLIC + juce::juce_recommended_config_flags + juce::juce_recommended_lto_flags + juce::juce_recommended_warning_flags) + +# Synth variant diff --git a/jucewrapper/CardinalWrapper.cpp b/jucewrapper/CardinalWrapper.cpp new file mode 100644 index 0000000..e1e58ec --- /dev/null +++ b/jucewrapper/CardinalWrapper.cpp @@ -0,0 +1,43 @@ +/* + * DISTRHO Cardinal Plugin + * Copyright (C) 2021 Filipe Coelho + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 3 of + * the License, or any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * For a full copy of the GNU General Public License see the LICENSE file. + */ + +#include + +class CardinalWrapperProcessor : public juce::AudioProcessor +{ +public: + CardinalWrapperProcessor() + {} + + ~CardinalWrapperProcessor() override + {} + + void prepareToPlay (double sampleRate, int samplesPerBlock) override + {} + + void releaseResources() override + {} +}; + +class CardinalWrapperEditor : public juce::AudioProcessorEditor +{ +public: + CardinalWrapperEditor(CardinalWrapperProcessor&) + {} + ~CardinalWrapperEditor() override + {} +};