Cycles: remove deprecated strict aliasing flag for opencl, fix missing update
[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         ../blenkernel
36         ../blenlib
37         ../blenloader
38         ../makesdna
39         ../../../intern/guardedalloc
40         ../../../intern/memutil
41 )
42
43 set(INC_SYS
44         ${JPEG_INCLUDE_DIR}
45         ${PNG_INCLUDE_DIR}
46         ${ZLIB_INCLUDE_DIRS}
47 )
48
49 set(SRC
50         intern/allocimbuf.c
51         intern/anim_movie.c
52         intern/bmp.c
53         intern/cache.c
54         intern/divers.c
55         intern/filetype.c
56         intern/filter.c
57         intern/imageprocess.c
58         intern/indexer.c
59         intern/indexer_dv.c
60         intern/iris.c
61         intern/jp2.c
62         intern/jpeg.c
63         intern/md5.c
64         intern/metadata.c
65         intern/module.c
66         intern/openimageio.cpp
67         intern/png.c
68         intern/radiance_hdr.c
69         intern/readimage.c
70         intern/rectop.c
71         intern/rotate.c
72         intern/scaling.c
73         intern/targa.c
74         intern/thumbs.c
75         intern/thumbs_blend.c
76         intern/tiff.c
77         intern/util.c
78         intern/writeimage.c
79
80         IMB_imbuf.h
81         IMB_imbuf_types.h
82         IMB_thumbs.h
83         intern/IMB_allocimbuf.h
84         intern/IMB_anim.h
85         intern/IMB_filetype.h
86         intern/IMB_filter.h
87         intern/IMB_indexer.h
88         intern/IMB_metadata.h
89         intern/cineon/cin_debug_stuff.h
90         intern/cineon/cineonfile.h
91         intern/cineon/cineonlib.h
92         intern/cineon/dpxfile.h
93         intern/cineon/dpxlib.h
94         intern/cineon/logImageCore.h
95         intern/cineon/logImageLib.h
96         intern/cineon/logmemfile.h
97         intern/dds/BlockDXT.h
98         intern/dds/Color.h
99         intern/dds/ColorBlock.h
100         intern/dds/Common.h
101         intern/dds/DirectDrawSurface.h
102         intern/dds/Image.h
103         intern/dds/PixelFormat.h
104         intern/dds/Stream.h
105         intern/dds/dds_api.h
106         intern/imbuf.h
107         intern/md5.h
108         intern/openexr/openexr_api.h
109         intern/openexr/openexr_multi.h
110         
111         # orphan include
112         ../../../intern/ffmpeg/ffmpeg_compat.h
113 )
114
115 if(WITH_IMAGE_OPENEXR)
116         add_definitions(-DWITH_OPENEXR)
117 endif()
118
119 if(WITH_IMAGE_TIFF)
120         list(APPEND INC_SYS
121                 ${TIFF_INCLUDE_DIR}
122         )
123         add_definitions(-DWITH_TIFF)
124 endif()
125
126 if(WITH_IMAGE_OPENJPEG)
127         list(APPEND INC_SYS
128                 ${OPENJPEG_INCLUDE_DIRS}
129         )
130         add_definitions(-DWITH_OPENJPEG)
131 endif()
132
133 if(WITH_IMAGE_REDCODE)
134         list(APPEND INC_SYS
135                 ${REDCODE_INC}
136         )
137         add_definitions(-DWITH_REDCODE)
138 endif()
139
140 if(WITH_CODEC_QUICKTIME)
141         list(APPEND INC
142                 ../quicktime
143         )
144         list(APPEND INC_SYS
145                 ${QUICKTIME_INCLUDE_DIRS}
146         )
147         add_definitions(-DWITH_QUICKTIME)
148 endif()
149
150 if(WITH_CODEC_FFMPEG)
151         list(APPEND INC
152                 ../../../intern/ffmpeg
153         )
154         list(APPEND INC_SYS
155                 ${FFMPEG_INCLUDE_DIRS}
156         )
157         add_definitions(-DWITH_FFMPEG)
158 endif()
159
160 if(WITH_IMAGE_DDS)
161         add_definitions(-DWITH_DDS)
162 endif()
163
164 if(WITH_IMAGE_CINEON)
165         add_definitions(-DWITH_CINEON)
166 endif()
167
168 if(WITH_IMAGE_HDR)
169         add_definitions(-DWITH_HDR)
170 endif()
171
172 if(WITH_OPENIMAGEIO)
173         list(APPEND INC_SYS
174                 ${OPENIMAGEIO_INCLUDES}
175         )
176         # disabled for now add_definitions(-DWITH_OPENIMAGEIO ${OPENIMAGEIO_DEFINITIONS})
177 endif()
178
179 blender_add_lib(bf_imbuf "${SRC}" "${INC}" "${INC_SYS}")