3 # ***** BEGIN GPL LICENSE BLOCK *****
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 # The Original Code is Copyright (C) 2006, Blender Foundation
20 # All rights reserved.
22 # The Original Code is: all of this file.
24 # Contributor(s): Nathan Letwory.
26 # ***** END GPL LICENSE BLOCK *****
31 sources = env.Glob('intern/*.c')
33 incs = '. ../makesdna ../makesrna #/intern/guardedalloc #/intern/memutil ../blenlib'
34 incs += ' ../avi ../blenkernel ../blenloader'
35 incs += ' #/intern/ffmpeg #intern/opencolorio'
37 incs += ' ' + env['BF_JPEG_INC']
38 incs += ' ' + env['BF_PNG_INC']
39 incs += ' ' + env['BF_TIFF_INC']
40 incs += ' ' + env['BF_ZLIB_INC']
44 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
45 incs += ' ' + env['BF_PTHREADS_INC']
46 incs += ' ../../../intern/utfconv'
48 if env['WITH_BF_OPENEXR']:
49 defs.append('WITH_OPENEXR')
51 sources.append(os.path.join('intern', 'openexr', 'openexr_stub.cpp'))
53 if env['WITH_BF_TIFF']:
54 defs.append('WITH_TIFF')
56 sources.remove(os.path.join('intern', 'tiff.c'))
58 if env['WITH_BF_DDS']:
59 defs.append('WITH_DDS')
61 if env['WITH_BF_CINEON']:
62 defs.append('WITH_CINEON')
64 if env['WITH_BF_HDR']:
65 defs.append('WITH_HDR')
67 sources.remove(os.path.join('intern', 'radiance_hdr.c'))
69 if env['WITH_BF_FFMPEG']:
70 defs.append('WITH_FFMPEG')
71 incs += ' ' + env['BF_FFMPEG_INC']
73 if env['WITH_BF_OPENJPEG']:
74 defs.append('WITH_OPENJPEG')
75 incs += ' ' + env['BF_OPENJPEG_INC']
77 sources.remove(os.path.join('intern', 'jp2.c'))
79 if env['WITH_BF_REDCODE']:
80 defs.append('WITH_REDCODE')
81 incs += ' ' + env['BF_REDCODE_INC']
83 if env['WITH_BF_QUICKTIME']:
84 incs += ' ../quicktime ' + env['BF_QUICKTIME_INC']
85 defs.append('WITH_QUICKTIME')
87 env.BlenderLib ( libname = 'bf_imbuf', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [185,115] )