diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-01 09:59:43 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-02 11:01:34 +0400 |
commit | 178f8400ee37e11ec5de4a64adfeaaae19cbffe6 (patch) | |
tree | fb2f3e4ed065b31764bb5fa5b4ed5167c2fccfa7 /extern/libmv/third_party/ceres/bundle.sh | |
parent | 5ab4c6b7aa65eeb878b016666ca6551548c9bc80 (diff) |
Libmv: Add an option to disable schur specializations build-time
This way folks with few ram or those who wants to hack into Ceres
code might compile Blender much faster.
Diffstat (limited to 'extern/libmv/third_party/ceres/bundle.sh')
-rwxr-xr-x | extern/libmv/third_party/ceres/bundle.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/extern/libmv/third_party/ceres/bundle.sh b/extern/libmv/third_party/ceres/bundle.sh index 89b32416e22..0679840e126 100755 --- a/extern/libmv/third_party/ceres/bundle.sh +++ b/extern/libmv/third_party/ceres/bundle.sh @@ -138,10 +138,12 @@ ${sources} ${headers} ) -if(TRUE) +if(WITH_LIBMV_SCHUR_SPECIALIZATIONS) list(APPEND SRC ${generated_sources} ) +else() + add_definitions-DCERES_RESTRICT_SCHUR_SPECIALIZATION) endif() if(WIN32) @@ -214,9 +216,12 @@ src = [] defs = [] $src -src += env.Glob('internal/ceres/generated/schur_eliminator_d_d_d.cc') -src += env.Glob('internal/ceres/generated/partitioned_matrix_view_d_d_d.cc') -src += env.Glob('internal/ceres/generated/*.cc') +if env['WITH_BF_LIBMV_SCHUR_SPECIALIZATIONS']: + src += env.Glob('internal/ceres/generated/*.cc') +else: + src += env.Glob('internal/ceres/generated/schur_eliminator_d_d_d.cc') + src += env.Glob('internal/ceres/generated/partitioned_matrix_view_d_d_d.cc') + defs.append('CERES_RESTRICT_SCHUR_SPECIALIZATION') defs.append('CERES_HAVE_PTHREAD') defs.append('CERES_NO_SUITESPARSE') |