migrated build-system to CMAKE

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1352 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-07-22 11:36:50 +00:00
parent 9ba34c1ede
commit e637495489
318 changed files with 2037 additions and 4504 deletions

View File

@@ -28,11 +28,7 @@
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_ALSA_ASOUNDLIB_H
#ifndef ALSA_SUPPORT
#define ALSA_SUPPORT
#endif
#ifdef LMMS_HAVE_ALSA
// older ALSA-versions might require this
#define ALSA_PCM_NEW_HW_PARAMS_API

View File

@@ -103,8 +103,6 @@ public:
virtual void saveSettings( void ) = 0;
public slots:
virtual void show( void )
{
parentWidget()->show();

View File

@@ -67,8 +67,6 @@ public:
{
}
public slots:
virtual void show( void )
{
parentWidget()->hide();

View File

@@ -29,7 +29,7 @@
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_VORBIS_CODEC_H
#ifdef LMMS_HAVE_OGGVORBIS
#include <vorbis/codec.h>

View File

@@ -31,9 +31,7 @@
#include "lmmsconfig.h"
#include "audio_file_device.h"
#ifdef LMMS_HAVE_SNDFILE_H
#include <sndfile.h>
#endif
class audioFileWave : public audioFileDevice
@@ -79,29 +77,8 @@ private:
void finishEncoding( void );
#if LMMS_HAVE_SNDFILE_H
SF_INFO m_si;
SNDFILE * m_sf;
#else
int m_bytesWritten;
struct waveFileHeader
{
char riff_id[4]; // "RIFF"
Uint32 total_bytes; // total filesize-8
char wave_fmt_str[8]; // "WAVEfmt"
Uint32 bitrate_1; // bitrate, e.g. 16
Uint16 uncompressed; // 1 if PCM
Uint16 channels; // 1 = mono 2 = stereo
Uint32 sample_rate; // sample-rate e.g. 44100
Uint32 bytes_per_second; // sample-rate*channels*
// (bitrate/8)
Uint16 block_alignment; // channels*(bitrate/8)
Uint16 bitrate_2; // bitrate, e.g. 16
char data_chunk_id[4]; // "data"
Uint32 data_bytes; // total size of sample-data
} m_waveFileHeader;
#endif
} ;

View File

@@ -28,9 +28,7 @@
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_JACK_JACK_H
#define JACK_SUPPORT
#ifdef LMMS_HAVE_JACK
#include <jack/jack.h>

View File

@@ -28,15 +28,11 @@
#include "lmmsconfig.h"
#if defined LMMS_HAVE_SYS_SOUNDCARD_H || defined LMMS_HAVE_SOUNDCARD_H
#define OSS_SUPPORT
#ifdef LMMS_HAVE_OSS
#include "audio_device.h"
class lcdSpinBox;
class QLineEdit;

View File

@@ -28,11 +28,7 @@
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_PULSE_PULSEAUDIO_H
#ifndef PULSEAUDIO_SUPPORT
#define PULSEAUDIO_SUPPORT
#endif
#ifdef LMMS_HAVE_PULSEAUDIO
#include <pulse/pulseaudio.h>

View File

@@ -28,16 +28,10 @@
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_SDL_SDL_AUDIO_H
#ifndef SDL_AUDIO_SUPPORT
#define SDL_AUDIO_SUPPORT
#endif
#include LMMS_SDL_SDL_H
#include LMMS_SDL_SDL_AUDIO_H
#ifdef LMMS_HAVE_SDL
#include <SDL.h>
#include <SDL_audio.h>
#include "audio_device.h"

View File

@@ -139,7 +139,7 @@ public:
return( m_ladDir );
}
#ifdef LMMS_HAVE_STK_H
#ifdef LMMS_HAVE_STK
const QString & stkDir( void ) const
{
return( m_stkDir );
@@ -186,7 +186,7 @@ private:
QString m_vstDir;
QString m_flDir;
QString m_ladDir;
#ifdef LMMS_HAVE_STK_H
#ifdef LMMS_HAVE_STK
QString m_stkDir;
#endif
QStringList m_recentlyOpenedProjects;

View File

@@ -29,7 +29,7 @@
#include <QtGui/QDialog>
#include "ui_export_project.uic"
#include "ui_export_project.h"
class projectRenderer;

View File

@@ -26,14 +26,7 @@
#ifndef _LADSPA_CONTROL_H
#define _LADSPA_CONTROL_H
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_LADSPA_H
#include <ladspa.h>
#else
#include "ladspa-1.1.h"
#endif
#include "automatable_model.h"
#include "knob.h"

View File

@@ -28,14 +28,7 @@
#ifndef _LADSPA_MANAGER_H
#define _LADSPA_MANAGER_H
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_LADSPA_H
#include <ladspa.h>
#else
#include "ladspa-1.1.h"
#endif
#include <QtCore/QMap>
#include <QtCore/QPair>

View File

@@ -53,7 +53,7 @@ public:
gettimeofday( &begin, NULL );
}
inline Uint32 elapsed( void ) const
inline int elapsed( void ) const
{
struct timeval now;
gettimeofday( &now, NULL );

View File

@@ -28,11 +28,7 @@
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_ALSA_ASOUNDLIB_H
#ifndef ALSA_SUPPORT
#define ALSA_SUPPORT
#endif
#ifdef LMMS_HAVE_ALSA
#include <alsa/asoundlib.h>

View File

@@ -28,16 +28,10 @@
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_ALSA_ASOUNDLIB_H
#ifndef ALSA_SUPPORT
#define ALSA_SUPPORT
#endif
#ifdef LMMS_HAVE_ALSA
#include <alsa/asoundlib.h>
#endif
#include <QtCore/QThread>
#include <QtCore/QTimer>
@@ -132,7 +126,6 @@ private slots:
private:
virtual void run( void );
#ifdef ALSA_SUPPORT
snd_seq_t * m_seqHandle;
struct ports
@@ -146,7 +139,6 @@ private:
int m_queueID;
volatile bool m_quit;
#endif
QTimer m_portListUpdateTimer;
QStringList m_readablePorts;
@@ -163,3 +155,5 @@ signals:
#endif
#endif

View File

@@ -110,8 +110,6 @@ public:
virtual void saveSettings( void ) = 0;
public slots:
virtual void show( void )
{
parentWidget()->show();

View File

@@ -63,8 +63,6 @@ public:
{
}
public slots:
virtual void show( void )
{
parentWidget()->hide();

View File

@@ -1,3 +1,4 @@
#if 0
/*
* midi_mapper.h - MIDI-mapper for any midiDevice
*
@@ -100,3 +101,4 @@ private:
#endif
#endif

View File

@@ -26,13 +26,12 @@
#ifndef _MIDI_OSS_H
#define _MIDI_OSS_H
#include "audio_oss.h"
#include "lmmsconfig.h"
#ifdef OSS_SUPPORT
#ifdef LMMS_HAVE_OSS
#include <qthread.h>
#include <qfile.h>
#include <QtCore/QThread>
#include <QtCore/QFile>
#include "midi_client.h"

36
include/pch.h Normal file
View File

@@ -0,0 +1,36 @@
/*
* pch.h - file which is used for precompiled headers
*
* Copyright (c) 2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program (see COPYING); if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
*/
#ifndef _PCH_H_hsd
#define _PCH_H_hsd
#include <Qt/QtCore>
#include <Qt/QtGui>
#include <Qt/QtXml>
#include <limits>
#include "mixer.h"
#endif

View File

@@ -36,7 +36,7 @@ public:
enum ExportFileFormats
{
WaveFile,
#ifdef LMMS_HAVE_VORBIS_CODEC_H
#ifdef LMMS_HAVE_OGGVORBIS
OggFile,
#endif
NumFileFormats

View File

@@ -200,12 +200,10 @@ private:
void update( bool _keep_settings = FALSE );
#ifdef LMMS_HAVE_SNDFILE_H
f_cnt_t decodeSampleSF( const char * _f, int_sample_t * & _buf,
ch_cnt_t & _channels,
sample_rate_t & _sample_rate );
#endif
#ifdef LMMS_HAVE_VORBIS_VORBISFILE_H
#ifdef LMMS_HAVE_OGGVORBIS
f_cnt_t decodeSampleOGGVorbis( const char * _f, int_sample_t * & _buf,
ch_cnt_t & _channels,
sample_rate_t & _sample_rate );

View File

@@ -122,7 +122,7 @@ private:
QLineEdit * m_adLineEdit;
QLineEdit * m_fdLineEdit;
QLineEdit * m_ladLineEdit;
#ifdef LMMS_HAVE_STK_H
#ifdef LMMS_HAVE_STK
QLineEdit * m_stkLineEdit;
#endif
@@ -131,7 +131,7 @@ private:
QString m_artworkDir;
QString m_flDir;
QString m_ladDir;
#ifdef LMMS_HAVE_STK_H
#ifdef LMMS_HAVE_STK
QString m_stkDir;
#endif