3 # ***** BEGIN GPL LICENSE BLOCK *****
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.
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.
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.
19 # The Original Code is Copyright (C) 2006, Blender Foundation
20 # All rights reserved.
22 # The Original Code is: all of this file.
24 # Contributor(s): Nathan Letwory.
26 # ***** END GPL LICENSE BLOCK *****
31 sources = env.Glob('intern/*.c')
36 '#/intern/guardedalloc',
38 '#/source/gameengine/BlenderRoutines',
53 '../render/extern/include',
58 defs = env['BF_GL_DEFINITIONS']
60 if env['WITH_BF_PYTHON']:
61 defs.append('WITH_PYTHON')
63 if env['WITH_BF_COLLADA']:
64 defs.append('WITH_COLLADA')
66 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
67 incs += ' ' + env['BF_PTHREADS_INC']
68 incs += ' ../../intern/utfconv'
70 if env['BF_BUILDINFO']:
71 defs.append('WITH_BUILDINFO')
73 if env['WITH_BF_INTERNATIONAL']:
74 defs.append('WITH_INTERNATIONAL')
76 if env['WITH_BF_COMPOSITOR']:
77 defs.append("WITH_COMPOSITOR")
79 if env['WITH_BF_PYTHON_SECURITY']:
80 defs.append("WITH_PYTHON_SECURITY")
82 if env['OURPLATFORM'] in ('linux', 'openbsd3', 'sunos5', 'freebsd7', 'freebsd8', 'freebsd9', 'aix4', 'aix5'):
83 defs.append("WITH_X11")
85 env.BlenderLib ( 'bf_windowmanager', sources, Split(incs), defines=defs, libtype=['core'], priority=[5] )