[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14571] trunk/blender/SConstruct: Make " scons clean" remove config files for ffmpeg, x264, xvidcore.

Ken Hughes khughes at pacific.edu
Sun Apr 27 21:20:40 CEST 2008


Revision: 14571
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14571
Author:   khughes
Date:     2008-04-27 21:20:35 +0200 (Sun, 27 Apr 2008)

Log Message:
-----------
Make "scons clean" remove config files for ffmpeg, x264, xvidcore.  Also
replace tabs with spaces.

Modified Paths:
--------------
    trunk/blender/SConstruct

Modified: trunk/blender/SConstruct
===================================================================
--- trunk/blender/SConstruct	2008-04-27 19:13:40 UTC (rev 14570)
+++ trunk/blender/SConstruct	2008-04-27 19:20:35 UTC (rev 14571)
@@ -178,20 +178,20 @@
     env['CCFLAGS'].append('-DDISABLE_ELBEEM')
 
 if env['WITH_BF_OPENMP'] == 1:
-	if env['OURPLATFORM']=='win32-vc':
-		env['CCFLAGS'].append('/openmp')
-		env['CPPFLAGS'].append('/openmp')
-		env['CXXFLAGS'].append('/openmp')
-	else:
-		if env['CC'] == 'icc':
-			env.Append(LINKFLAGS=['-openmp', '-static-intel'])
-			env['CCFLAGS'].append('-openmp')
-			env['CPPFLAGS'].append('-openmp')
-			env['CXXFLAGS'].append('-openmp')
-		else:
-			env['CCFLAGS'].append('-fopenmp')
-			env['CPPFLAGS'].append('-fopenmp')
-			env['CXXFLAGS'].append('-fopenmp')
+        if env['OURPLATFORM']=='win32-vc':
+                env['CCFLAGS'].append('/openmp')
+                env['CPPFLAGS'].append('/openmp')
+                env['CXXFLAGS'].append('/openmp')
+        else:
+            if env['CC'] == 'icc':
+                env.Append(LINKFLAGS=['-openmp', '-static-intel'])
+                env['CCFLAGS'].append('-openmp')
+                env['CPPFLAGS'].append('-openmp')
+                env['CXXFLAGS'].append('-openmp')
+            else:
+                env['CCFLAGS'].append('-fopenmp')
+                env['CPPFLAGS'].append('-fopenmp')
+                env['CXXFLAGS'].append('-fopenmp')
 
 #check for additional debug libnames
 
@@ -267,6 +267,11 @@
             if os.path.isdir(B.root_build_dir + dir) == 1:
                 print "clean dir %s"%(B.root_build_dir+dir)
                 shutil.rmtree(B.root_build_dir+dir)
+        for confile in ['extern/ffmpeg/config.mak', 'extern/x264/config.mak',
+                'extern/xvidcore/build/generic/platform.inc']:
+            if os.path.exists(confile):
+                print "clean file %s"%confile
+                os.remove(confile)
         print B.bc.OKGREEN+'...done'+B.bc.ENDC
     else:
         print B.bc.HEADER+'Already Clean, nothing to do.'+B.bc.ENDC
@@ -355,30 +360,30 @@
 scriptinstall = []
 
 if  env['OURPLATFORM']!='darwin':
-	for dp, dn, df in os.walk('bin/.blender'):
-	    if 'CVS' in dn:
-	        dn.remove('CVS')
-	    if '.svn' in dn:
-	        dn.remove('.svn')
-	    for f in df:
-	        dotblendlist.append(dp+os.sep+f)
-	        dottargetlist.append(env['BF_INSTALLDIR']+dp[3:]+os.sep+f)
+        for dp, dn, df in os.walk('bin/.blender'):
+            if 'CVS' in dn:
+                dn.remove('CVS')
+            if '.svn' in dn:
+                dn.remove('.svn')
+            for f in df:
+                dotblendlist.append(dp+os.sep+f)
+                dottargetlist.append(env['BF_INSTALLDIR']+dp[3:]+os.sep+f)
 
-	dotblenderinstall = []
-	for targetdir,srcfile in zip(dottargetlist, dotblendlist):
-	    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))
+        dotblenderinstall = []
+        for targetdir,srcfile in zip(dottargetlist, dotblendlist):
+            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))
 
 #-- plugins
 pluglist = []
@@ -410,9 +415,9 @@
 textinstall = env.Install(dir=env['BF_INSTALLDIR'], source=textlist)
 
 if  env['OURPLATFORM']=='darwin':
-	allinstall = [blenderinstall, plugininstall, textinstall]
+        allinstall = [blenderinstall, plugininstall, textinstall]
 else:
-	allinstall = [blenderinstall, dotblenderinstall, scriptinstall, plugininstall, textinstall]
+        allinstall = [blenderinstall, dotblenderinstall, scriptinstall, plugininstall, textinstall]
 
 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw'):
     dllsources = ['${LCGDIR}/gettext/lib/gnu_gettext.dll',
@@ -466,7 +471,7 @@
 Default(B.program_list)
 
 if not env['WITHOUT_BF_INSTALL']:
-	Default(installtarget)
+        Default(installtarget)
 
 #------------ RELEASE
 # TODO: zipup the installation





More information about the Bf-blender-cvs mailing list