Eigen: move C API into intern/eigen.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Thu, 10 Dec 2015 00:18:01 +0000 (01:18 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Thu, 10 Dec 2015 00:58:06 +0000 (01:58 +0100)
19 files changed:
build_files/cmake/cmake_consistency_check_config.py
build_files/cmake/macros.cmake
extern/CMakeLists.txt
extern/SConscript
intern/CMakeLists.txt
intern/SConscript
intern/eigen/CMakeLists.txt [moved from extern/Eigen3/CMakeLists.txt with 91% similarity]
intern/eigen/SConscript [moved from extern/Eigen3/SConscript with 88% similarity]
intern/eigen/eigen_capi.h [moved from extern/Eigen3/eigen3_capi.h with 92% similarity]
intern/eigen/intern/eigenvalues.cc [moved from extern/Eigen3/intern/eigenvalues.cc with 100% similarity]
intern/eigen/intern/eigenvalues.h [moved from extern/Eigen3/intern/eigenvalues.h with 100% similarity]
intern/eigen/intern/svd.cc [moved from extern/Eigen3/intern/svd.cc with 100% similarity]
intern/eigen/intern/svd.h [moved from extern/Eigen3/intern/svd.h with 100% similarity]
source/blender/blenlib/CMakeLists.txt
source/blender/blenlib/SConscript
source/blender/blenlib/intern/math_solvers.c
source/blender/physics/CMakeLists.txt
source/blenderplayer/CMakeLists.txt
tests/gtests/blenlib/CMakeLists.txt

index 1f75b9884bcc71a55fa4fda916543ded8e763692..5345f682f58f89c1b7365b95c100c50c9148687b 100644 (file)
@@ -10,9 +10,6 @@ IGNORE = (
     "/ik_glut_test/",
 
     # specific source files
-    "extern/Eigen2/Eigen/src/Cholesky/CholeskyInstantiations.cpp",
-    "extern/Eigen2/Eigen/src/Core/CoreInstantiations.cpp",
-    "extern/Eigen2/Eigen/src/QR/QrInstantiations.cpp",
     "extern/bullet2/src/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.cpp",
     "extern/bullet2/src/BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.cpp",
     "extern/bullet2/src/BulletCollision/CollisionDispatch/btInternalEdgeUtility.cpp",
index 74ef7b18de1e53fec0a8ebfe403ecd9be9ecd89b..39c12f2c4d922adc5fdf0e986ade00d2b0ba0bd6 100644 (file)
@@ -626,12 +626,12 @@ function(SETUP_BLENDER_SORTED_LIBS)
                cycles_subd
                bf_intern_raskter
                bf_intern_opencolorio
+               bf_intern_eigen
                extern_rangetree
                extern_wcwidth
                extern_libmv
                extern_glog
                extern_sdlew
-               extern_eigen3
 
                bf_intern_glew_mx
        )
index 93f57b04d4e4bf70747f204d1a17284549bf0581..d0c587b80e41303ae7f715325098d30dd5df2bbc 100644 (file)
@@ -29,7 +29,6 @@ remove_strict_flags()
 add_subdirectory(rangetree)
 add_subdirectory(wcwidth)
 add_subdirectory(libmv)
-add_subdirectory(Eigen3)
 
 if(WITH_OPENNL)
        add_subdirectory(colamd)
index 484c0e959c2390294ceb964c77d579c0268488df..46c177c5bcba085bbdd3f2f6f4859f6150070f96 100644 (file)
@@ -11,7 +11,6 @@ SConscript(['colamd/SConscript'])
 SConscript(['rangetree/SConscript'])
 SConscript(['wcwidth/SConscript'])
 SConscript(['libmv/SConscript'])
-SConscript(['Eigen3/SConscript'])
 
 if env['WITH_BF_GAMEENGINE']:
     SConscript(['recastnavigation/SConscript'])
index 4ee3dff76958e536195a0df388ecd68257c46484..9b0f2de22f2c5565fb48edb8936bab04de057410 100644 (file)
@@ -32,6 +32,7 @@ add_subdirectory(opencolorio)
 add_subdirectory(mikktspace)
 add_subdirectory(raskter)
 add_subdirectory(glew-mx)
+add_subdirectory(eigen)
 
 if(WITH_AUDASPACE)
        add_subdirectory(audaspace)
index 124afd4bbb9e35779addaa37605986ecece90796..3b855d60ac883aa68324b870d4d7db86c627a5e3 100644 (file)
@@ -35,6 +35,7 @@ SConscript(['string/SConscript',
             'memutil/SConscript/',
             'iksolver/SConscript',
             'itasc/SConscript',
+            'eigen/SConscript',
             'opencolorio/SConscript',
             'opennl/SConscript',
             'mikktspace/SConscript',
similarity index 91%
rename from extern/Eigen3/CMakeLists.txt
rename to intern/eigen/CMakeLists.txt
index e3b63881acac1a84a440eabc4ef7dbe7a9674849..58964e432240143fe3b776abe9a2ab47c14326a9 100644 (file)
@@ -28,10 +28,11 @@ set(INC
 )
 
 set(INC_SYS
+       ${EIGEN3_INCLUDE_DIRS}
 )
 
 set(SRC
-       eigen3_capi.h
+       eigen_capi.h
 
        intern/eigenvalues.cc
        intern/svd.cc
@@ -40,4 +41,4 @@ set(SRC
        intern/svd.h
 )
 
-blender_add_lib(extern_eigen3 "${SRC}" "${INC}" "${INC_SYS}")
+blender_add_lib(bf_intern_eigen "${SRC}" "${INC}" "${INC_SYS}")
similarity index 88%
rename from extern/Eigen3/SConscript
rename to intern/eigen/SConscript
index 2dc2d6237688f0339d80f21e039ed17a23a6cdda..0c98ec1837d7459a8713958f79c9dbb09522cc37 100644 (file)
@@ -29,7 +29,7 @@ Import('env')
 
 sources = env.Glob('intern/*.cc')
 
-incs = '.'
+incs = '. #/extern/Eigen3'
 defs = []
 
-env.BlenderLib('extern_eigen3', sources, Split(incs), defs, libtype=['extern','player'], priority=[10, 185])
+env.BlenderLib('bf_intern_eigen', sources, Split(incs), defs, libtype=['extern','player'], priority=[10, 185])
similarity index 92%
rename from extern/Eigen3/eigen3_capi.h
rename to intern/eigen/eigen_capi.h
index f8a7b3cbb77c800238f572334081d39c72e39360..45ee1c015ece5e559aadeaca6ac4695e56f91508 100644 (file)
  * ***** END GPL LICENSE BLOCK *****
  */
 
-#ifndef __EIGEN3_C_API_H__
-#define __EIGEN3_C_API_H__
+#ifndef __EIGEN_C_API_H__
+#define __EIGEN_C_API_H__
 
 #include "intern/eigenvalues.h"
 #include "intern/svd.h"
 
-#endif  /* __EIGEN3_C_API_H__ */
+#endif  /* __EIGEN_C_API_H__ */
index 45b41a4a0981e923505b97eb6c81f9961fd63942..944ba60eb588f4b25697772bb5a2b4a2b70e1af1 100644 (file)
@@ -29,13 +29,13 @@ set(INC
        ../makesdna
        ../../../intern/guardedalloc
        ../../../intern/atomic
+       ../../../intern/eigen
        ../../../extern/wcwidth
 )
 
 set(INC_SYS
        ${ZLIB_INCLUDE_DIRS}
        ${FREETYPE_INCLUDE_DIRS}
-       ../../../extern/Eigen3
 )
 
 set(SRC
index 0e4b9bf4efd143d54ff480e88d7e560b3a85f165..5f92741fde21b0f67205fae56bd7fba186eb85fb 100644 (file)
@@ -34,9 +34,9 @@ cflags=''
 incs = [
     '.',
     '#/extern/wcwidth',
-    '#/extern/Eigen3',
     '#/intern/guardedalloc',
     '#/intern/atomic',
+    '#/intern/eigen',
     '../makesdna',
     env['BF_FREETYPE_INC'],
     env['BF_ZLIB_INC'],
index d1dad9a62698e5d195e06ccf2b7469e7296ad408..c27c6bea160233fdab2b73c818db675c62c113bb 100644 (file)
@@ -34,7 +34,7 @@
 
 #include "BLI_strict_flags.h"
 
-#include "eigen3_capi.h"
+#include "eigen_capi.h"
 
 /********************************** Eigen Solvers *********************************/
 
index 855449ca0f31449f9bec6f719c19f23a031a99a1..0a4ff3fe0f09415567175f4dd861c1d3c975c67d 100644 (file)
@@ -34,7 +34,7 @@ set(INC
 )
 
 set(INC_SYS
-       ../../../extern/Eigen3
+       ${EIGEN3_INCLUDE_DIRS}
 )
 
 set(SRC
index 11055ab77bd2f9bff745d650251e946a3e00f2e8..f3a65c4d75e19f180532a45ea785fab54e3ff378 100644 (file)
@@ -171,12 +171,12 @@ endif()
                bf_intern_opencolorio
                bf_intern_opennl
                bf_intern_glew_mx
+               bf_intern_eigen
                extern_rangetree
                extern_wcwidth
                extern_libmv
                extern_glog
                extern_sdlew
-               extern_eigen3
        )
 
        if(WITH_MOD_CLOTH_ELTOPO)
index e10d6b13b5983df02f759be68fe032a50246ecdc..443d9b0e84bd1146f7a9292b5c5fa9f804fdcaf6 100644 (file)
@@ -37,11 +37,11 @@ set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} ${PLATFORM_LIN
 
 BLENDER_TEST(BLI_stack "bf_blenlib")
 BLENDER_TEST(BLI_math_color "bf_blenlib")
-BLENDER_TEST(BLI_math_geom "bf_blenlib;extern_eigen3")
+BLENDER_TEST(BLI_math_geom "bf_blenlib;bf_intern_eigen")
 BLENDER_TEST(BLI_math_base "bf_blenlib")
 BLENDER_TEST(BLI_string "bf_blenlib")
 BLENDER_TEST(BLI_path_util "bf_blenlib;extern_wcwidth;${ZLIB_LIBRARIES}")
-BLENDER_TEST(BLI_polyfill2d "bf_blenlib;extern_eigen3")
+BLENDER_TEST(BLI_polyfill2d "bf_blenlib;bf_intern_eigen")
 BLENDER_TEST(BLI_listbase "bf_blenlib")
 BLENDER_TEST(BLI_hash_mm2a "bf_blenlib")
 BLENDER_TEST(BLI_ghash "bf_blenlib")