Browse Source

A few build fixes

Signed-off-by: falkTX <falktx@falktx.com>
tags/23.02
falkTX 2 years ago
parent
commit
22b129403e
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
6 changed files with 17 additions and 1 deletions
  1. +9
    -0
      deps/Makefile
  2. +1
    -0
      src/Cardinal/DistrhoPluginInfo.h
  3. +1
    -0
      src/CardinalNative/DistrhoPluginInfo.h
  4. +1
    -0
      src/CardinalSynth/DistrhoPluginInfo.h
  5. +1
    -0
      src/CardinalUI.cpp
  6. +4
    -1
      src/custom/RemoteNanoVG.cpp

+ 9
- 0
deps/Makefile View File

@@ -324,6 +324,15 @@ endif
# unwanted in this build
SURGE_CXX_FLAGS += -DJUCE_DSP_ENABLE_SNAP_TO_ZERO=0

# required by JUCE
ifeq ($(WASM),true)
SURGE_CXX_FLAGS += -msse -msse2 -msse3 -msimd128
else ifeq ($(CPU_ARM32),true)
SURGE_CXX_FLAGS += -mfpu=neon-vfpv4 -mfloat-abi=hard
else ifeq ($(CPU_I386_OR_X86_64),true)
SURGE_CXX_FLAGS += -msse -msse2
endif

# possibly use fftw?
# ifeq ($(shell $(PKG_CONFIG) --exists fftw3 fftw3f && echo true),true)
# SURGE_CXX_FLAGS += -DJUCE_DSP_USE_STATIC_FFTW=1


+ 1
- 0
src/Cardinal/DistrhoPluginInfo.h View File

@@ -35,6 +35,7 @@

#ifdef HEADLESS
#define DISTRHO_PLUGIN_HAS_UI 0
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 0
#else
#define DISTRHO_PLUGIN_HAS_UI 1
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 1


+ 1
- 0
src/CardinalNative/DistrhoPluginInfo.h View File

@@ -40,6 +40,7 @@

#ifdef HEADLESS
#define DISTRHO_PLUGIN_HAS_UI 0
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 0
#else
#define DISTRHO_PLUGIN_HAS_UI 1
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 1


+ 1
- 0
src/CardinalSynth/DistrhoPluginInfo.h View File

@@ -34,6 +34,7 @@

#ifdef HEADLESS
#define DISTRHO_PLUGIN_HAS_UI 0
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 0
#else
#define DISTRHO_PLUGIN_HAS_UI 1
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 1


+ 1
- 0
src/CardinalUI.cpp View File

@@ -81,6 +81,7 @@ START_NAMESPACE_DISTRHO

#if ! DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
const char* Plugin::getBundlePath() const noexcept { return nullptr; }
bool Plugin::isSelfTestInstance() const noexcept { return false; }
bool Plugin::writeMidiEvent(const MidiEvent&) noexcept { return false; }
#endif



+ 4
- 1
src/custom/RemoteNanoVG.cpp View File

@@ -18,7 +18,10 @@
#include "DistrhoPluginInfo.h"

#ifndef DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
# error wrong build
# error wrong build 1
#endif
#if DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
# error wrong build 2
#endif

// #if ! DISTRHO_PLUGIN_WANT_DIRECT_ACCESS


Loading…
Cancel
Save