WITH_SAMPLERATE option for cmake, without this playback wont behave right so this...
[blender-staging.git] / intern / audaspace / CMakeLists.txt
index be39a7348aa4565eb3e4cf3823b50413720d38ed..a476ea3dea8091a81841f10538800200cd421111 100644 (file)
@@ -61,8 +61,6 @@ SET(SRC
        FX/AUD_SuperposeFactory.cpp
        FX/AUD_SuperposeReader.cpp
        FX/AUD_VolumeFactory.cpp
-       SRC/AUD_SRCResampleFactory.cpp
-       SRC/AUD_SRCResampleReader.cpp
        intern/AUD_3DMath.h
        intern/AUD_Buffer.cpp
        intern/AUD_Buffer.h
@@ -164,6 +162,14 @@ IF(WITH_SNDFILE)
        )
 ENDIF(WITH_SNDFILE)
 
+IF(WITH_SAMPLERATE)
+       ADD_DEFINITIONS(-DWITH_SAMPLERATE)
+       SET(SRCFILESRC
+               SRC/AUD_SRCResampleFactory.cpp
+               SRC/AUD_SRCResampleReader.cpp
+       )
+ENDIF(WITH_SAMPLERATE)
+
 #IF(WITH_FFTW3)
 #      ADD_DEFINITIONS(-DWITH_FFTW3)
 #      LIST(APPEND INC fftw ${FFTW3_INC})
@@ -181,6 +187,6 @@ IF(WITH_PYTHON)
        ADD_DEFINITIONS(-DWITH_PYTHON)
 ENDIF(WITH_PYTHON)
 
-SET(SRC ${SRC} ${FFMPEGSRC} ${SNDFILESRC} ${FFTW3SRC} ${SDLSRC} ${OPENALSRC} ${JACKSRC} ${PYTHONSRC})
+SET(SRC ${SRC} ${FFMPEGSRC} ${SNDFILESRC} ${SRCFILESRC} ${FFTW3SRC} ${SDLSRC} ${OPENALSRC} ${JACKSRC} ${PYTHONSRC})
 
 BLENDERLIB(bf_intern_audaspace "${SRC}" "${INC}")