== FFMPEG ==
[blender-staging.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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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_CODEC_FFMPEG)
28         # FFMPEG gives warnigns which are hard to avoid across multiple versions.
29         remove_strict_flags()
30 endif()
31
32 set(INC 
33         .
34         ../avi
35         ../blenlib
36         ../blenkernel
37         ../blenloader
38         ../makesdna
39         ../../../intern/memutil
40         ../../../intern/guardedalloc
41         ../../../intern/ffmpeg
42         ${JPEG_INCLUDE_DIR}
43         ${PNG_INCLUDE_DIR}
44         ${ZLIB_INCLUDE_DIRS}
45 )
46
47 set(SRC
48         intern/allocimbuf.c
49         intern/anim_movie.c
50         intern/bmp.c
51         intern/cache.c
52         intern/divers.c
53         intern/filetype.c
54         intern/filter.c
55         intern/imageprocess.c
56         intern/iris.c
57         intern/jp2.c
58         intern/jpeg.c
59         intern/md5.c
60         intern/metadata.c
61         intern/module.c
62         intern/png.c
63         intern/radiance_hdr.c
64         intern/readimage.c
65         intern/rectop.c
66         intern/rotate.c
67         intern/scaling.c
68         intern/targa.c
69         intern/thumbs.c
70         intern/thumbs_blend.c
71         intern/tiff.c
72         intern/util.c
73         intern/writeimage.c
74
75         IMB_imbuf.h
76         IMB_imbuf_types.h
77         IMB_thumbs.h
78         intern/IMB_allocimbuf.h
79         intern/IMB_anim.h
80         intern/IMB_filetype.h
81         intern/IMB_filter.h
82         intern/IMB_metadata.h
83         intern/cineon/cin_debug_stuff.h
84         intern/cineon/cineonfile.h
85         intern/cineon/cineonlib.h
86         intern/cineon/dpxfile.h
87         intern/cineon/dpxlib.h
88         intern/cineon/logImageCore.h
89         intern/cineon/logImageLib.h
90         intern/cineon/logmemfile.h
91         intern/dds/BlockDXT.h
92         intern/dds/Color.h
93         intern/dds/ColorBlock.h
94         intern/dds/Common.h
95         intern/dds/DirectDrawSurface.h
96         intern/dds/Image.h
97         intern/dds/PixelFormat.h
98         intern/dds/Stream.h
99         intern/dds/dds_api.h
100         intern/imbuf.h
101         intern/md5.h
102         intern/openexr/openexr_api.h
103         intern/openexr/openexr_multi.h
104 )
105
106 if(WITH_IMAGE_OPENEXR)
107         add_definitions(-DWITH_OPENEXR)
108 endif()
109
110 if(WITH_IMAGE_TIFF)
111         list(APPEND INC ${TIFF_INCLUDE_DIR})
112         add_definitions(-DWITH_TIFF)
113 endif()
114
115 if(WITH_IMAGE_OPENJPEG)
116         list(APPEND INC ${OPENJPEG_INC})
117         add_definitions(-DWITH_OPENJPEG)
118 endif()
119
120 if(WITH_IMAGE_REDCODE)
121         list(APPEND INC ${REDCODE_INC})
122         add_definitions(-DWITH_REDCODE)
123 endif()
124
125 if(WITH_CODEC_QUICKTIME)
126         list(APPEND INC
127                 ../quicktime
128                 ${QUICKTIME_INC}
129         )
130         add_definitions(-DWITH_QUICKTIME)
131 endif()
132
133 if(WITH_CODEC_FFMPEG)
134         list(APPEND INC ${FFMPEG_INC})
135         add_definitions(-DWITH_FFMPEG)
136 endif()
137
138 if(WITH_IMAGE_DDS)
139         add_definitions(-DWITH_DDS)
140 endif()
141
142 if(WITH_IMAGE_CINEON)
143         add_definitions(-DWITH_CINEON)
144 endif()
145
146 if(WITH_IMAGE_HDR)
147         add_definitions(-DWITH_HDR)
148 endif()
149
150 blender_add_lib(bf_imbuf "${SRC}" "${INC}")