code cleanup: correct include paths and comment
[blender.git] / source / blender / imbuf / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurain.
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 set(INC 
27         .
28         ../avi
29         ../blenkernel
30         ../blenlib
31         ../blenloader
32         ../makesdna
33         ../makesrna
34         ../../../intern/guardedalloc
35         ../../../intern/memutil
36 )
37
38 set(INC_SYS
39         ${JPEG_INCLUDE_DIR}
40         ${PNG_INCLUDE_DIR}
41         ${ZLIB_INCLUDE_DIRS}
42 )
43
44 set(SRC
45         intern/allocimbuf.c
46         intern/anim_movie.c
47         intern/bmp.c
48         intern/cache.c
49         intern/colormanagement.c
50         intern/divers.c
51         intern/filetype.c
52         intern/filter.c
53         intern/imageprocess.c
54         intern/indexer.c
55         intern/indexer_dv.c
56         intern/iris.c
57         intern/jpeg.c
58         intern/metadata.c
59         intern/module.c
60         intern/moviecache.c
61         intern/png.c
62         intern/readimage.c
63         intern/rectop.c
64         intern/rotate.c
65         intern/scaling.c
66         intern/targa.c
67         intern/thumbs.c
68         intern/thumbs_blend.c
69         intern/util.c
70         intern/writeimage.c
71
72         IMB_colormanagement.h
73         IMB_imbuf.h
74         IMB_imbuf_types.h
75         IMB_moviecache.h
76         IMB_thumbs.h
77         intern/IMB_allocimbuf.h
78         intern/IMB_anim.h
79         intern/IMB_colormanagement_intern.h
80         intern/IMB_filetype.h
81         intern/IMB_filter.h
82         intern/IMB_indexer.h
83         intern/IMB_metadata.h
84         intern/imbuf.h
85         intern/cineon/cin_debug_stuff.h
86         intern/cineon/cineonfile.h
87         intern/cineon/cineonlib.h
88         intern/cineon/dpxfile.h
89         intern/cineon/dpxlib.h
90         intern/cineon/logImageCore.h
91         intern/cineon/logImageLib.h
92         intern/cineon/logmemfile.h
93         intern/dds/BlockDXT.h
94         intern/dds/Color.h
95         intern/dds/ColorBlock.h
96         intern/dds/Common.h
97         intern/dds/DirectDrawSurface.h
98         intern/dds/Image.h
99         intern/dds/PixelFormat.h
100         intern/dds/Stream.h
101         intern/dds/dds_api.h
102         intern/openexr/openexr_api.h
103         intern/openexr/openexr_multi.h
104         
105         # orphan include
106         ../../../intern/ffmpeg/ffmpeg_compat.h
107 )
108
109 if(WITH_IMAGE_OPENEXR)
110         add_definitions(-DWITH_OPENEXR)
111 else()
112         list(APPEND SRC
113                 intern/openexr/openexr_stub.cpp
114         )
115 endif()
116
117 if(WITH_IMAGE_TIFF)
118         list(APPEND INC_SYS
119                 ${TIFF_INCLUDE_DIR}
120         )
121         list(APPEND SRC
122                 intern/tiff.c
123         )
124
125         add_definitions(-DWITH_TIFF)
126 endif()
127
128 if(WITH_IMAGE_OPENJPEG)
129         list(APPEND INC_SYS
130                 ${OPENJPEG_INCLUDE_DIRS}
131         )
132         list(APPEND SRC
133                 intern/jp2.c
134         )
135
136         add_definitions(-DWITH_OPENJPEG)
137 endif()
138
139 if(WITH_IMAGE_REDCODE)
140         list(APPEND INC_SYS
141                 ${REDCODE_INC}
142         )
143         add_definitions(-DWITH_REDCODE)
144 endif()
145
146 if(WITH_CODEC_QUICKTIME)
147         list(APPEND INC
148                 ../quicktime
149         )
150         list(APPEND INC_SYS
151                 ${QUICKTIME_INCLUDE_DIRS}
152         )
153         add_definitions(-DWITH_QUICKTIME)
154 endif()
155
156 if(WITH_CODEC_FFMPEG)
157         list(APPEND INC
158                 ../../../intern/ffmpeg
159         )
160         list(APPEND INC_SYS
161                 ${FFMPEG_INCLUDE_DIRS}
162         )
163         add_definitions(-DWITH_FFMPEG)
164
165         remove_strict_flags_file(
166                 intern/indexer.c
167                 intern/util.c
168                 intern/anim_movie.c
169         )
170 endif()
171
172 if(WITH_IMAGE_DDS)
173         add_definitions(-DWITH_DDS)
174 endif()
175
176 if(WITH_IMAGE_CINEON)
177         add_definitions(-DWITH_CINEON)
178 endif()
179
180 if(WITH_IMAGE_HDR)
181         list(APPEND SRC
182                 intern/radiance_hdr.c
183         )
184         add_definitions(-DWITH_HDR)
185 endif()
186
187 list(APPEND INC
188         ../../../intern/opencolorio
189 )
190
191 if(WIN32)
192         list(APPEND INC
193                 ../../../intern/utfconv
194         )
195 endif()
196
197 blender_add_lib(bf_imbuf "${SRC}" "${INC}" "${INC_SYS}")