91b0549f7422ca9adb459508965245c87060fe2c
[blender.git] / intern / audaspace / CMakeLists.txt
1 # ***** BEGIN LGPL LICENSE BLOCK *****
2 #
3 # Copyright 2009 Jrg Hermann Mller
4 #
5 # This file is part of AudaSpace.
6 #
7 # AudaSpace is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU Lesser General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # AudaSpace is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public License
18 # along with AudaSpace.  If not, see <http://www.gnu.org/licenses/>.
19 #
20 # ***** END LGPL LICENSE BLOCK *****
21
22 set(INC
23         .
24         FX
25         intern
26         ../ffmpeg
27 )
28
29 set(INC_SYS
30         ${PTHREADS_INCLUDE_DIRS}
31         ${BOOST_INCLUDE_DIR}
32 )
33
34 set(SRC
35         FX/AUD_AccumulatorFactory.cpp
36         FX/AUD_BaseIIRFilterReader.cpp
37         FX/AUD_ButterworthCalculator.cpp
38         FX/AUD_ButterworthFactory.cpp
39         FX/AUD_CallbackIIRFilterReader.cpp
40         FX/AUD_DelayFactory.cpp
41         FX/AUD_DelayReader.cpp
42         FX/AUD_DoubleFactory.cpp
43         FX/AUD_DoubleReader.cpp
44         FX/AUD_DynamicIIRFilterFactory.cpp
45         FX/AUD_DynamicIIRFilterReader.cpp
46         FX/AUD_EffectFactory.cpp
47         FX/AUD_EffectReader.cpp
48         FX/AUD_EnvelopeFactory.cpp
49         FX/AUD_FaderFactory.cpp
50         FX/AUD_FaderReader.cpp
51         FX/AUD_HighpassCalculator.cpp
52         FX/AUD_HighpassFactory.cpp
53         FX/AUD_IIRFilterFactory.cpp
54         FX/AUD_IIRFilterReader.cpp
55         FX/AUD_LimiterFactory.cpp
56         FX/AUD_LimiterReader.cpp
57         FX/AUD_LoopFactory.cpp
58         FX/AUD_LoopReader.cpp
59         FX/AUD_LowpassCalculator.cpp
60         FX/AUD_LowpassFactory.cpp
61         FX/AUD_PingPongFactory.cpp
62         FX/AUD_PitchFactory.cpp
63         FX/AUD_PitchReader.cpp
64         FX/AUD_RectifyFactory.cpp
65         FX/AUD_ReverseFactory.cpp
66         FX/AUD_ReverseReader.cpp
67         FX/AUD_SquareFactory.cpp
68         FX/AUD_SumFactory.cpp
69         FX/AUD_SuperposeFactory.cpp
70         FX/AUD_SuperposeReader.cpp
71         FX/AUD_VolumeFactory.cpp
72
73         intern/AUD_3DMath.h
74         intern/AUD_AnimateableProperty.cpp
75         intern/AUD_AnimateableProperty.h
76         intern/AUD_Buffer.cpp
77         intern/AUD_Buffer.h
78         intern/AUD_BufferReader.cpp
79         intern/AUD_BufferReader.h
80         intern/AUD_C-API.cpp
81         intern/AUD_C-API.h
82         intern/AUD_ChannelMapperFactory.cpp
83         intern/AUD_ChannelMapperFactory.h
84         intern/AUD_ChannelMapperReader.cpp
85         intern/AUD_ChannelMapperReader.h
86         intern/AUD_ConverterFactory.cpp
87         intern/AUD_ConverterFactory.h
88         intern/AUD_ConverterFunctions.cpp
89         intern/AUD_ConverterFunctions.h
90         intern/AUD_ConverterReader.cpp
91         intern/AUD_ConverterReader.h
92         intern/AUD_FileFactory.cpp
93         intern/AUD_FileFactory.h
94         intern/AUD_FileWriter.cpp
95         intern/AUD_FileWriter.h
96         intern/AUD_I3DDevice.h
97         intern/AUD_I3DHandle.h
98         intern/AUD_IDevice.h
99         intern/AUD_IFactory.h
100         intern/AUD_IHandle.h
101         intern/AUD_ILockable.h
102         intern/AUD_IReader.h
103         intern/AUD_IWriter.h
104         intern/AUD_JOSResampleFactory.cpp
105         intern/AUD_JOSResampleFactory.h
106         intern/AUD_JOSResampleReader.cpp
107         intern/AUD_JOSResampleReader.h
108         intern/AUD_LinearResampleFactory.cpp
109         intern/AUD_LinearResampleFactory.h
110         intern/AUD_LinearResampleReader.cpp
111         intern/AUD_LinearResampleReader.h
112         intern/AUD_Mixer.cpp
113         intern/AUD_Mixer.h
114         intern/AUD_MixerFactory.cpp
115         intern/AUD_MixerFactory.h
116         intern/AUD_MutexLock.h
117         intern/AUD_NULLDevice.cpp
118         intern/AUD_NULLDevice.h
119         intern/AUD_PyInit.h
120         intern/AUD_ReadDevice.cpp
121         intern/AUD_ReadDevice.h
122         intern/AUD_ResampleFactory.h
123         intern/AUD_ResampleReader.cpp
124         intern/AUD_ResampleReader.h
125         intern/AUD_Sequencer.cpp
126         intern/AUD_Sequencer.h
127         intern/AUD_SequencerEntry.cpp
128         intern/AUD_SequencerEntry.h
129         intern/AUD_SequencerFactory.cpp
130         intern/AUD_SequencerFactory.h
131         intern/AUD_SequencerHandle.cpp
132         intern/AUD_SequencerHandle.h
133         intern/AUD_SequencerReader.cpp
134         intern/AUD_SequencerReader.h
135         intern/AUD_SilenceFactory.cpp
136         intern/AUD_SilenceFactory.h
137         intern/AUD_SilenceReader.cpp
138         intern/AUD_SilenceReader.h
139         intern/AUD_SinusFactory.cpp
140         intern/AUD_SinusFactory.h
141         intern/AUD_SinusReader.cpp
142         intern/AUD_SinusReader.h
143         intern/AUD_SoftwareDevice.cpp
144         intern/AUD_SoftwareDevice.h
145         intern/AUD_Space.h
146         intern/AUD_StreamBufferFactory.cpp
147         intern/AUD_StreamBufferFactory.h
148
149         FX/AUD_AccumulatorFactory.h
150         FX/AUD_BaseIIRFilterReader.h
151         FX/AUD_ButterworthCalculator.h
152         FX/AUD_ButterworthFactory.h
153         FX/AUD_CallbackIIRFilterReader.h
154         FX/AUD_DelayFactory.h
155         FX/AUD_DelayReader.h
156         FX/AUD_DoubleFactory.h
157         FX/AUD_DoubleReader.h
158         FX/AUD_IDynamicIIRFilterCalculator.h
159         FX/AUD_DynamicIIRFilterFactory.h
160         FX/AUD_DynamicIIRFilterReader.h
161         FX/AUD_EffectFactory.h
162         FX/AUD_EffectReader.h
163         FX/AUD_EnvelopeFactory.h
164         FX/AUD_FaderFactory.h
165         FX/AUD_FaderReader.h
166         FX/AUD_HighpassCalculator.h
167         FX/AUD_HighpassFactory.h
168         FX/AUD_IIRFilterFactory.h
169         FX/AUD_IIRFilterReader.h
170         FX/AUD_LimiterFactory.h
171         FX/AUD_LimiterReader.h
172         FX/AUD_LoopFactory.h
173         FX/AUD_LoopReader.h
174         FX/AUD_LowpassCalculator.h
175         FX/AUD_LowpassFactory.h
176         FX/AUD_PingPongFactory.h
177         FX/AUD_PitchFactory.h
178         FX/AUD_PitchReader.h
179         FX/AUD_RectifyFactory.h
180         FX/AUD_ReverseFactory.h
181         FX/AUD_ReverseReader.h
182         FX/AUD_SquareFactory.h
183         FX/AUD_SumFactory.h
184         FX/AUD_SuperposeFactory.h
185         FX/AUD_SuperposeReader.h
186         FX/AUD_VolumeFactory.h
187 )
188
189 if(WITH_CODEC_FFMPEG)
190         add_definitions(-DWITH_FFMPEG)
191         list(APPEND INC
192                 ffmpeg
193         )
194         list(APPEND INC_SYS
195                 ${FFMPEG_INCLUDE_DIRS}
196         )
197         list(APPEND SRC
198                 ffmpeg/AUD_FFMPEGFactory.cpp
199                 ffmpeg/AUD_FFMPEGReader.cpp
200                 ffmpeg/AUD_FFMPEGWriter.cpp
201
202                 ffmpeg/AUD_FFMPEGFactory.h
203                 ffmpeg/AUD_FFMPEGReader.h
204                 ffmpeg/AUD_FFMPEGWriter.h
205         )
206
207         remove_strict_flags_file(
208                 ffmpeg/AUD_FFMPEGFactory.cpp
209                 ffmpeg/AUD_FFMPEGReader.cpp
210                 ffmpeg/AUD_FFMPEGWriter.cpp
211         )
212 endif()
213
214 if(WITH_SDL)
215         add_definitions(-DWITH_SDL)
216         list(APPEND INC
217                 SDL
218         )
219         list(APPEND INC_SYS
220                 ${SDL_INCLUDE_DIR}
221         )
222         list(APPEND SRC
223                 SDL/AUD_SDLDevice.cpp
224
225                 SDL/AUD_SDLDevice.h
226         )
227 endif()
228
229 if(WITH_OPENAL)
230         add_definitions(-DWITH_OPENAL)
231         list(APPEND INC
232                 OpenAL
233         )
234         list(APPEND INC_SYS
235                 ${OPENAL_INCLUDE_DIR}
236         )
237         list(APPEND SRC
238                 OpenAL/AUD_OpenALDevice.cpp
239
240                 OpenAL/AUD_OpenALDevice.h
241         )
242 endif()
243
244 if(WITH_JACK)
245         add_definitions(-DWITH_JACK)
246         list(APPEND INC
247                 jack
248         )
249         list(APPEND INC_SYS
250                 ${JACK_INCLUDE_DIRS}
251         )
252         list(APPEND SRC
253                 jack/AUD_JackDevice.cpp
254
255                 jack/AUD_JackDevice.h
256         )       
257 endif()
258
259 if(WITH_CODEC_SNDFILE)
260         add_definitions(-DWITH_SNDFILE)
261         list(APPEND INC
262                 sndfile
263         )
264         list(APPEND INC_SYS
265                 ${SNDFILE_INCLUDE_DIRS}
266         )
267         list(APPEND SRC
268                 sndfile/AUD_SndFileFactory.cpp
269                 sndfile/AUD_SndFileReader.cpp
270                 sndfile/AUD_SndFileWriter.cpp
271
272                 sndfile/AUD_SndFileFactory.h
273                 sndfile/AUD_SndFileReader.h
274                 sndfile/AUD_SndFileWriter.h
275         )
276 endif()
277
278 if(WITH_FFTW3 AND FALSE)
279         add_definitions(-DWITH_FFTW3)
280         list(APPEND INC
281                 fftw
282         )
283         list(APPEND INC_SYS
284                 ${FFTW3_INCLUDE_DIRS}
285         )
286         list(APPEND SRC
287                 fftw/AUD_BandPassFactory.cpp
288                 fftw/AUD_BandPassReader.cpp
289
290                 fftw/AUD_BandPassFactory.h
291                 fftw/AUD_BandPassReader.h
292         )
293 endif()
294
295 if(WITH_PYTHON)
296         list(APPEND INC
297                 Python
298         )
299         list(APPEND INC_SYS
300                 ${PYTHON_INCLUDE_DIRS}
301         )
302         list(APPEND SRC
303                 Python/AUD_PyAPI.cpp
304
305                 Python/AUD_PyAPI.h
306         )
307         add_definitions(-DWITH_PYTHON)
308 endif()
309
310 blender_add_lib(bf_intern_audaspace "${SRC}" "${INC}" "${INC_SYS}")