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