Update Ceres to latest upstream version
[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 incs = '.'
14
15 if env['WITH_BF_LIBMV']:
16     defs.append('GOOGLE_GLOG_DLL_DECL=')
17     defs.append('WITH_LIBMV')
18     defs.append('WITH_LIBMV_GUARDED_ALLOC')
19
20     src = env.Glob("libmv-capi.cc")
21     src += env.Glob('libmv/image/*.cc')
22     src += env.Glob('libmv/multiview/*.cc')
23     src += env.Glob('libmv/numeric/*.cc')
24     src += env.Glob('libmv/simple_pipeline/*.cc')
25     src += env.Glob('libmv/tracking/*.cc')
26     src += env.Glob('third_party/fast/*.c')
27     src += env.Glob('third_party/gflags/*.cc')
28
29     incs += ' ../Eigen3 third_party/ceres/include ../../intern/guardedalloc'
30     incs += ' ' + env['BF_PNG_INC']
31     incs += ' ' + env['BF_ZLIB_INC']
32
33     if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
34         incs += ' ./third_party/glog/src/windows ./third_party/glog/src/windows/glog'
35         if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
36             incs += ' ./third_party/msinttypes'
37
38         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']
39         src += ['./third_party/glog/src/windows/port.cc']
40     else:
41         src += env.Glob("third_party/glog/src/*.cc")
42         incs += ' ./third_party/glog/src'
43 else:
44     src = env.Glob("libmv-capi_stub.cc")
45
46 env.BlenderLib ( libname = 'extern_libmv', sources=src, includes=Split(incs), defines=defs, libtype=['extern', 'player'], priority=[20,137] )
47
48 if env['WITH_BF_LIBMV']:
49     SConscript(['third_party/SConscript'])