include needed for windows
[blender.git] / source / blender / makesrna / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 objs = []
5
6 o = SConscript('intern/SConscript')
7 objs += o
8
9 incs = '#/intern/guardedalloc #/intern/memutil #/intern/audaspace/intern ../blenkernel ../blenlib ../makesdna intern .'
10 incs += ' ../windowmanager ../editors/include ../gpu ../imbuf ../ikplugin ../blenfont ../blenloader'
11 incs += ' ../render/extern/include'
12 incs += ' #/extern/glew/include'
13
14 defs = []
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_OPENJPEG']:
23     defs.append('WITH_OPENJPEG')
24
25 if env['WITH_BF_DDS']:
26     defs.append('WITH_DDS')
27
28 if env['WITH_BF_CINEON']:
29     defs.append('WITH_CINEON')
30
31 if env['WITH_BF_HDR']:
32     defs.append('WITH_HDR')
33
34 if env['WITH_BF_FFMPEG']:
35     defs.append('WITH_FFMPEG')
36     incs += ' ' + env['BF_FFMPEG_INC']
37
38 if env['WITH_BF_OGG']:
39     defs.append('WITH_OGG')
40
41 if env['WITH_BF_QUICKTIME']:
42     defs.append('WITH_QUICKTIME')
43     incs += ' ../quicktime'
44
45 if env['WITH_BF_LCMS']:
46     defs.append('WITH_LCMS')
47     incs += ' ' + env['BF_LCMS_INC']
48     
49 if env['WITH_BF_GAMEENGINE']:
50     defs.append('WITH_GAMEENGINE')
51
52 if env['BF_UNIT_TEST']:
53     defs.append('UNIT_TEST')
54
55 if env['WITH_BF_PYTHON']:
56     defs.append('WITH_PYTHON')
57
58 if env['WITH_BF_COLLADA']:
59     defs.append('WITH_COLLADA')
60
61 if env['OURPLATFORM'] == 'linux2':
62     cflags='-pthread'
63     incs += ' ../../../extern/binreloc/include'
64
65 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
66     incs += ' ' + env['BF_PTHREADS_INC']
67
68 env.BlenderLib ( 'bf_rna', objs, Split(incs), defines=defs, libtype=['core','player'], priority = [165,20] )