Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-09-14 21:56:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-09-14 21:56:15 +0400
commit0ad48b7332668d033fb4bcf91c0a443aef13d8b4 (patch)
tree1416b4bc9975ced212e64a34b633d63262af98fa /tools/Blender.py
parent9444b314dbf586772a2f5482a3057997648630f8 (diff)
scons option for linking python statically - useful for building a more compatible blenderplayer, where most games python scripts only use builtin modules anyway.
Diffstat (limited to 'tools/Blender.py')
-rw-r--r--tools/Blender.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/Blender.py b/tools/Blender.py
index 2c982a0a46f..3f928ff8c97 100644
--- a/tools/Blender.py
+++ b/tools/Blender.py
@@ -129,6 +129,9 @@ def setup_staticlibs(lenv):
if lenv['WITH_BF_STATICOPENGL']:
statlibs += Split(lenv['BF_OPENGL_LIB_STATIC'])
+ if lenv['WITH_BF_STATICPYTHON']:
+ statlibs += Split(lenv['BF_PYTHON_LIB_STATIC'])
+
if lenv['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross'):
libincs += Split(lenv['BF_PTHREADS_LIBPATH'])
@@ -141,10 +144,12 @@ def setup_syslibs(lenv):
lenv['BF_PNG_LIB'],
lenv['BF_ZLIB_LIB']
]
- if lenv['BF_DEBUG']==1 and lenv['OURPLATFORM'] in ('win32-vc'):
- syslibs.append(lenv['BF_PYTHON_LIB']+'_d')
- else:
- syslibs.append(lenv['BF_PYTHON_LIB'])
+
+ if not lenv['WITH_BF_STATICPYTHON']:
+ if lenv['BF_DEBUG']==1 and lenv['OURPLATFORM'] in ('win32-vc'):
+ syslibs.append(lenv['BF_PYTHON_LIB']+'_d')
+ else:
+ syslibs.append(lenv['BF_PYTHON_LIB'])
if lenv['WITH_BF_INTERNATIONAL']:
syslibs += Split(lenv['BF_FREETYPE_LIB'])
syslibs += Split(lenv['BF_GETTEXT_LIB'])