for scons on linux and other *nux systems
authorCampbell Barton <ideasman42@gmail.com>
Thu, 13 Nov 2008 02:18:35 +0000 (02:18 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 13 Nov 2008 02:18:35 +0000 (02:18 +0000)
only install locale data if international is enabled, only install fonts if freetype is enabled.

SConstruct

index 59152cdc9f3a5fd8d67bc6aca797c702ebd65067..a35be70e50d40aecafa2ef4b4e9c93ebe0c2a990 100644 (file)
@@ -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':