replace python3 command with python3.2, python3 isnt available on ubuntu.
[blender-staging.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 #/intern/cycles/blender'
12 incs += ' ../nodes'
13 incs += ' #/extern/glew/include'
14
15 incs += ' ../bmesh'
16
17
18 defs = []
19
20 if env['WITH_BF_OPENEXR']:
21     defs.append('WITH_OPENEXR')
22
23 if env['WITH_BF_TIFF']:
24     defs.append('WITH_TIFF')
25
26 if env['WITH_BF_OPENJPEG']:
27     defs.append('WITH_OPENJPEG')
28
29 if env['WITH_BF_DDS']:
30     defs.append('WITH_DDS')
31
32 if env['WITH_BF_CINEON']:
33     defs.append('WITH_CINEON')
34
35 if env['WITH_BF_HDR']:
36     defs.append('WITH_HDR')
37
38 if env['WITH_BF_FRAMESERVER']:
39     defs.append('WITH_FRAMESERVER')
40
41 if env['WITH_BF_FFMPEG']:
42     defs.append('WITH_FFMPEG')
43     incs += ' ' + env['BF_FFMPEG_INC']
44
45 if env['WITH_BF_QUICKTIME']:
46     defs.append('WITH_QUICKTIME')
47     incs += ' ../quicktime'
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['WITH_BF_OCEANSIM']:
62     defs.append('WITH_OCEANSIM')
63
64 if env['WITH_BF_CYCLES']:
65     defs.append('WITH_CYCLES')
66
67 if env['OURPLATFORM'] == 'linux':
68     cflags='-pthread'
69     incs += ' ../../../extern/binreloc/include'
70
71 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
72     incs += ' ' + env['BF_PTHREADS_INC']
73
74 if env['WITH_BF_INTERNATIONAL']:
75     defs.append('WITH_INTERNATIONAL')
76
77 rnalib = env.BlenderLib ( 'bf_rna', objs, Split(incs), defines=defs, libtype=['core','player'], priority = [165,20] )
78
79 Return ('rnalib')