Code cleanup: warning fixes.
[blender.git] / source / blender / editors / space_image / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = env.Glob('*.c')
5
6 incs = '../include ../../blenfont ../../blenlib ../../blenkernel ../../makesdna ../../imbuf'
7 incs += ' ../../windowmanager #/intern/guardedalloc #/extern/glew/include'
8 incs += ' ../../render/extern/include ../../makesrna ../../blenloader'
9
10 defs = []
11
12 if env['WITH_BF_LCMS']:
13     defs.append('WITH_LCMS')
14     incs += ' ' + env['BF_LCMS_INC']
15 if env['WITH_BF_OPENEXR']:
16     defs.append('WITH_OPENEXR')
17 if env['WITH_BF_OPENJPEG']:
18     defs.append('WITH_OPENJPEG')
19 if env['WITH_BF_TIFF']:
20     defs.append('WITH_TIFF')
21 if env['WITH_BF_CINEON']:
22         defs.append('WITH_CINEON')
23
24 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
25     incs += ' ' + env['BF_PTHREADS_INC']
26
27 env.BlenderLib ( 'bf_editors_space_image', sources, Split(incs), defs, libtype=['core'], priority=[40] )