diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-19 15:01:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-19 15:01:31 +0400 |
commit | 19885babaf8b6e8197a8a63ee239ed85c208bef9 (patch) | |
tree | ea3b576170207e7bbbbfaf650779cd3bb5920e11 /build_files/scons | |
parent | 78f393f0c3789221603cde786b66b04bcf164594 (diff) | |
parent | 27a8487070b37e6243608571b623e0c5fa279ced (diff) |
svn merge ^/trunk/blender -r49800:49900
Diffstat (limited to 'build_files/scons')
-rw-r--r-- | build_files/scons/config/linux-config.py | 5 | ||||
-rw-r--r-- | build_files/scons/config/win32-vc-config.py | 5 | ||||
-rw-r--r-- | build_files/scons/config/win64-vc-config.py | 5 | ||||
-rw-r--r-- | build_files/scons/tools/Blender.py | 6 | ||||
-rw-r--r-- | build_files/scons/tools/btools.py | 8 |
5 files changed, 28 insertions, 1 deletions
diff --git a/build_files/scons/config/linux-config.py b/build_files/scons/config/linux-config.py index fd9b93a76c6..0a0ee20eae3 100644 --- a/build_files/scons/config/linux-config.py +++ b/build_files/scons/config/linux-config.py @@ -105,6 +105,11 @@ BF_BULLET = '#extern/bullet2/src' BF_BULLET_INC = '${BF_BULLET}' BF_BULLET_LIB = 'extern_bullet' +WITH_BF_ELTOPO = False +BF_LAPACK = '/usr' +BF_LAPACK_LIB = 'lapack3gf blas clapack' +BF_LAPACK_LIBPATH = '${BF_LAPACK}/lib' + BF_FREETYPE = '/usr' BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2' BF_FREETYPE_LIB = 'freetype' diff --git a/build_files/scons/config/win32-vc-config.py b/build_files/scons/config/win32-vc-config.py index 96ac4fe796b..05533aa91d4 100644 --- a/build_files/scons/config/win32-vc-config.py +++ b/build_files/scons/config/win32-vc-config.py @@ -101,6 +101,11 @@ BF_BULLET = '#extern/bullet2/src' BF_BULLET_INC = '${BF_BULLET}' BF_BULLET_LIB = 'extern_bullet' +WITH_BF_ELTOPO = False +BF_LAPACK = LIBDIR + '/lapack' +BF_LAPACK_LIB = 'libf2c clapack_nowrap BLAS_nowrap' +BF_LAPACK_LIBPATH = '${BF_LAPACK}/lib' + BF_WINTAB = LIBDIR + '/wintab' BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE' diff --git a/build_files/scons/config/win64-vc-config.py b/build_files/scons/config/win64-vc-config.py index 23617a58628..bed5fe3c88c 100644 --- a/build_files/scons/config/win64-vc-config.py +++ b/build_files/scons/config/win64-vc-config.py @@ -97,6 +97,11 @@ BF_BULLET = '#extern/bullet2/src' BF_BULLET_INC = '${BF_BULLET}' BF_BULLET_LIB = 'extern_bullet' +WITH_BF_ELTOPO = False +BF_LAPACK = LIBDIR + '/lapack' +BF_LAPACK_LIB = 'libf2c clapack_nowrap BLAS_nowrap' +BF_LAPACK_LIBPATH = '${BF_LAPACK}/lib' + BF_WINTAB = LIBDIR + '/wintab' BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE' diff --git a/build_files/scons/tools/Blender.py b/build_files/scons/tools/Blender.py index e07c0d6f0de..56d13649cd1 100644 --- a/build_files/scons/tools/Blender.py +++ b/build_files/scons/tools/Blender.py @@ -159,6 +159,10 @@ def setup_staticlibs(lenv): libincs += Split(lenv['BF_FFTW3_LIBPATH']) if lenv['WITH_BF_STATICFFTW3']: statlibs += Split(lenv['BF_FFTW3_LIB_STATIC']) + if lenv['WITH_BF_ELTOPO']: + libincs += Split(lenv['BF_LAPACK_LIBPATH']) + if lenv['WITH_BF_STATICLAPACK']: + statlibs += Split(lenv['BF_LAPACK_LIB_STATIC']) if lenv['WITH_BF_FFMPEG'] and lenv['WITH_BF_STATICFFMPEG']: statlibs += Split(lenv['BF_FFMPEG_LIB_STATIC']) if lenv['WITH_BF_INTERNATIONAL']: @@ -264,6 +268,8 @@ def setup_syslibs(lenv): syslibs += Split(lenv['BF_SNDFILE_LIB']) if lenv['WITH_BF_FFTW3'] and not lenv['WITH_BF_STATICFFTW3']: syslibs += Split(lenv['BF_FFTW3_LIB']) + if lenv['WITH_BF_ELTOPO']: + syslibs += Split(lenv['BF_LAPACK_LIB']) if lenv['WITH_BF_SDL']: syslibs += Split(lenv['BF_SDL_LIB']) if not lenv['WITH_BF_STATICOPENGL']: diff --git a/build_files/scons/tools/btools.py b/build_files/scons/tools/btools.py index 59e1e6c225e..8229f3642b5 100644 --- a/build_files/scons/tools/btools.py +++ b/build_files/scons/tools/btools.py @@ -120,7 +120,7 @@ def validate_arguments(args, bc): 'WITH_BF_ICONV', 'BF_ICONV', 'BF_ICONV_INC', 'BF_ICONV_LIB', 'BF_ICONV_LIBPATH', 'WITH_BF_GAMEENGINE', 'WITH_BF_BULLET', 'BF_BULLET', 'BF_BULLET_INC', 'BF_BULLET_LIB', - 'WITH_BF_ELTOPO', + 'WITH_BF_ELTOPO', 'BF_LAPACK', 'BF_LAPACK_LIB', 'BF_LAPACK_LIBPATH', 'BF_LAPACK_LIB_STATIC', 'BF_WINTAB', 'BF_WINTAB_INC', 'BF_FREETYPE', 'BF_FREETYPE_INC', 'BF_FREETYPE_LIB', 'BF_FREETYPE_LIBPATH', 'BF_FREETYPE_LIB_STATIC', 'WITH_BF_FREETYPE_STATIC', 'WITH_BF_QUICKTIME', 'BF_QUICKTIME', 'BF_QUICKTIME_INC', 'BF_QUICKTIME_LIB', 'BF_QUICKTIME_LIBPATH', @@ -395,7 +395,13 @@ def read_opts(env, cfg, args): (BoolVariable('WITH_BF_GAMEENGINE', 'Build with gameengine' , False)), (BoolVariable('WITH_BF_BULLET', 'Use Bullet if true', True)), + (BoolVariable('WITH_BF_ELTOPO', 'Use Eltopo collision library if true', False)), + ('BF_LAPACK', 'LAPACK base path', ''), + ('BF_LAPACK_LIB', 'LAPACK library', ''), + ('BF_LAPACK_LIB_STATIC', 'LAPACK library', ''), + ('BF_LAPACK_LIBPATH', 'LAPACK library path', ''), + (BoolVariable('WITH_BF_STATICLAPACK', 'Staticly link to LAPACK', False)), ('BF_BULLET', 'Bullet base dir', ''), ('BF_BULLET_INC', 'Bullet include path', ''), |