style cleanup: follow style guide for formatting of if/for/while loops, and else...
[blender.git] / source / blender / editors / space_file / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = env.Glob('*.c')
5
6 incs = '../include ../../blenlib ../../blenkernel ../../makesdna ../../imbuf'
7 incs += ' ../../blenloader ../../makesrna ../../blenfont'
8 incs += ' ../../render/extern/include'
9 incs += ' ../../windowmanager #/intern/guardedalloc #/extern/glew/include'
10
11 defs = []
12
13 if env['WITH_BF_OPENJPEG']:
14     defs.append('WITH_OPENJPEG')
15
16 if env['WITH_BF_OPENEXR']:
17     defs.append('WITH_OPENEXR')
18
19 if env['WITH_BF_TIFF']:
20     defs.append('WITH_TIFF')
21
22 if env['WITH_BF_INTERNATIONAL']:
23     defs.append('WITH_INTERNATIONAL')
24
25 if env['OURPLATFORM'] == 'linux':
26     cflags='-pthread'
27     incs += ' ../../../extern/binreloc/include'
28
29 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
30     incs += ' ' + env['BF_PTHREADS_INC']
31
32 env.BlenderLib ( 'bf_editors_space_file', sources, Split(incs), defs, libtype=['core'], priority=[115] )