2009-08-09 21:16:39 +00:00
|
|
|
# $Id$
|
|
|
|
# ***** BEGIN LGPL LICENSE BLOCK *****
|
|
|
|
#
|
|
|
|
# Copyright 2009 Jörg Hermann Müller
|
|
|
|
#
|
|
|
|
# This file is part of AudaSpace.
|
|
|
|
#
|
|
|
|
# AudaSpace is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# AudaSpace 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 Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# along with AudaSpace. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
# ***** END LGPL LICENSE BLOCK *****
|
|
|
|
|
|
|
|
SET(INC . intern FX SRC ${PTHREADS_INC} ${LIBSAMPLERATE_INC})
|
|
|
|
|
|
|
|
FILE(GLOB SRC intern/*.cpp intern/*.h FX/*.cpp SRC/*.cpp)
|
|
|
|
|
|
|
|
IF(WITH_FFMPEG)
|
2009-09-06 01:51:23 +00:00
|
|
|
SET(INC ${INC} ffmpeg ${FFMPEG_INC})
|
|
|
|
FILE(GLOB FFMPEGSRC ffmpeg/*.cpp)
|
|
|
|
ADD_DEFINITIONS(-DWITH_FFMPEG)
|
2009-08-09 21:16:39 +00:00
|
|
|
ENDIF(WITH_FFMPEG)
|
|
|
|
|
|
|
|
IF(WITH_SDL)
|
2009-09-06 01:51:23 +00:00
|
|
|
SET(INC ${INC} SDL ${SDL_INCLUDE_DIR})
|
|
|
|
FILE(GLOB SDLSRC SDL/*.cpp)
|
|
|
|
ADD_DEFINITIONS(-DWITH_SDL)
|
2009-08-09 21:16:39 +00:00
|
|
|
ENDIF(WITH_SDL)
|
|
|
|
|
|
|
|
IF(WITH_OPENAL)
|
2009-09-06 01:51:23 +00:00
|
|
|
SET(INC ${INC} OpenAL ${OPENAL_INCLUDE_DIR})
|
|
|
|
FILE(GLOB OPENALSRC OpenAL/*.cpp)
|
|
|
|
ADD_DEFINITIONS(-DWITH_OPENAL)
|
2009-08-09 21:16:39 +00:00
|
|
|
ENDIF(WITH_OPENAL)
|
|
|
|
|
2009-08-16 14:53:11 +00:00
|
|
|
IF(WITH_JACK)
|
2009-09-06 01:51:23 +00:00
|
|
|
SET(INC ${INC} jack ${JACK_INC})
|
|
|
|
FILE(GLOB JACKSRC jack/*.cpp)
|
|
|
|
ADD_DEFINITIONS(-DWITH_JACK)
|
2009-08-16 14:53:11 +00:00
|
|
|
ENDIF(WITH_JACK)
|
|
|
|
|
2009-08-21 19:39:28 +00:00
|
|
|
IF(WITH_SNDFILE)
|
2009-09-06 01:51:23 +00:00
|
|
|
SET(INC ${INC} sndfile ${SNDFILE_INC})
|
|
|
|
FILE(GLOB SNDFILESRC sndfile/*.cpp)
|
|
|
|
ADD_DEFINITIONS(-DWITH_SNDFILE)
|
2009-08-21 19:39:28 +00:00
|
|
|
ENDIF(WITH_SNDFILE)
|
|
|
|
|
2009-12-28 10:15:35 +00:00
|
|
|
IF(WITH_FFTW3)
|
|
|
|
SET(INC ${INC} fftw ${FFTW3_INC})
|
|
|
|
FILE(GLOB FFTW3SRC fftw/*.cpp)
|
|
|
|
ADD_DEFINITIONS(-DWITH_FFTW3)
|
|
|
|
ENDIF(WITH_FFTW3)
|
|
|
|
|
|
|
|
SET(SRC ${SRC} ${FFMPEGSRC} ${SNDFILESRC} ${FFTW3SRC} ${SDLSRC} ${OPENALSRC} ${JACKSRC})
|
2009-08-09 21:16:39 +00:00
|
|
|
|
|
|
|
BLENDERLIB(bf_audaspace "${SRC}" "${INC}")
|