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

« back to all changes in this revision

Viewing changes to extern/libmv/third_party/ceres/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
 
2
 
 
3
# NOTE: This file is automatically generated by bundle.sh script
 
4
#       If you're doing changes in this file, please update template
 
5
#       in that script too
 
6
 
 
7
import sys
 
8
import os
 
9
 
 
10
Import('env')
 
11
 
 
12
src = []
 
13
defs = []
 
14
 
 
15
src += env.Glob('internal/ceres/*.cc')
 
16
src += env.Glob('internal/ceres/generated/schur_eliminator_d_d_d.cc')
 
17
#src += env.Glob('internal/ceres/generated/*.cc')
 
18
 
 
19
defs.append('CERES_HAVE_PTHREAD')
 
20
defs.append('CERES_HASH_NAMESPACE_START=namespace std { namespace tr1 {')
 
21
defs.append('CERES_HASH_NAMESPACE_END=}}')
 
22
defs.append('CERES_NO_SUITESPARSE')
 
23
defs.append('CERES_NO_CXSPARSE')
 
24
defs.append('CERES_NO_PROTOCOL_BUFFERS')
 
25
defs.append('CERES_RESTRICT_SCHUR_SPECIALIZATION')
 
26
 
 
27
if 'Mac OS X 10.5' in env['MACOSX_SDK_CHECK']:
 
28
    defs.append('CERES_NO_TR1')
 
29
 
 
30
incs = '. ../../ ../../../Eigen3 ./include ./internal ../gflags'
 
31
 
 
32
# work around broken hashtable in 10.5 SDK
 
33
if env['OURPLATFORM'] == 'darwin' and env['WITH_BF_BOOST']:
 
34
    incs += ' ' + env['BF_BOOST_INC']
 
35
    defs.append('CERES_HASH_BOOST')
 
36
 
 
37
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
 
38
    if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
 
39
        incs += ' ../msinttypes'
 
40
 
 
41
    incs += ' ../glog/src/windows'
 
42
else:
 
43
    incs += ' ../glog/src'
 
44
 
 
45
env.BlenderLib ( libname = 'extern_ceres', sources=src, includes=Split(incs), defines=defs, libtype=['extern', 'player'], priority=[20,137])