Minor UI message fix.
[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     env['BF_GLEW_INC'],
42     '#/intern/glew-mx',
43     '#/intern/audaspace/intern',
44     '#/intern/cycles/blender',
45     '#/intern/smoke/extern',
46     '../blenfont',
47     '../blenkernel',
48     '../blenlib',
49     '../bmesh',
50     '../editors/include',
51     '../gpu',
52     '../ikplugin',
53     '../imbuf',
54     '../makesdna',
55     '../nodes',
56     '../physics',
57     '../render/extern/include',
58     '../windowmanager',
59     ]
60 incs = ' '.join(incs)
61
62 defs = env['BF_GL_DEFINITIONS']
63
64 if env['WITH_BF_SMOKE']:
65     defs.append('WITH_SMOKE')
66
67 if env['WITH_BF_BULLET']:
68     defs.append('WITH_BULLET')
69     incs += ' #/intern/rigidbody'
70
71 if env['WITH_BF_OIIO']:
72     defs.append('WITH_OPENIMAGEIO')
73
74 if env['WITH_BF_OPENEXR']:
75     defs.append('WITH_OPENEXR')
76
77 if env['WITH_BF_TIFF']:
78     defs.append('WITH_TIFF')
79
80 if env['WITH_BF_OPENJPEG']:
81     defs.append('WITH_OPENJPEG')
82
83 if env['WITH_BF_DDS']:
84     defs.append('WITH_DDS')
85
86 if env['WITH_BF_CINEON']:
87     defs.append('WITH_CINEON')
88
89 if env['WITH_BF_HDR']:
90     defs.append('WITH_HDR')
91
92 if env['WITH_BF_FRAMESERVER']:
93     defs.append('WITH_FRAMESERVER')
94
95 if env['WITH_BF_FFMPEG']:
96     defs.append('WITH_FFMPEG')
97     incs += ' ' + env['BF_FFMPEG_INC'] + ' #/intern/ffmpeg'
98
99 if env['WITH_BF_QUICKTIME']:
100     defs.append('WITH_QUICKTIME')
101     incs += ' ../quicktime'
102
103 if env['WITH_BF_GAMEENGINE']:
104     defs.append('WITH_GAMEENGINE')
105
106 if env['BF_UNIT_TEST']:
107     defs.append('UNIT_TEST')
108
109 if env['WITH_BF_PYTHON']:
110     defs.append('WITH_PYTHON')
111     incs += ' ../python'
112
113 if env['WITH_BF_COLLADA']:
114     defs.append('WITH_COLLADA')
115
116 if env['WITH_BF_OCEANSIM']:
117     defs.append('WITH_OCEANSIM')
118
119 if env['WITH_BF_CYCLES']:
120     defs.append('WITH_CYCLES')
121
122     if env['WITH_BF_CYCLES_DEBUG']:
123         defs.append('WITH_CYCLES_DEBUG')
124
125 if env['WITH_BF_SDL']:
126     if env['WITH_BF_SDL_DYNLOAD']:
127         defs.append('WITH_SDL_DYNLOAD')
128         incs += ' #extern/sdlew/include'
129     defs.append('WITH_SDL')
130
131 if env['WITH_BF_OPENAL']:
132     defs.append('WITH_OPENAL')
133
134 if env['WITH_BF_JACK']:
135     defs.append('WITH_JACK')
136
137 if env['WITH_BF_FREESTYLE']:
138     defs.append('WITH_FREESTYLE')
139     incs += ' ../freestyle'
140
141 if env['OURPLATFORM'] == 'linux':
142     cflags='-pthread'
143
144 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
145     incs += ' ' + env['BF_PTHREADS_INC']
146
147 if env['WITH_BF_INTERNATIONAL']:
148     defs.append('WITH_INTERNATIONAL')
149
150 rnalib = env.BlenderLib ( 'bf_rna', objs, Split(incs), defines=defs, libtype=['core','player'], priority = [165,20] )
151
152 Return ('rnalib')