Fix for BA possible move bundles behind the camera
[blender.git] / extern / libmv / SConscript
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 defs = []
13
14 defs.append('GOOGLE_GLOG_DLL_DECL=')
15
16 src = env.Glob("*.cpp")
17 src += env.Glob('libmv/image/*.cc')
18 src += env.Glob('libmv/multiview/*.cc')
19 src += env.Glob('libmv/numeric/*.cc')
20 src += env.Glob('libmv/simple_pipeline/*.cc')
21 src += env.Glob('libmv/tracking/*.cc')
22 src += env.Glob('third_party/fast/*.c')
23 src += env.Glob('third_party/gflags/*.cc')
24
25 incs = '. ../Eigen3 third_party/ceres/include'
26 incs += ' ' + env['BF_PNG_INC']
27 incs += ' ' + env['BF_ZLIB_INC']
28
29 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
30     incs += ' ./third_party/glog/src/windows ./third_party/glog/src/windows/glog'
31     if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
32         incs += ' ./third_party/msinttypes'
33
34     src += ['./third_party/glog/src/logging.cc', './third_party/glog/src/raw_logging.cc', './third_party/glog/src/utilities.cc', './third_party/glog/src/vlog_is_on.cc']
35     src += ['./third_party/glog/src/windows/port.cc']
36 else:
37     src += env.Glob("third_party/glog/src/*.cc")
38     incs += ' ./third_party/glog/src'
39
40 env.BlenderLib ( libname = 'extern_libmv', sources=src, includes=Split(incs), defines=defs, libtype=['extern', 'player'], priority=[20,137] )
41
42 SConscript(['third_party/SConscript'])