upgrade to JUCE 5.4.3. Remove (probably) unused JUCE modules. Remove VST2 target (it's been end-of-life'd by Steinberg and by JUCE)
This commit is contained in:
@ -121,6 +121,17 @@
|
||||
#define JUCE_CONSTEXPR
|
||||
#endif
|
||||
|
||||
#if (! JUCE_MSVC) && (! JUCE_CXX14_IS_AVAILABLE)
|
||||
namespace std
|
||||
{
|
||||
template<typename T, typename... Args>
|
||||
unique_ptr<T> make_unique (Args&&... args)
|
||||
{
|
||||
return unique_ptr<T> (new T (forward<Args> (args)...));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if ! DOXYGEN
|
||||
// These are old flags that are now supported on all compatible build targets
|
||||
#define JUCE_COMPILER_SUPPORTS_OVERRIDE_AND_FINAL 1
|
||||
|
@ -48,10 +48,12 @@ namespace juce
|
||||
//==============================================================================
|
||||
// Debugging and assertion macros
|
||||
|
||||
#if JUCE_LOG_ASSERTIONS || JUCE_DEBUG
|
||||
#define JUCE_LOG_CURRENT_ASSERTION juce::logAssertion (__FILE__, __LINE__);
|
||||
#else
|
||||
#define JUCE_LOG_CURRENT_ASSERTION
|
||||
#ifndef JUCE_LOG_CURRENT_ASSERTION
|
||||
#if JUCE_LOG_ASSERTIONS || JUCE_DEBUG
|
||||
#define JUCE_LOG_CURRENT_ASSERTION juce::logAssertion (__FILE__, __LINE__);
|
||||
#else
|
||||
#define JUCE_LOG_CURRENT_ASSERTION
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
|
@ -28,8 +28,8 @@
|
||||
See also SystemStats::getJUCEVersion() for a string version.
|
||||
*/
|
||||
#define JUCE_MAJOR_VERSION 5
|
||||
#define JUCE_MINOR_VERSION 3
|
||||
#define JUCE_BUILDNUMBER 2
|
||||
#define JUCE_MINOR_VERSION 4
|
||||
#define JUCE_BUILDNUMBER 3
|
||||
|
||||
/** Current JUCE version number.
|
||||
|
||||
@ -51,6 +51,9 @@
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
#include <atomic>
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
#include <map>
|
||||
|
||||
//==============================================================================
|
||||
#include "juce_CompilerSupport.h"
|
||||
|
@ -73,13 +73,11 @@ StringArray SystemStats::getDeviceIdentifiers()
|
||||
}
|
||||
else
|
||||
{
|
||||
Array<MACAddress> addresses;
|
||||
MACAddress::findAllAddresses (addresses);
|
||||
for (auto& address : addresses)
|
||||
for (auto& address : MACAddress::getAllAddresses())
|
||||
ids.add (address.toString());
|
||||
}
|
||||
|
||||
jassert (ids.size() > 0); // Failed to create any IDs!
|
||||
jassert (! ids.isEmpty()); // Failed to create any IDs!
|
||||
return ids;
|
||||
}
|
||||
|
||||
@ -92,9 +90,14 @@ struct CPUInformation
|
||||
|
||||
int numLogicalCPUs = 0, numPhysicalCPUs = 0;
|
||||
|
||||
bool hasMMX = false, hasSSE = false, hasSSE2 = false, hasSSE3 = false,
|
||||
has3DNow = false, hasSSSE3 = false, hasSSE41 = false,
|
||||
hasSSE42 = false, hasAVX = false, hasAVX2 = false, hasNeon = false;
|
||||
bool hasMMX = false, hasSSE = false, hasSSE2 = false, hasSSE3 = false,
|
||||
has3DNow = false, hasSSSE3 = false, hasSSE41 = false,
|
||||
hasSSE42 = false, hasAVX = false, hasAVX2 = false,
|
||||
hasAVX512F = false, hasAVX512BW = false, hasAVX512CD = false,
|
||||
hasAVX512DQ = false, hasAVX512ER = false, hasAVX512IFMA = false,
|
||||
hasAVX512PF = false, hasAVX512VBMI = false, hasAVX512VL = false,
|
||||
hasAVX512VPOPCNTDQ = false,
|
||||
hasNeon = false;
|
||||
};
|
||||
|
||||
static const CPUInformation& getCPUInformation() noexcept
|
||||
@ -115,6 +118,16 @@ bool SystemStats::hasSSE41() noexcept { return getCPUInformation().has
|
||||
bool SystemStats::hasSSE42() noexcept { return getCPUInformation().hasSSE42; }
|
||||
bool SystemStats::hasAVX() noexcept { return getCPUInformation().hasAVX; }
|
||||
bool SystemStats::hasAVX2() noexcept { return getCPUInformation().hasAVX2; }
|
||||
bool SystemStats::hasAVX512F() noexcept { return getCPUInformation().hasAVX512F; }
|
||||
bool SystemStats::hasAVX512BW() noexcept { return getCPUInformation().hasAVX512BW; }
|
||||
bool SystemStats::hasAVX512CD() noexcept { return getCPUInformation().hasAVX512CD; }
|
||||
bool SystemStats::hasAVX512DQ() noexcept { return getCPUInformation().hasAVX512DQ; }
|
||||
bool SystemStats::hasAVX512ER() noexcept { return getCPUInformation().hasAVX512ER; }
|
||||
bool SystemStats::hasAVX512IFMA() noexcept { return getCPUInformation().hasAVX512IFMA; }
|
||||
bool SystemStats::hasAVX512PF() noexcept { return getCPUInformation().hasAVX512PF; }
|
||||
bool SystemStats::hasAVX512VBMI() noexcept { return getCPUInformation().hasAVX512VBMI; }
|
||||
bool SystemStats::hasAVX512VL() noexcept { return getCPUInformation().hasAVX512VL; }
|
||||
bool SystemStats::hasAVX512VPOPCNTDQ() noexcept { return getCPUInformation().hasAVX512VPOPCNTDQ; }
|
||||
bool SystemStats::hasNeon() noexcept { return getCPUInformation().hasNeon; }
|
||||
|
||||
|
||||
|
@ -156,7 +156,7 @@ public:
|
||||
@returns the speed in megahertz, e.g. 1500, 2500, 32000 (depending on
|
||||
what year you're reading this...)
|
||||
*/
|
||||
static int getCpuSpeedInMegaherz();
|
||||
static int getCpuSpeedInMegahertz();
|
||||
|
||||
/** Returns a string to indicate the CPU vendor.
|
||||
Might not be known on some systems.
|
||||
@ -168,17 +168,27 @@ public:
|
||||
*/
|
||||
static String getCpuModel();
|
||||
|
||||
static bool hasMMX() noexcept; /**< Returns true if Intel MMX instructions are available. */
|
||||
static bool has3DNow() noexcept; /**< Returns true if AMD 3DNOW instructions are available. */
|
||||
static bool hasSSE() noexcept; /**< Returns true if Intel SSE instructions are available. */
|
||||
static bool hasSSE2() noexcept; /**< Returns true if Intel SSE2 instructions are available. */
|
||||
static bool hasSSE3() noexcept; /**< Returns true if Intel SSE3 instructions are available. */
|
||||
static bool hasSSSE3() noexcept; /**< Returns true if Intel SSSE3 instructions are available. */
|
||||
static bool hasSSE41() noexcept; /**< Returns true if Intel SSE4.1 instructions are available. */
|
||||
static bool hasSSE42() noexcept; /**< Returns true if Intel SSE4.2 instructions are available. */
|
||||
static bool hasAVX() noexcept; /**< Returns true if Intel AVX instructions are available. */
|
||||
static bool hasAVX2() noexcept; /**< Returns true if Intel AVX2 instructions are available. */
|
||||
static bool hasNeon() noexcept; /**< Returns true if ARM NEON instructions are available. */
|
||||
static bool hasMMX() noexcept; /**< Returns true if Intel MMX instructions are available. */
|
||||
static bool has3DNow() noexcept; /**< Returns true if AMD 3DNOW instructions are available. */
|
||||
static bool hasSSE() noexcept; /**< Returns true if Intel SSE instructions are available. */
|
||||
static bool hasSSE2() noexcept; /**< Returns true if Intel SSE2 instructions are available. */
|
||||
static bool hasSSE3() noexcept; /**< Returns true if Intel SSE3 instructions are available. */
|
||||
static bool hasSSSE3() noexcept; /**< Returns true if Intel SSSE3 instructions are available. */
|
||||
static bool hasSSE41() noexcept; /**< Returns true if Intel SSE4.1 instructions are available. */
|
||||
static bool hasSSE42() noexcept; /**< Returns true if Intel SSE4.2 instructions are available. */
|
||||
static bool hasAVX() noexcept; /**< Returns true if Intel AVX instructions are available. */
|
||||
static bool hasAVX2() noexcept; /**< Returns true if Intel AVX2 instructions are available. */
|
||||
static bool hasAVX512F() noexcept; /**< Returns true if Intel AVX-512 Foundation instructions are available. */
|
||||
static bool hasAVX512BW() noexcept; /**< Returns true if Intel AVX-512 Byte and Word instructions are available. */
|
||||
static bool hasAVX512CD() noexcept; /**< Returns true if Intel AVX-512 Conflict Detection instructions are available. */
|
||||
static bool hasAVX512DQ() noexcept; /**< Returns true if Intel AVX-512 Doubleword and Quadword instructions are available. */
|
||||
static bool hasAVX512ER() noexcept; /**< Returns true if Intel AVX-512 Exponential and Reciprocal instructions are available. */
|
||||
static bool hasAVX512IFMA() noexcept; /**< Returns true if Intel AVX-512 Integer Fused Multiply-Add instructions are available. */
|
||||
static bool hasAVX512PF() noexcept; /**< Returns true if Intel AVX-512 Prefetch instructions are available. */
|
||||
static bool hasAVX512VBMI() noexcept; /**< Returns true if Intel AVX-512 Vector Bit Manipulation instructions are available. */
|
||||
static bool hasAVX512VL() noexcept; /**< Returns true if Intel AVX-512 Vector Length instructions are available. */
|
||||
static bool hasAVX512VPOPCNTDQ() noexcept; /**< Returns true if Intel AVX-512 Vector Population Count Double and Quad-word instructions are available. */
|
||||
static bool hasNeon() noexcept; /**< Returns true if ARM NEON instructions are available. */
|
||||
|
||||
//==============================================================================
|
||||
/** Finds out how much RAM is in the machine.
|
||||
@ -199,10 +209,10 @@ public:
|
||||
*/
|
||||
static String getStackBacktrace();
|
||||
|
||||
/** A function type for use in setApplicationCrashHandler(). The parameter will contain
|
||||
platform-specific data about the crash.
|
||||
/** A function type for use in setApplicationCrashHandler().
|
||||
When called, its void* argument will contain platform-specific data about the crash.
|
||||
*/
|
||||
typedef void (*CrashHandlerFunction) (void*);
|
||||
using CrashHandlerFunction = void(*)(void*);
|
||||
|
||||
/** Sets up a global callback function that will be called if the application
|
||||
executes some kind of illegal instruction.
|
||||
@ -213,15 +223,17 @@ public:
|
||||
static void setApplicationCrashHandler (CrashHandlerFunction);
|
||||
|
||||
/** Returns true if this code is running inside an app extension sandbox.
|
||||
|
||||
This function will always return false on windows, linux and android.
|
||||
*/
|
||||
static bool isRunningInAppExtensionSandbox() noexcept;
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
SystemStats();
|
||||
|
||||
//==============================================================================
|
||||
// This method was spelt wrong! Please change your code to use getCpuSpeedInMegahertz() instead
|
||||
JUCE_DEPRECATED_WITH_BODY (static int getCpuSpeedInMegaherz(), { return getCpuSpeedInMegahertz(); })
|
||||
|
||||
private:
|
||||
SystemStats() = delete; // uses only static methods
|
||||
JUCE_DECLARE_NON_COPYABLE (SystemStats)
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user