[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17436] trunk/blender/SConstruct: for scons on linux and other *nux systems
Campbell Barton
ideasman42 at gmail.com
Thu Nov 13 03:18:40 CET 2008
Revision: 17436
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17436
Author: campbellbarton
Date: 2008-11-13 03:18:35 +0100 (Thu, 13 Nov 2008)
Log Message:
-----------
for scons on linux and other *nux systems
only install locale data if international is enabled, only install fonts if freetype is enabled.
Modified Paths:
--------------
trunk/blender/SConstruct
Modified: trunk/blender/SConstruct
===================================================================
--- trunk/blender/SConstruct 2008-11-12 22:35:58 UTC (rev 17435)
+++ trunk/blender/SConstruct 2008-11-13 02:18:35 UTC (rev 17436)
@@ -421,8 +421,18 @@
dn.remove('CVS')
if '.svn' in dn:
dn.remove('.svn')
+
for f in df:
- dotblendlist.append(dp+os.sep+f)
+ if not env['WITH_BF_INTERNATIONAL']:
+ if 'locale' in dp:
+ continue
+ if f == '.Blanguages':
+ continue
+ if not env['WITH_BF_FREETYPE']:
+ if f.endswith('.ttf'):
+ continue
+
+ dotblendlist.append(os.path.join(dp, f))
dottargetlist.append(env['BF_INSTALLDIR']+dp[3:]+os.sep+f)
dotblenderinstall = []
@@ -430,16 +440,17 @@
td, tf = os.path.split(targetdir)
dotblenderinstall.append(env.Install(dir=td, source=srcfile))
- #-- .blender/scripts
- scriptpath='release/scripts'
- for dp, dn, df in os.walk(scriptpath):
- if 'CVS' in dn:
- dn.remove('CVS')
- if '.svn' in dn:
- dn.remove('.svn')
- dir=env['BF_INSTALLDIR']+'/.blender/scripts'+dp[len(scriptpath):]
- source=[dp+os.sep+f for f in df]
- scriptinstall.append(env.Install(dir=dir,source=source))
+ if env['WITH_BF_PYTHON']:
+ #-- .blender/scripts
+ scriptpath='release/scripts'
+ for dp, dn, df in os.walk(scriptpath):
+ if 'CVS' in dn:
+ dn.remove('CVS')
+ if '.svn' in dn:
+ dn.remove('.svn')
+ dir=env['BF_INSTALLDIR']+'/.blender/scripts'+dp[len(scriptpath):]
+ source=[dp+os.sep+f for f in df]
+ scriptinstall.append(env.Install(dir=dir,source=source))
#-- icons
if env['OURPLATFORM']=='linux2':
More information about the Bf-blender-cvs
mailing list