use lowercase for cmake builtin names and macros, remove contents in else() and endif...
[blender.git] / intern / audaspace / CMakeLists.txt
1 # $Id$
2 # ***** BEGIN LGPL LICENSE BLOCK *****
3 #
4 # Copyright 2009 Jörg Hermann Müller
5 #
6 # This file is part of AudaSpace.
7 #
8 # AudaSpace is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU Lesser General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # AudaSpace is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU Lesser General Public License for more details.
17 #
18 # You should have received a copy of the GNU Lesser General Public License
19 # along with AudaSpace.  If not, see <http://www.gnu.org/licenses/>.
20 #
21 # ***** END LGPL LICENSE BLOCK *****
22
23 set(INC
24         .
25         intern
26         FX SRC
27         ${PTHREADS_INC}
28         ${LIBSAMPLERATE_INC}
29 )
30
31 set(SRC
32         FX/AUD_AccumulatorFactory.cpp
33         FX/AUD_BaseIIRFilterReader.cpp
34         FX/AUD_ButterworthFactory.cpp
35         FX/AUD_CallbackIIRFilterReader.cpp
36         FX/AUD_DelayFactory.cpp
37         FX/AUD_DelayReader.cpp
38         FX/AUD_DoubleFactory.cpp
39         FX/AUD_DoubleReader.cpp
40         FX/AUD_EffectFactory.cpp
41         FX/AUD_EffectReader.cpp
42         FX/AUD_EnvelopeFactory.cpp
43         FX/AUD_FaderFactory.cpp
44         FX/AUD_FaderReader.cpp
45         FX/AUD_HighpassFactory.cpp
46         FX/AUD_IIRFilterFactory.cpp
47         FX/AUD_IIRFilterReader.cpp
48         FX/AUD_LimiterFactory.cpp
49         FX/AUD_LimiterReader.cpp
50         FX/AUD_LoopFactory.cpp
51         FX/AUD_LoopReader.cpp
52         FX/AUD_LowpassFactory.cpp
53         FX/AUD_PingPongFactory.cpp
54         FX/AUD_PitchFactory.cpp
55         FX/AUD_PitchReader.cpp
56         FX/AUD_RectifyFactory.cpp
57         FX/AUD_ReverseFactory.cpp
58         FX/AUD_ReverseReader.cpp
59         FX/AUD_SquareFactory.cpp
60         FX/AUD_SumFactory.cpp
61         FX/AUD_SuperposeFactory.cpp
62         FX/AUD_SuperposeReader.cpp
63         FX/AUD_VolumeFactory.cpp
64         intern/AUD_3DMath.h
65         intern/AUD_Buffer.cpp
66         intern/AUD_Buffer.h
67         intern/AUD_BufferReader.cpp
68         intern/AUD_BufferReader.h
69         intern/AUD_C-API.cpp
70         intern/AUD_C-API.h
71         intern/AUD_ChannelMapperFactory.cpp
72         intern/AUD_ChannelMapperFactory.h
73         intern/AUD_ChannelMapperReader.cpp
74         intern/AUD_ChannelMapperReader.h
75         intern/AUD_ConverterFactory.cpp
76         intern/AUD_ConverterFactory.h
77         intern/AUD_ConverterFunctions.cpp
78         intern/AUD_ConverterFunctions.h
79         intern/AUD_ConverterReader.cpp
80         intern/AUD_ConverterReader.h
81         intern/AUD_DefaultMixer.cpp
82         intern/AUD_DefaultMixer.h
83         intern/AUD_FileFactory.cpp
84         intern/AUD_FileFactory.h
85         intern/AUD_I3DDevice.h
86         intern/AUD_IDevice.h
87         intern/AUD_IFactory.h
88         intern/AUD_IReader.h
89         intern/AUD_LinearResampleFactory.cpp
90         intern/AUD_LinearResampleFactory.h
91         intern/AUD_LinearResampleReader.cpp
92         intern/AUD_LinearResampleReader.h
93         intern/AUD_Mixer.cpp
94         intern/AUD_Mixer.h
95         intern/AUD_MixerFactory.cpp
96         intern/AUD_MixerFactory.h
97         intern/AUD_NULLDevice.cpp
98         intern/AUD_NULLDevice.h
99         intern/AUD_PyInit.h
100         intern/AUD_ReadDevice.cpp
101         intern/AUD_ReadDevice.h
102         intern/AUD_Reference.h
103         intern/AUD_ResampleFactory.h
104         intern/AUD_SequencerFactory.cpp
105         intern/AUD_SequencerFactory.h
106         intern/AUD_SequencerReader.cpp
107         intern/AUD_SequencerReader.h
108         intern/AUD_SilenceFactory.cpp
109         intern/AUD_SilenceFactory.h
110         intern/AUD_SilenceReader.cpp
111         intern/AUD_SilenceReader.h
112         intern/AUD_SinusFactory.cpp
113         intern/AUD_SinusFactory.h
114         intern/AUD_SinusReader.cpp
115         intern/AUD_SinusReader.h
116         intern/AUD_SoftwareDevice.cpp
117         intern/AUD_SoftwareDevice.h
118         intern/AUD_Space.h
119         intern/AUD_StreamBufferFactory.cpp
120         intern/AUD_StreamBufferFactory.h
121
122         FX/AUD_AccumulatorFactory.h
123         FX/AUD_BaseIIRFilterReader.h
124         FX/AUD_ButterworthFactory.h
125         FX/AUD_CallbackIIRFilterReader.h
126         FX/AUD_DelayFactory.h
127         FX/AUD_DelayReader.h
128         FX/AUD_DoubleFactory.h
129         FX/AUD_DoubleReader.h
130         FX/AUD_EffectFactory.h
131         FX/AUD_EffectReader.h
132         FX/AUD_EnvelopeFactory.h
133         FX/AUD_FaderFactory.h
134         FX/AUD_FaderReader.h
135         FX/AUD_HighpassFactory.h
136         FX/AUD_IIRFilterFactory.h
137         FX/AUD_IIRFilterReader.h
138         FX/AUD_LimiterFactory.h
139         FX/AUD_LimiterReader.h
140         FX/AUD_LoopFactory.h
141         FX/AUD_LoopReader.h
142         FX/AUD_LowpassFactory.h
143         FX/AUD_PingPongFactory.h
144         FX/AUD_PitchFactory.h
145         FX/AUD_PitchReader.h
146         FX/AUD_RectifyFactory.h
147         FX/AUD_ReverseFactory.h
148         FX/AUD_ReverseReader.h
149         FX/AUD_SquareFactory.h
150         FX/AUD_SumFactory.h
151         FX/AUD_SuperposeFactory.h
152         FX/AUD_SuperposeReader.h
153         FX/AUD_VolumeFactory.h
154 )
155
156 if(WITH_CODEC_FFMPEG)
157         add_definitions(-DWITH_FFMPEG)
158         list(APPEND INC ffmpeg ${FFMPEG_INC})
159         set(FFMPEGSRC
160                 ffmpeg/AUD_FFMPEGFactory.cpp
161                 ffmpeg/AUD_FFMPEGReader.cpp
162
163                 ffmpeg/AUD_FFMPEGFactory.h
164                 ffmpeg/AUD_FFMPEGReader.h
165         )
166 endif()
167
168 if(WITH_SDL)
169         add_definitions(-DWITH_SDL)
170         list(APPEND INC SDL ${SDL_INCLUDE_DIR})
171         set(SDLSRC
172                 SDL/AUD_SDLDevice.cpp
173
174                 SDL/AUD_SDLDevice.h
175         )
176 endif()
177
178 if(WITH_OPENAL)
179         add_definitions(-DWITH_OPENAL)
180         list(APPEND INC OpenAL ${OPENAL_INCLUDE_DIR})
181         set(OPENALSRC
182                 OpenAL/AUD_OpenALDevice.cpp
183
184                 OpenAL/AUD_OpenALDevice.h
185         )       
186 endif()
187
188 if(WITH_JACK)
189         add_definitions(-DWITH_JACK)
190         list(APPEND INC jack ${JACK_INC})
191         set(JACKSRC
192                 jack/AUD_JackDevice.cpp
193
194                 jack/AUD_JackDevice.h
195         )       
196 endif()
197
198 if(WITH_CODEC_SNDFILE)
199         add_definitions(-DWITH_SNDFILE)
200         list(APPEND INC sndfile ${SNDFILE_INC})
201         set(SNDFILESRC
202                 sndfile/AUD_SndFileFactory.cpp
203                 sndfile/AUD_SndFileReader.cpp
204
205                 sndfile/AUD_SndFileFactory.h
206                 sndfile/AUD_SndFileReader.h
207         )
208 endif()
209
210 if(WITH_SAMPLERATE)
211         add_definitions(-DWITH_SAMPLERATE)
212         set(SRCFILESRC
213                 SRC/AUD_SRCResampleFactory.cpp
214                 SRC/AUD_SRCResampleReader.cpp
215
216                 SRC/AUD_SRCResampleFactory.h
217                 SRC/AUD_SRCResampleReader.h
218         )
219 endif()
220
221 if(WITH_FFTW3 AND FALSE)
222         add_definitions(-DWITH_FFTW3)
223         list(APPEND INC fftw ${FFTW3_INC})
224         set(FFTW3SRC
225                 fftw/AUD_BandPassFactory.cpp
226                 fftw/AUD_BandPassReader.cpp
227
228                 fftw/AUD_BandPassFactory.h
229                 fftw/AUD_BandPassReader.h
230         )
231 endif()
232
233 if(WITH_PYTHON)
234         list(APPEND INC Python ${PYTHON_INC})
235         set(PYTHONSRC
236                 Python/AUD_PyAPI.cpp
237
238                 Python/AUD_PyAPI.h
239         )
240         add_definitions(-DWITH_PYTHON)
241 endif()
242
243 set(SRC
244         ${SRC}
245         ${FFMPEGSRC}
246         ${SNDFILESRC}
247         ${SRCFILESRC}
248         ${FFTW3SRC}
249         ${SDLSRC}
250         ${OPENALSRC}
251         ${JACKSRC}
252         ${PYTHONSRC}
253 )
254
255 blenderlib(bf_intern_audaspace "${SRC}" "${INC}")