Fix Linux compilation issues caused by MSVC fixes
This commit is contained in:
@@ -471,14 +471,11 @@ ELSE()
|
||||
SET (STATUS_DEBUG_FPE "Disabled")
|
||||
ENDIF(WANT_DEBUG_FPE)
|
||||
|
||||
|
||||
# check for libsamplerate
|
||||
PKG_CHECK_MODULES(SAMPLERATE REQUIRED samplerate>=0.1.8)
|
||||
|
||||
|
||||
message("Compiler: ${CMAKE_CXX_COMPILER_ID} Is MSVC: ${MSVC} Version: ${MSVC}")
|
||||
# set compiler flags
|
||||
IF(CMAKE_CXX_COMPILER_ID MATCHES (GNU|AppleClang))
|
||||
IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|AppleClang")
|
||||
SET(WERROR_FLAGS "-Wall -Werror=unused-function -Wno-sign-compare -Wno-strict-overflow")
|
||||
OPTION(USE_WERROR "Add -werror to the build flags. Stops the build on warnings" OFF)
|
||||
IF(${USE_WERROR})
|
||||
@@ -522,8 +519,7 @@ LIST(SORT LMMS_INCLUDES)
|
||||
# we somehow have to make LMMS-binary depend on MOC-files
|
||||
ADD_FILE_DEPENDENCIES("${CMAKE_BINARY_DIR}/lmmsconfig.h")
|
||||
|
||||
#SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
IF(CMAKE_CXX_COMPILER_ID MATCHES (GNU|AppleClang))
|
||||
IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|AppleClang")
|
||||
IF(WIN32)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-attributes")
|
||||
ELSE(WIN32)
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
#include "interpolation.h"
|
||||
#include "MemoryManager.h"
|
||||
|
||||
template<ch_cnt_t CHANNELS> class BasicFilters;
|
||||
template<ch_cnt_t CHANNELS=DEFAULT_CHANNELS> class BasicFilters;
|
||||
|
||||
template<ch_cnt_t CHANNELS>
|
||||
class LinkwitzRiley
|
||||
@@ -218,7 +218,7 @@ private:
|
||||
};
|
||||
typedef OnePole<2> StereoOnePole;
|
||||
|
||||
template<ch_cnt_t CHANNELS=DEFAULT_CHANNELS>
|
||||
template<ch_cnt_t CHANNELS>
|
||||
class BasicFilters
|
||||
{
|
||||
MM_OPERATORS
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#define NOTE_PLAY_HANDLE_H
|
||||
|
||||
#include "AtomicInt.h"
|
||||
#include "BasicFilters.h"
|
||||
#include "Note.h"
|
||||
#include "PlayHandle.h"
|
||||
#include "Track.h"
|
||||
@@ -36,7 +37,6 @@ class QReadWriteLock;
|
||||
class InstrumentTrack;
|
||||
class NotePlayHandle;
|
||||
|
||||
template<ch_cnt_t=DEFAULT_CHANNELS> class BasicFilters;
|
||||
typedef QList<NotePlayHandle *> NotePlayHandleList;
|
||||
typedef QList<const NotePlayHandle *> ConstNotePlayHandleList;
|
||||
|
||||
|
||||
@@ -22,8 +22,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <QtCore/QtGlobal>
|
||||
|
||||
#ifndef EXPORT_H
|
||||
#define EXPORT_H
|
||||
|
||||
@@ -32,10 +30,10 @@
|
||||
#ifdef LMMS_BUILD_WIN32
|
||||
|
||||
#ifdef PLUGIN_NAME
|
||||
#define EXPORT Q_DECL_IMPORT
|
||||
#define PLUGIN_EXPORT Q_DECL_EXPORT
|
||||
#define EXPORT __declspec(dllimport)
|
||||
#define PLUGIN_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define EXPORT Q_DECL_EXPORT
|
||||
#define EXPORT __declspec(dllexport)
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
INCLUDE(BuildPlugin)
|
||||
|
||||
# Disable C++11
|
||||
SET(CMAKE_CXX_STANDARD 98)
|
||||
|
||||
BUILD_PLUGIN(ladspaeffect LadspaEffect.cpp LadspaControls.cpp LadspaControlDialog.cpp LadspaSubPluginFeatures.cpp LadspaEffect.h LadspaControls.h LadspaControlDialog.h LadspaSubPluginFeatures.h MOCFILES LadspaEffect.h LadspaControls.h LadspaControlDialog.h EMBEDDED_RESOURCES logo.png)
|
||||
|
||||
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/ladspa")
|
||||
|
||||
# Disable C++11
|
||||
SET(CMAKE_CXX_STANDARD 98)
|
||||
|
||||
IF(WANT_CAPS)
|
||||
ADD_SUBDIRECTORY(caps)
|
||||
ENDIF(WANT_CAPS)
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
|
||||
#include <QDomElement>
|
||||
#include <QVarLengthArray>
|
||||
|
||||
#include "MultitapEchoControls.h"
|
||||
#include "MultitapEcho.h"
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
INCLUDE(BuildPlugin)
|
||||
|
||||
# Disable C++11
|
||||
SET(CMAKE_CXX_STANDARD 98)
|
||||
|
||||
BUILD_PLUGIN(papu papu_instrument.cpp papu_instrument.h Basic_Gb_Apu.cpp Basic_Gb_Apu.h gb_apu/Gb_Oscs.cpp gb_apu/Gb_Apu.h gb_apu/Blip_Buffer.cpp gb_apu/Gb_Apu.cpp gb_apu/Gb_Oscs.h gb_apu/blargg_common.h gb_apu/Blip_Buffer.h gb_apu/Multi_Buffer.cpp gb_apu/blargg_source.h gb_apu/Multi_Buffer.h MOCFILES papu_instrument.h EMBEDDED_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.png")
|
||||
|
||||
@@ -71,6 +71,7 @@ ADD_CUSTOM_COMMAND(
|
||||
-L${WINE_LIBRARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/RemoteVstPlugin.cpp
|
||||
-ansi -mwindows -lpthread ${EXTRA_FLAGS} -fno-omit-frame-pointer
|
||||
-std=c++0x
|
||||
${WINE_BUILD_FLAGS}
|
||||
-o ../RemoteVstPlugin
|
||||
# Ensure correct file extension
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
INCLUDE(BuildPlugin)
|
||||
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
# definitions for ZynAddSubFX
|
||||
IF(LMMS_BUILD_LINUX OR LMMS_BUILD_APPLE OR LMMS_BUILD_OPENBSD)
|
||||
|
||||
@@ -26,6 +26,10 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifndef LMMS_BUILD_WIN32
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "lmmsconfig.h"
|
||||
|
||||
|
||||
|
||||
@@ -34,13 +34,6 @@ MixerWorkerThread::JobQueue MixerWorkerThread::globalJobQueue;
|
||||
QWaitCondition * MixerWorkerThread::queueReadyWaitCond = NULL;
|
||||
QList<MixerWorkerThread *> MixerWorkerThread::workerThreads;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define ASM(x) __asm { x };
|
||||
#else
|
||||
#define ASM(x) asm ( "x" );
|
||||
#endif
|
||||
|
||||
|
||||
// implementation of internal JobQueue
|
||||
void MixerWorkerThread::JobQueue::reset( OperationMode _opMode )
|
||||
{
|
||||
@@ -93,8 +86,8 @@ void MixerWorkerThread::JobQueue::wait()
|
||||
{
|
||||
while( (int) m_itemsDone < (int) m_queueSize )
|
||||
{
|
||||
#if defined(LMMS_HOST_X86) || (defined(LMMS_HOST_X86_64) && ! defined(_MSC_VER) )
|
||||
ASM( "pause" );
|
||||
#if defined(LMMS_HOST_X86) || defined(LMMS_HOST_X86_64)
|
||||
_mm_pause();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user