mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
add eigen to makepanda
This commit is contained in:
parent
bc8e5de9bf
commit
e04c446b1c
@ -327,7 +327,7 @@
|
||||
// impact memory usage on very-low-memory platforms.) Currently
|
||||
// experimental.
|
||||
#define EIGEN_IPATH
|
||||
#define EIGEN_CFLAGS
|
||||
#defer EIGEN_CFLAGS $[if $[WINDOWS_PLATFORM],/arch:SSE2,-msse2]
|
||||
#defer HAVE_EIGEN $[isdir $[EIGEN_IPATH]/Eigen]
|
||||
#define LINMATH_ALIGN 1
|
||||
|
||||
|
@ -41,6 +41,15 @@ PandaSystem() :
|
||||
#ifdef STDFLOAT_DOUBLE
|
||||
add_system("stdfloat-double");
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_EIGEN
|
||||
add_system("eigen");
|
||||
#ifdef LINMATH_VECTORIZE
|
||||
set_system_tag("eigen", "vectorize", "1");
|
||||
#else
|
||||
set_system_tag("eigen", "vectorize", "0");
|
||||
#endif
|
||||
#endif // HAVE_EIGEN
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
@ -72,6 +72,7 @@ if "MACOSX_DEPLOYMENT_TARGET" in os.environ:
|
||||
PkgListSet(["PYTHON", "DIRECT", # Python support
|
||||
"GL", "GLES", "GLES2"] + DXVERSIONS + ["TINYDISPLAY", "NVIDIACG", # 3D graphics
|
||||
"EGL", # OpenGL (ES) integration
|
||||
"EIGEN", # Linear algebra acceleration
|
||||
"OPENAL", "FMODEX", "FFMPEG", # Multimedia
|
||||
"ODE", "PHYSX", "BULLET", "PANDAPHYSICS", # Physics
|
||||
"SPEEDTREE", # SpeedTree
|
||||
@ -593,6 +594,7 @@ if (COMPILER=="LINUX"):
|
||||
|
||||
# Name pkg-config libs, include(dir)s
|
||||
if (not RUNTIME):
|
||||
SmartPkgEnable("EIGEN", "", (), ("Eigen/Dense",), target_pkg = 'ALWAYS')
|
||||
SmartPkgEnable("ARTOOLKIT", "", ("AR"), "AR/ar.h")
|
||||
SmartPkgEnable("FCOLLADA", "", ChooseLib(*fcollada_libs), ("FCollada", "FCollada.h"))
|
||||
SmartPkgEnable("FFMPEG", ffmpeg_libs, ffmpeg_libs, ffmpeg_libs)
|
||||
@ -849,7 +851,7 @@ def CompileCxx(obj,src,opts):
|
||||
else:
|
||||
cmd += " -arch i386"
|
||||
if ("NOPPC" not in opts): cmd += " -arch ppc"
|
||||
cmd += " -pthread"
|
||||
cmd += " -pthread -msse2"
|
||||
optlevel = GetOptimizeOption(opts)
|
||||
if (optlevel==1): cmd += " -ggdb -D_DEBUG"
|
||||
if (optlevel==2): cmd += " -O1 -D_DEBUG"
|
||||
@ -1527,6 +1529,8 @@ DTOOL_CONFIG=[
|
||||
("USE_MEMORY_DLMALLOC", 'UNDEF', 'UNDEF'),
|
||||
("USE_MEMORY_PTMALLOC2", '1', 'UNDEF'),
|
||||
("USE_MEMORY_MALLOC", 'UNDEF', '1'),
|
||||
("HAVE_EIGEN", 'UNDEF', 'UNDEF'),
|
||||
("LINMATH_ALIGN", '1', '1'),
|
||||
("HAVE_ZLIB", 'UNDEF', 'UNDEF'),
|
||||
("HAVE_PNG", 'UNDEF', 'UNDEF'),
|
||||
("HAVE_JPEG", 'UNDEF', 'UNDEF'),
|
||||
|
@ -2292,4 +2292,4 @@ if __name__ == '__main__':
|
||||
if sys.platform == "win32":
|
||||
SdkLocateDirectX( 'aug2006' )
|
||||
SdkLocateMSPlatform( 'winserver2003r2')
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user