traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso CMakeLists.txt


From: Remon Sijrier
Subject: [Traverso-commit] traverso CMakeLists.txt
Date: Tue, 12 Feb 2008 18:06:37 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       08/02/12 18:06:37

Modified files:
        .              : CMakeLists.txt 

Log message:
        * Add PulseAudio check
        * change FATAL_ERROR to SEND_ERROR, since we can't rely on package 
config always available for certain packages.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/CMakeLists.txt?cvsroot=traverso&r1=1.24&r2=1.25

Patches:
Index: CMakeLists.txt
===================================================================
RCS file: /sources/traverso/traverso/CMakeLists.txt,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- CMakeLists.txt      19 Jan 2008 22:58:09 -0000      1.24
+++ CMakeLists.txt      12 Feb 2008 18:06:37 -0000      1.25
@@ -22,6 +22,7 @@
 OPTION(WANT_JACK       "Include Jack (Jack Audio Connection Kit) support" ON)
 OPTION(WANT_ALSA       "Include ALSA (Advanced Linux Sound Architecture) 
support" ON)
 OPTION(WANT_PORTAUDIO  "Include PortAudio support (Driver support for Mac OS X 
and Windows" OFF)
+OPTION(WANT_PULSEAUDIO "Include PulseAudio support (Driver support for Linux 
and Windows" OFF)
 OPTION(WANT_LV2                "Include LV2 Plugin support" ON)
 OPTION(USE_SYSTEM_SLV2_LIBRARY "Use system installed slv2 library. If not 
found, the internal one is compiled and used which needs the rdf development 
headers" OFF)
 OPTION(WANT_MP3_DECODE "Include mp3 decoding support, for playing mp3 files" 
ON)
@@ -83,6 +84,7 @@
 SET(MINIMAL_FLAC_VERSION 1.1.2)
 SET(MINIMAL_FFTW_VERSION 3.0.0)
 SET(MINIMAL_REDLAND_VERSION 1.0.2)
+SET(MINIMAL_PULSAUDIO_VERSION 0.9)
 
 SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -Wall ${CXX_FLAGS}")
 SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -Wall -fPIC ${CXX_FLAGS}")
@@ -152,6 +154,19 @@
 ENDIF(WANT_PORTAUDIO)
 
 
+IF(WANT_PULSEAUDIO)
+       CHECK_INCLUDE_FILE("pulse/pulseaudio.h" HAVE_PULSEAUDIO_H)
+       IF(NOT HAVE_PULSEAUDIO_H)
+               MESSAGE(FATAL_ERROR "PulseAudio support requested, but 
PulseAudio development headers could not be found!\nPlease install the 
PortAudio development package, remove CMakeCache.txt and run cmake again")
+       ENDIF(NOT HAVE_PULSEAUDIO_H)
+               LIST(APPEND TRAVERSO_DEFINES -DPULSEAUDIO_SUPPORT)
+               MESSAGE("-- PULSEAUDIO Library Found OK")
+               SET(HAVE_PULSEAUDIO TRUE)
+       ENDIF(PULSEAUDIO_FOUND)
+ELSE(WANT_PULSEAUDIO)
+               SET(HAVE_PULSEAUDIO FALSE)
+ENDIF(WANT_PULSEAUDIO)
+
 IF(WANT_LV2)
        IF(USE_SYSTEM_SLV2_LIBRARY)
                CHECK_INCLUDE_FILE("slv2/slv2.h" HAVE_SLV2_H)
@@ -199,7 +214,7 @@
 IF (WAVPACK_FOUND)
   MESSAGE("-- WavPack Library Found OK")
 ELSE(WAVPACK_FOUND)
-  MESSAGE(FATAL_ERROR "No WavPack found (WavPack >= ${MINIMAL_WAVPACK_VERSION} 
needs to be installed!)")
+  MESSAGE(SEND_ERROR "No WavPack found (WavPack >= ${MINIMAL_WAVPACK_VERSION} 
needs to be installed!)")
 ENDIF(WAVPACK_FOUND)
 
 
@@ -211,7 +226,7 @@
 IF (VORBIS_FOUND)
   MESSAGE("-- Ogg Vorbis Library Found OK")
 ELSE(VORBIS_FOUND)
-  MESSAGE(FATAL_ERROR "No Ogg Vorbis found (Ogg Vorbis >= 
${MINIMAL_OGG_VORBIS_VERSION} needs to be installed!)")
+  MESSAGE(SEND_ERROR "No Ogg Vorbis found (Ogg Vorbis >= 
${MINIMAL_OGG_VORBIS_VERSION} needs to be installed!)")
 ENDIF(VORBIS_FOUND)
 
 
@@ -223,7 +238,7 @@
 IF (FLAC_FOUND)
   MESSAGE("-- FLAC Library Found OK")
 ELSE(FLAC_FOUND)
-  MESSAGE(FATAL_ERROR "No FLAC found (FLAC >= ${MINIMAL_FLAC_VERSION} needs to 
be installed!)")
+  MESSAGE(SEND_ERROR "No FLAC found (FLAC >= ${MINIMAL_FLAC_VERSION} needs to 
be installed!)")
 ENDIF(FLAC_FOUND)
 
 
@@ -265,7 +280,7 @@
 IF (FFTW3_FOUND)
   MESSAGE("-- FFTW3 Library Found OK")
 ELSE(FFTW3_FOUND)
-  MESSAGE(FATAL_ERROR "No FFTW3 found (FFTW3 >= ${MINIMAL_FFTW_VERSION} needs 
to be installed!)")
+  MESSAGE(SEND_ERROR "No FFTW3 found (FFTW3 >= ${MINIMAL_FFTW_VERSION} needs 
to be installed!)")
 ENDIF(FFTW3_FOUND)
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]