Mac / COCOA : Imbuf
[blender.git] / source / blender / imbuf / CMakeLists.txt
1 # $Id$
2 # ***** BEGIN GPL LICENSE BLOCK *****
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software Foundation,
16 # Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17 #
18 # The Original Code is Copyright (C) 2006, Blender Foundation
19 # All rights reserved.
20 #
21 # The Original Code is: all of this file.
22 #
23 # Contributor(s): Jacques Beaurain.
24 #
25 # ***** END GPL LICENSE BLOCK *****
26
27 IF(WITH_COCOA)
28         FILE(GLOB SRC intern/*.c intern/*.m)
29         LIST(REMOVE_ITEM SRC "${CMAKE_CURRENT_SOURCE_DIR}/intern/dynlibtiff.c")
30         LIST(REMOVE_ITEM SRC "${CMAKE_CURRENT_SOURCE_DIR}/intern/tiff.c")
31 ELSE(WITH_COCOA)
32         FILE(GLOB SRC intern/*.c)
33 ENDIF(WITH_COCOA)
34
35 SET(INC 
36         . ../makesdna ../../../intern/guardedalloc ../../../intern/memutil ../blenlib
37         ../avi ../blenkernel
38         ${JPEG_INC}
39         ${PNG_INC}
40         ${TIFF_INC}
41         ${ZLIB_INC}
42         ${OPENJPEG_INC}
43 )
44
45 IF(WITH_OPENEXR)
46         ADD_DEFINITIONS(-DWITH_OPENEXR)
47 ENDIF(WITH_OPENEXR)
48
49 IF(WITH_OPENJPEG)
50         ADD_DEFINITIONS(-DWITH_OPENJPEG)
51 ENDIF(WITH_OPENJPEG)
52
53 IF(WITH_QUICKTIME)
54         SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
55         ADD_DEFINITIONS(-DWITH_QUICKTIME)
56 ENDIF(WITH_QUICKTIME)
57
58 IF(WITH_FFMPEG)
59         SET(INC ${INC} ${FFMPEG_INC})
60         ADD_DEFINITIONS(-DWITH_FFMPEG)
61 ENDIF(WITH_FFMPEG)
62
63 IF(WITH_DDS)
64         ADD_DEFINITIONS(-DWITH_DDS)
65 ENDIF(WITH_DDS)
66
67 BLENDERLIB(bf_imbuf "${SRC}" "${INC}")
68 #env.BlenderLib ( libname = 'bf_imbuf', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [80, 40] )