A few build fixes
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
dc92378e33
commit
22b129403e
6 changed files with 17 additions and 1 deletions
9
deps/Makefile
vendored
9
deps/Makefile
vendored
|
@ -324,6 +324,15 @@ endif
|
||||||
# unwanted in this build
|
# unwanted in this build
|
||||||
SURGE_CXX_FLAGS += -DJUCE_DSP_ENABLE_SNAP_TO_ZERO=0
|
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?
|
# possibly use fftw?
|
||||||
# ifeq ($(shell $(PKG_CONFIG) --exists fftw3 fftw3f && echo true),true)
|
# ifeq ($(shell $(PKG_CONFIG) --exists fftw3 fftw3f && echo true),true)
|
||||||
# SURGE_CXX_FLAGS += -DJUCE_DSP_USE_STATIC_FFTW=1
|
# SURGE_CXX_FLAGS += -DJUCE_DSP_USE_STATIC_FFTW=1
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
#ifdef HEADLESS
|
#ifdef HEADLESS
|
||||||
#define DISTRHO_PLUGIN_HAS_UI 0
|
#define DISTRHO_PLUGIN_HAS_UI 0
|
||||||
|
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 0
|
||||||
#else
|
#else
|
||||||
#define DISTRHO_PLUGIN_HAS_UI 1
|
#define DISTRHO_PLUGIN_HAS_UI 1
|
||||||
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 1
|
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 1
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
|
|
||||||
#ifdef HEADLESS
|
#ifdef HEADLESS
|
||||||
#define DISTRHO_PLUGIN_HAS_UI 0
|
#define DISTRHO_PLUGIN_HAS_UI 0
|
||||||
|
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 0
|
||||||
#else
|
#else
|
||||||
#define DISTRHO_PLUGIN_HAS_UI 1
|
#define DISTRHO_PLUGIN_HAS_UI 1
|
||||||
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 1
|
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 1
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
|
|
||||||
#ifdef HEADLESS
|
#ifdef HEADLESS
|
||||||
#define DISTRHO_PLUGIN_HAS_UI 0
|
#define DISTRHO_PLUGIN_HAS_UI 0
|
||||||
|
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 0
|
||||||
#else
|
#else
|
||||||
#define DISTRHO_PLUGIN_HAS_UI 1
|
#define DISTRHO_PLUGIN_HAS_UI 1
|
||||||
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 1
|
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 1
|
||||||
|
|
|
@ -81,6 +81,7 @@ START_NAMESPACE_DISTRHO
|
||||||
|
|
||||||
#if ! DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
#if ! DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
||||||
const char* Plugin::getBundlePath() const noexcept { return nullptr; }
|
const char* Plugin::getBundlePath() const noexcept { return nullptr; }
|
||||||
|
bool Plugin::isSelfTestInstance() const noexcept { return false; }
|
||||||
bool Plugin::writeMidiEvent(const MidiEvent&) noexcept { return false; }
|
bool Plugin::writeMidiEvent(const MidiEvent&) noexcept { return false; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,10 @@
|
||||||
#include "DistrhoPluginInfo.h"
|
#include "DistrhoPluginInfo.h"
|
||||||
|
|
||||||
#ifndef DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
#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
|
#endif
|
||||||
|
|
||||||
// #if ! DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
// #if ! DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue