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