Speedup for guarded allocator
[blender.git] / source / blender / makesrna / SConscript
1 #!/usr/bin/env python
2 #
3 # ***** BEGIN GPL LICENSE BLOCK *****
4 #
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 #
19 # The Original Code is Copyright (C) 2006, Blender Foundation
20 # All rights reserved.
21 #
22 # The Original Code is: all of this file.
23 #
24 # Contributor(s): Nathan Letwory.
25 #
26 # ***** END GPL LICENSE BLOCK *****
27
28 Import ('env')
29
30 objs = []
31
32 o = SConscript('intern/SConscript')
33 objs += o
34
35 incs = [
36     '.',
37     './intern',
38     '#/intern/guardedalloc',
39     '#/intern/atomic',
40     '#/intern/memutil',
41     '#/extern/glew/include',
42     '#/intern/audaspace/intern',
43     '#/intern/cycles/blender',
44     '#/intern/smoke/extern',
45     '../blenfont',
46     '../blenkernel',
47     '../blenlib',
48     '../bmesh',
49     '../editors/include',
50     '../gpu',
51     '../ikplugin',
52     '../imbuf',
53     '../makesdna',
54     '../nodes',
55     '../render/extern/include',
56     '../windowmanager',
57     ]
58 incs = ' '.join(incs)
59
60 defs = []
61
62 if env['WITH_BF_SMOKE']:
63     defs.append('WITH_SMOKE')
64
65 if env['WITH_BF_BULLET']:
66     defs.append('WITH_BULLET')
67     incs += ' #/intern/rigidbody'
68
69 if env['WITH_BF_OPENEXR']:
70     defs.append('WITH_OPENEXR')
71
72 if env['WITH_BF_TIFF']:
73     defs.append('WITH_TIFF')
74
75 if env['WITH_BF_OPENJPEG']:
76     defs.append('WITH_OPENJPEG')
77
78 if env['WITH_BF_DDS']:
79     defs.append('WITH_DDS')
80
81 if env['WITH_BF_CINEON']:
82     defs.append('WITH_CINEON')
83
84 if env['WITH_BF_HDR']:
85     defs.append('WITH_HDR')
86
87 if env['WITH_BF_FRAMESERVER']:
88     defs.append('WITH_FRAMESERVER')
89
90 if env['WITH_BF_FFMPEG']:
91     defs.append('WITH_FFMPEG')
92     incs += ' ' + env['BF_FFMPEG_INC']
93
94 if env['WITH_BF_QUICKTIME']:
95     defs.append('WITH_QUICKTIME')
96     incs += ' ../quicktime'
97
98 if env['WITH_BF_GAMEENGINE']:
99     defs.append('WITH_GAMEENGINE')
100
101 if env['BF_UNIT_TEST']:
102     defs.append('UNIT_TEST')
103
104 if env['WITH_BF_PYTHON']:
105     defs.append('WITH_PYTHON')
106
107 if env['WITH_BF_COLLADA']:
108     defs.append('WITH_COLLADA')
109
110 if env['WITH_BF_OCEANSIM']:
111     defs.append('WITH_OCEANSIM')
112
113 if env['WITH_BF_CYCLES']:
114     defs.append('WITH_CYCLES')
115
116 if env['WITH_BF_SDL']:
117     defs.append('WITH_SDL')
118
119 if env['WITH_BF_OPENAL']:
120     defs.append('WITH_OPENAL')
121
122 if env['WITH_BF_JACK']:
123     defs.append('WITH_JACK')
124
125 if env['OURPLATFORM'] == 'linux':
126     cflags='-pthread'
127
128 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
129     incs += ' ' + env['BF_PTHREADS_INC']
130
131 if env['WITH_BF_INTERNATIONAL']:
132     defs.append('WITH_INTERNATIONAL')
133
134 rnalib = env.BlenderLib ( 'bf_rna', objs, Split(incs), defines=defs, libtype=['core','player'], priority = [165,20] )
135
136 Return ('rnalib')