svn merge -r41655:41715 ^/trunk/blender --- this is the real cycles merge, needs...
[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 ../bmesh'
12 incs += ' ../nodes'
13 incs += ' #/extern/glew/include'
14
15 defs = []
16
17 if env['WITH_BF_OPENEXR']:
18     defs.append('WITH_OPENEXR')
19
20 if env['WITH_BF_TIFF']:
21     defs.append('WITH_TIFF')
22
23 if env['WITH_BF_OPENJPEG']:
24     defs.append('WITH_OPENJPEG')
25
26 if env['WITH_BF_DDS']:
27     defs.append('WITH_DDS')
28
29 if env['WITH_BF_CINEON']:
30     defs.append('WITH_CINEON')
31
32 if env['WITH_BF_HDR']:
33     defs.append('WITH_HDR')
34
35 if env['WITH_BF_FFMPEG']:
36     defs.append('WITH_FFMPEG')
37     incs += ' ' + env['BF_FFMPEG_INC']
38
39 if env['WITH_BF_OGG']:
40     defs.append('WITH_OGG')
41
42 if env['WITH_BF_QUICKTIME']:
43     defs.append('WITH_QUICKTIME')
44     incs += ' ../quicktime'
45
46 if env['WITH_BF_GAMEENGINE']:
47     defs.append('WITH_GAMEENGINE')
48
49 if env['BF_UNIT_TEST']:
50     defs.append('UNIT_TEST')
51
52 if env['WITH_BF_PYTHON']:
53     defs.append('WITH_PYTHON')
54
55 if env['WITH_BF_COLLADA']:
56     defs.append('WITH_COLLADA')
57
58 if env['OURPLATFORM'] == 'linux':
59     cflags='-pthread'
60     incs += ' ../../../extern/binreloc/include'
61
62 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
63     incs += ' ' + env['BF_PTHREADS_INC']
64
65 if env['WITH_BF_INTERNATIONAL']:
66     defs.append('WITH_INTERNATIONAL')
67
68 rnalib = env.BlenderLib ( 'bf_rna', objs, Split(incs), defines=defs, libtype=['core','player'], priority = [165,20] )
69
70 Return ('rnalib')