diff --git a/.travis.yml b/.travis.yml index dd1c096..4c30de9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,28 +16,28 @@ jobs: compiler: gcc env: - TARGET="linux" - - PLUGINS="artyfx" + - PLUGINS="artyfx caps-lv2" # linux with macOS cross-compilation - os: linux compiler: gcc env: - TARGET="macos-old" - - PLUGINS="artyfx" + - PLUGINS="artyfx caps-lv2" # linux with win32 cross-compilation - os: linux compiler: gcc env: - TARGET="win32" - - PLUGINS="artyfx" + - PLUGINS="artyfx caps-lv2" # linux with win64 cross-compilation - os: linux compiler: gcc env: - TARGET="win64" - - PLUGINS="artyfx" + - PLUGINS="artyfx caps-lv2" before_install: - bash ${TRAVIS_BUILD_DIR}/.travis/before_install.sh diff --git a/patches/caps-lv2/01_xplat-compat.patch b/patches/caps-lv2/01_xplat-compat.patch new file mode 100644 index 0000000..e21623c --- /dev/null +++ b/patches/caps-lv2/01_xplat-compat.patch @@ -0,0 +1,60 @@ +diff --git a/basics.h b/basics.h +index 7b1d10d..2f813d3 100644 +--- a/basics.h ++++ b/basics.h +@@ -38,6 +38,7 @@ + #define _ISOC99_SOURCE 1 + #define _ISOC9X_SOURCE 1 + ++#include + #include + #include + +@@ -49,14 +50,14 @@ + + #include "ladspa.h" + +-typedef __int8_t int8; +-typedef __uint8_t uint8; +-typedef __int16_t int16; +-typedef __uint16_t uint16; +-typedef __int32_t int32; +-typedef __uint32_t uint32; +-typedef __int64_t int64; +-typedef __uint64_t uint64; ++typedef int8_t int8; ++typedef uint8_t uint8; ++typedef int16_t int16; ++typedef uint16_t uint16; ++typedef int32_t int32; ++typedef uint32_t uint32; ++typedef int64_t int64; ++typedef uint64_t uint64; + + #define MIN_GAIN 1e-6 /* -120 dB */ + /* smallest non-denormal 32 bit IEEE float is 1.18e-38 */ +@@ -124,7 +125,7 @@ T clamp (T value, T lower, T upper) + return value; + } + +-static inline float frandom() { return (float) random() / (float) RAND_MAX; } ++static inline float frandom() { return (float) rand() / (float) RAND_MAX; } + + /* NB: also true if 0 */ + inline bool +diff --git a/dsp/v4f_IIR2.h b/dsp/v4f_IIR2.h +index 7400e04..1e42b56 100644 +--- a/dsp/v4f_IIR2.h ++++ b/dsp/v4f_IIR2.h +@@ -32,9 +32,9 @@ + + namespace DSP { + +-#if defined(__APPLE__) || defined(__FreeBSD__) ++#if defined(__APPLE__) || defined(__FreeBSD__) || defined(_WIN32) + +-inline float exp10f(float f) {return __exp10f(f);} ++inline float exp10f(float f) {return __builtin_exp10f(f);} + + #endif + diff --git a/plugins/caps-lv2.json b/plugins/caps-lv2.json new file mode 100644 index 0000000..ad75666 --- /dev/null +++ b/plugins/caps-lv2.json @@ -0,0 +1,7 @@ +{ + "name": "caps-lv2", + "version": "5d52a0c6e8863c058c2aab2dea9f901a90d96eb9", + "dlbaseurl": "https://github.com/moddevices/caps-lv2.git", + "dlmethod": "git", + "buildtype": "make" +}