diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-11-13 05:18:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-11-13 05:18:35 +0300 |
commit | 934b21f5d969b4a66f7679b7cffe2087b2d2d5d9 (patch) | |
tree | 9dd0daae078086447aa31ac2d156fb4f18b1a232 /SConstruct | |
parent | a35345f8bab9502ba10920bf93a2547ef9d35f4c (diff) |
for scons on linux and other *nux systems
only install locale data if international is enabled, only install fonts if freetype is enabled.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/SConstruct b/SConstruct index 59152cdc9f3..a35be70e50d 100644 --- a/SConstruct +++ b/SConstruct @@ -421,8 +421,18 @@ if env['OURPLATFORM']!='darwin': 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 @@ if env['OURPLATFORM']!='darwin': 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': |