~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to source/blender/blenkernel/SConscript

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
 
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
 
2
28
Import ('env')
3
29
import os
4
30
 
5
31
sources = env.Glob('intern/*.c')
 
32
sources.remove('intern' + os.sep + 'mask_rasterize.c')
 
33
sources.remove('intern' + os.sep + 'mask_evaluate.c')
 
34
sources.remove('intern' + os.sep + 'mask.c')
 
35
 
 
36
sources_mask = env.Glob('intern/mask*.c')
6
37
 
7
38
incs = '. #/intern/guardedalloc #/intern/memutil'
8
39
incs += ' ../blenlib ../blenfont ../makesdna ../windowmanager'
9
 
incs += ' ../render/extern/include #/intern/decimation/extern ../makesrna'
 
40
incs += ' ../render/extern/include ../makesrna'
10
41
incs += ' ../imbuf ../ikplugin ../avi #/intern/elbeem/extern ../nodes ../modifiers'
11
42
incs += ' #/intern/iksolver/extern ../blenloader'
12
43
incs += ' #/extern/bullet2/src'
 
44
incs += ' #/intern/rigidbody'
13
45
incs += ' #/intern/opennl/extern #/intern/bsp/extern'
14
46
incs += ' ../gpu #/extern/glew/include'
15
47
incs += ' ../bmesh'
17
49
incs += ' #/intern/mikktspace'
18
50
incs += ' #/intern/audaspace/intern'
19
51
incs += ' #/intern/ffmpeg'
 
52
incs += ' #/intern/raskter'
20
53
 
21
54
incs += ' ' + env['BF_OPENGL_INC']
22
55
incs += ' ' + env['BF_ZLIB_INC']
31
64
 
32
65
if env['WITH_BF_PYTHON']:
33
66
    incs += ' ../python'
34
 
    incs += ' ' + env['BF_PYTHON_INC']
35
67
    defs.append('WITH_PYTHON')
36
68
    if env['BF_DEBUG']:
37
69
        defs.append('DEBUG')
38
70
 
 
71
'''
39
72
if env['WITH_BF_ELTOPO']:
40
 
    incs += ' ../../../extern/eltopo'
 
73
    incs += ' #/extern/eltopo'
 
74
    incs += ' #/extern/eltopo/eltopo3d'
41
75
    defs.append('WITH_ELTOPO')
42
 
        
 
76
'''
43
77
if env['WITH_BF_QUICKTIME']:
44
78
    incs += ' ../quicktime'
45
79
 
77
111
    incs += ' ' + env['BF_QUICKTIME_INC']
78
112
 
79
113
if env['WITH_BF_BULLET']:
80
 
    defs.append('USE_BULLET')
 
114
    defs.append('WITH_BULLET')
81
115
 
82
116
if env['OURPLATFORM'] == 'darwin':
83
117
    if env['WITH_BF_OPENMP']:
117
151
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
118
152
    incs += ' ' + env['BF_PTHREADS_INC']
119
153
 
 
154
 
120
155
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
121
156
    env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [166,25]) #, cc_compileflags = env['CCFLAGS'].append('/WX') )
122
157
else:
123
158
    env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player', 'player2'], priority = [166,25,0] )
 
159
 
 
160
env.BlenderLib ( libname = 'bf_blenkernel_mask', sources = sources_mask, includes = Split(incs), defines = defs, libtype=['core','player', 'player2'], priority = [200,25,0] )