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